public interface ActionPopupMenu
DockAction
s and is opened when the user
performs a right click onto a DockElementRepresentative
or invokes
a MenuDockAction
.Modifier and Type | Method and Description |
---|---|
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 . |
Dockable getDockable()
Dockable
for which this menu is shown.void show(java.awt.Component owner, int x, int y)
owner
at location x/y
.owner
- the Component
over which the menu should appearx
- the x coordinate of the positiony
- the y coordinate of the positionvoid addListener(ActionPopupMenuListener listener)
listener
- the new listenervoid removeListener(ActionPopupMenuListener listener)
listener
- the listener to remove