bibliothek.gui.dock.station.stack.menu
Class CombinedMenuContent.Item

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.menu.CombinedMenuContent.Item
Enclosing interface:
CombinedMenuContent

public static class CombinedMenuContent.Item
extends java.lang.Object

Describes one item of a menu.

Author:
Benjamin Sigg

Constructor Summary
CombinedMenuContent.Item(Dockable dockable, java.lang.String text, java.lang.String tooltip, javax.swing.Icon icon)
          Creates a new CombinedMenuContent.Item.
 
Method Summary
 Dockable getDockable()
          Gets the element which is represented by this item.
 javax.swing.Icon getIcon()
          Gets the icon of this item.
 java.lang.String getText()
          Gets the text to be shown to the user.
 java.lang.String getToolTip()
          Gets the description of this item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinedMenuContent.Item

public CombinedMenuContent.Item(Dockable dockable,
                                java.lang.String text,
                                java.lang.String tooltip,
                                javax.swing.Icon icon)
Creates a new CombinedMenuContent.Item.

Parameters:
dockable - the items value
text - the items text
tooltip - the items description
icon - the items icon
Method Detail

getDockable

public Dockable getDockable()
Gets the element which is represented by this item.

Returns:
the element, may not be null

getText

public java.lang.String getText()
Gets the text to be shown to the user.

Returns:
the title, may be null

getToolTip

public java.lang.String getToolTip()
Gets the description of this item.

Returns:
the description, may be null

getIcon

public javax.swing.Icon getIcon()
Gets the icon of this item.

Returns:
the icon, may be null