|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.action.popup.DefaultActionPopupMenu
public class DefaultActionPopupMenu
This is the default implementation of ActionPopupMenu, this implementation
makes use of a MenuMenuHandler to create and update its content.
| Constructor Summary | |
|---|---|
DefaultActionPopupMenu(Dockable dockable,
DockActionSource actions)
|
|
DefaultActionPopupMenu(Dockable dockable,
DockActionSource actions,
JPopupMenu menu)
|
|
| 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. |
boolean |
isShowing()
Tells whether the menu is currently open. |
void |
removeListener(ActionPopupMenuListener listener)
Removes a listener from this menu. |
void |
show(Component owner,
int x,
int y)
Opens this menu assuming the mouse is currently over owner
at location x/y. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultActionPopupMenu(Dockable dockable,
DockActionSource actions)
public DefaultActionPopupMenu(Dockable dockable,
DockActionSource actions,
JPopupMenu menu)
| Method Detail |
|---|
public void addListener(ActionPopupMenuListener listener)
ActionPopupMenu
addListener in interface ActionPopupMenulistener - the new listenerpublic Dockable getDockable()
ActionPopupMenuDockable for which this menu is shown.
getDockable in interface ActionPopupMenupublic void removeListener(ActionPopupMenuListener listener)
ActionPopupMenu
removeListener in interface ActionPopupMenulistener - the listener to remove
public void show(Component owner,
int x,
int y)
ActionPopupMenuowner
at location x/y.
show in interface ActionPopupMenuowner - the Component over which the menu should appearx - the x coordinate of the positiony - the y coordinate of the positionpublic boolean isShowing()
true if the menu is open
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||