public interface CustomizationMenu
CustomizationMenu
is a menu that is shown belonging to a ToolbarGroupDockStation
,
the menu can offer various settings to customize the station.setController(DockController)
and setContent(CustomizationMenuContent)
to
set up the menu.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this menu.
|
CustomizationMenuContent |
getContent()
Gets the contents of this menu.
|
void |
open(int x,
int y,
CustomizationMenuCallback callback)
Opens the menu for
station . |
void |
setContent(CustomizationMenuContent content)
Sets the contents of this menu.
|
void |
setController(bibliothek.gui.DockController controller)
Sets the controller in whose realm this menu is used.
|
CustomizationMenuContent getContent()
null
void setContent(CustomizationMenuContent content)
content
- the new contents, can be null
void setController(bibliothek.gui.DockController controller)
controller
- the new controller, can be null
void open(int x, int y, CustomizationMenuCallback callback)
station
. The menus top left corner should be at coordinates
x,y
.x
- the x coordinatey
- the y coordinatecallback
- allows communication with the station that opened this menuIllegalArgumentException
- if callback
is null
IllegalStateException
- if there is no content to showvoid close()