public class JCarouselMenu.MenuItem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected javax.swing.Action |
action
An associated action
|
protected java.awt.Component |
carouselComponent
The component inside the caroulse
|
protected java.lang.String |
label
The text label
|
Constructor and Description |
---|
MenuItem(java.awt.Component component,
java.lang.String label,
javax.swing.Action action)
Creates a new instance of the menu item
|
Modifier and Type | Method and Description |
---|---|
javax.swing.Action |
getAction()
Gets the action associated with the entry
|
java.awt.Component |
getCarouselComponent()
Gets the component in the carousel associated with the entry
|
java.lang.String |
getLabel()
Retreives the label associated with the entry
|
protected java.awt.Component carouselComponent
protected java.lang.String label
protected javax.swing.Action action
public MenuItem(java.awt.Component component, java.lang.String label, javax.swing.Action action)
component
- The component to uselabel
- The text labelaction
- The associated actionpublic java.lang.String getLabel()
public javax.swing.Action getAction()
public java.awt.Component getCarouselComponent()