bibliothek.gui.dock.themes.basic.action.menu
Interface MenuMenuHandler.Menu

All Known Implementing Classes:
MenuMenuHandler.JMenuWrapper, MenuMenuHandler.JPopupMenuWrapper
Enclosing class:
MenuMenuHandler

private static interface MenuMenuHandler.Menu

A representation of a menu.

Author:
Benjamin Sigg

Method Summary
 void add(javax.swing.JComponent item)
          Adds an item to the menu.
 javax.swing.JMenuItem getItem()
          Get this menu as a JMenuItem.
 void removeAll()
          Remove all elements from this menu
 

Method Detail

add

void add(javax.swing.JComponent item)
Adds an item to the menu.

Parameters:
item - the new item

removeAll

void removeAll()
Remove all elements from this menu


getItem

javax.swing.JMenuItem getItem()
Get this menu as a JMenuItem.

Returns:
the item or null