public interface CombinedMenuContent
CombinedMenus to show their content.
The items of a CombinedMenuContent are not supposed to change while
the menu is visible and all state is forgotten once the menu is closed.
A CombinedMenuContent might be used at the same time by more than one client.| Modifier and Type | Interface and Description |
|---|---|
static class |
CombinedMenuContent.Item
Describes one item of a menu.
|
| Modifier and Type | Field and Description |
|---|---|
static PropertyKey<CombinedMenuContent> |
MENU_CONTENT
Key that should be used to access the default menu content
|
| 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
|
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.
|
static final PropertyKey<CombinedMenuContent> MENU_CONTENT
void addCombinedMenuContentListener(CombinedMenuContentListener listener)
listener - the new listenervoid removeCombinedMenuContentListener(CombinedMenuContentListener listener)
listener - the listener to removevoid open(DockController controller, Component parent, int x, int y, CombinedMenuContent.Item[] content)
controller - 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 menuvoid cancel()
Copyright © 2017 Docking Frames. All rights reserved.