bibliothek.gui.dock.common.action.panel
Class MenuWindow

java.lang.Object
  extended by bibliothek.gui.dock.common.action.panel.AbstractPanelPopupWindow
      extended by bibliothek.gui.dock.common.action.panel.MenuWindow
All Implemented Interfaces:
PanelPopupWindow

public class MenuWindow
extends AbstractPanelPopupWindow

A wrapper around a JPopupMenu.

Author:
Benjamin Sigg

Constructor Summary
MenuWindow(javax.swing.JPopupMenu menu)
          Creates the new window.
 
Method Summary
 void close()
          Makes this window invisible
 boolean isOpen()
          Tells whether this window is visible or not.
 
Methods inherited from class bibliothek.gui.dock.common.action.panel.AbstractPanelPopupWindow
addListener, fireClosed, listeners, removeListener, validateBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuWindow

public MenuWindow(javax.swing.JPopupMenu menu)
Creates the new window.

Parameters:
menu - the menu that is managed by this window
Method Detail

isOpen

public boolean isOpen()
Description copied from interface: PanelPopupWindow
Tells whether this window is visible or not.

Returns:
true if visible

close

public void close()
Description copied from interface: PanelPopupWindow
Makes this window invisible