bibliothek.gui.dock.themes.basic.action.menu
Class MenuMenuHandler.JMenuWrapper

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.action.menu.MenuMenuHandler.JMenuWrapper
All Implemented Interfaces:
MenuMenuHandler.Menu
Enclosing class:
MenuMenuHandler

private class MenuMenuHandler.JMenuWrapper
extends java.lang.Object
implements MenuMenuHandler.Menu

A wrapper JMenu to Menu.

Author:
Benjamin Sigg

Field Summary
private  javax.swing.JMenu menu
          the menu wrapped by this object
 
Constructor Summary
MenuMenuHandler.JMenuWrapper(javax.swing.JMenu menu)
          Creates a new wrapper.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

menu

private javax.swing.JMenu menu
the menu wrapped by this object

Constructor Detail

MenuMenuHandler.JMenuWrapper

public MenuMenuHandler.JMenuWrapper(javax.swing.JMenu menu)
Creates a new wrapper.

Parameters:
menu - the menu to cover
Method Detail

add

public void add(javax.swing.JComponent item)
Description copied from interface: MenuMenuHandler.Menu
Adds an item to the menu.

Specified by:
add in interface MenuMenuHandler.Menu
Parameters:
item - the new item

getItem

public javax.swing.JMenuItem getItem()
Description copied from interface: MenuMenuHandler.Menu
Get this menu as a JMenuItem.

Specified by:
getItem in interface MenuMenuHandler.Menu
Returns:
the item or null

removeAll

public void removeAll()
Description copied from interface: MenuMenuHandler.Menu
Remove all elements from this menu

Specified by:
removeAll in interface MenuMenuHandler.Menu