bibliothek.gui.dock.action.popup
Interface ActionPopupMenu

All Known Implementing Classes:
DefaultActionPopupMenu

public interface ActionPopupMenu

A menu that shows some DockActions and is opened when the user performs a right click onto a DockElementRepresentative or invokes a MenuDockAction.

Author:
Benjamin Sigg

Method Summary
 void addListener(ActionPopupMenuListener listener)
          Adds a listener to this menu, the listener is to be informed if the menu closes.
 Dockable getDockable()
          Gets the Dockable for which this menu is shown.
 void removeListener(ActionPopupMenuListener listener)
          Removes a listener from this menu.
 void show(java.awt.Component owner, int x, int y)
          Opens this menu assuming the mouse is currently over owner at location x/y.
 

Method Detail

getDockable

Dockable getDockable()
Gets the Dockable for which this menu is shown.

Returns:
the owner of this menu

show

void show(java.awt.Component owner,
          int x,
          int y)
Opens this menu assuming the mouse is currently over owner at location x/y.

Parameters:
owner - the Component over which the menu should appear
x - the x coordinate of the position
y - the y coordinate of the position

addListener

void addListener(ActionPopupMenuListener listener)
Adds a listener to this menu, the listener is to be informed if the menu closes.

Parameters:
listener - the new listener

removeListener

void removeListener(ActionPopupMenuListener listener)
Removes a listener from this menu.

Parameters:
listener - the listener to remove