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(DockController controller)
Sets the controller in whose realm this menu is used.
|
CustomizationMenuContent getContent()
nullvoid setContent(CustomizationMenuContent content)
content - the new contents, can be nullvoid setController(DockController controller)
controller - the new controller, can be nullvoid 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 nullIllegalStateException - if there is no content to showvoid close()
Copyright © 2018. All rights reserved.