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

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

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

A Wrapper JPopupMenu to Menu.

Author:
Benjamin Sigg

Field Summary
private  javax.swing.JPopupMenu menu
          the menu covered by this wrapper
 
Constructor Summary
MenuMenuHandler.JPopupMenuWrapper(javax.swing.JPopupMenu 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.JPopupMenu menu
the menu covered by this wrapper

Constructor Detail

MenuMenuHandler.JPopupMenuWrapper

public MenuMenuHandler.JPopupMenuWrapper(javax.swing.JPopupMenu 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