public class PopupCombinedMenuContent extends Object implements CombinedMenuContent
CombinedMenuContent that opens a normal JPopupMenu to
display the selection.CombinedMenuContent.ItemMENU_CONTENT| Constructor and Description |
|---|
PopupCombinedMenuContent() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCombinedMenuContentListener(CombinedMenuContentListener listener)
Adds a listener to this menu, the listener has to be informed when
this menu is made visible or invisible.
|
void |
cancel()
Closes the menu if it is currently open
|
protected CombinedMenuContentListener[] |
listeners()
Gets all the listeners that are currently registered.
|
void |
open(DockController controller,
Component parent,
int x,
int y,
CombinedMenuContent.Item[] content)
Shows this menu at the given location.
|
void |
removeCombinedMenuContentListener(CombinedMenuContentListener listener)
Removes a listener from this menu.
|
void |
select(Dockable dockable)
Closes this menu and informs all listeners that
dockable
has been selected. |
public void addCombinedMenuContentListener(CombinedMenuContentListener listener)
CombinedMenuContentaddCombinedMenuContentListener in interface CombinedMenuContentlistener - the new listenerpublic void removeCombinedMenuContentListener(CombinedMenuContentListener listener)
CombinedMenuContentremoveCombinedMenuContentListener in interface CombinedMenuContentlistener - the listener to removeprotected CombinedMenuContentListener[] listeners()
public void open(DockController controller, Component parent, int x, int y, CombinedMenuContent.Item[] content)
CombinedMenuContentopen in interface CombinedMenuContentcontroller - the controller in whose realm this menu is used,
should not, but might, be nullparent - the component which serves as parent for any dialog,
popup menu, etc...x - the preferred x coordinate of the menu in respect to componenty - the preferred y coordinate of the menu in respect to componentcontent - the content of the menupublic void cancel()
CombinedMenuContentcancel in interface CombinedMenuContentpublic void select(Dockable dockable)
dockable
has been selected.dockable - the newly selected elementCopyright © 2017 Docking Frames. All rights reserved.