Groovy Documentation

com.blogofbug.swing.components
[Java] Class JCarouselMenu.MenuItem

java.lang.Object
  com.blogofbug.swing.components.JCarouselMenu.MenuItem

public class JCarouselMenu.MenuItem

A menu item inside the carousel


Field Summary
protected Action action

An associated action

protected Component carouselComponent

The component inside the caroulse

protected String label

The text label

 
Constructor Summary
JCarouselMenu.MenuItem(Component component, String label, Action action)

Creates a new instance of the menu item

 
Method Summary
Action getAction()

Gets the action associated with the entry

Component getCarouselComponent()

Gets the component in the carousel associated with the entry

String getLabel()

Retreives the label associated with the entry

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

action

protected Action action
An associated action


carouselComponent

protected Component carouselComponent
The component inside the caroulse


label

protected String label
The text label


 
Constructor Detail

JCarouselMenu.MenuItem

public JCarouselMenu.MenuItem(Component component, String label, Action action)
Creates a new instance of the menu item
Parameters:
component - The component to use
label - The text label
action - The associated action


 
Method Detail

getAction

public Action getAction()
Gets the action associated with the entry
Returns:
The action associated with the entry


getCarouselComponent

public Component getCarouselComponent()
Gets the component in the carousel associated with the entry
Returns:
The component


getLabel

public String getLabel()
Retreives the label associated with the entry
Returns:
The label


 

Groovy Documentation