protected class CustomizationButton.Button extends Object implements ToolbarGroupHeader, CustomizationMenuCallback
CustomizationMenu.| Constructor and Description |
|---|
Button(ToolbarGroupDockStation station)
Creates a new button
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(Dockable dockable)
Adds
dockable to the station or one of its sub stations. |
void |
closed()
To be called if the menu was closed.
|
void |
destroy()
Called if this header is no longer required
|
Rectangle |
getButton()
Gets the boundaries of the button that opened this menu.
|
Component |
getComponent()
The actual component represented by this object.
|
DockStation |
getOwner()
Gets the owner of the menu.
|
Component |
getParent()
|
boolean |
isAutoCloseAllowed()
Tells the menu whether it is currently allowed to close itself automatically.
|
void |
setOrientation(Orientation orientation)
Called before the
component is shown, and every time when
the orientation of the ToolbarGroupDockStation changes. |
public Button(ToolbarGroupDockStation station)
station - the station on which this button will be shownpublic void destroy()
ToolbarGroupHeaderdestroy in interface ToolbarGroupHeaderpublic Component getComponent()
ToolbarGroupHeadergetComponent in interface ToolbarGroupHeadernull and must not changepublic void setOrientation(Orientation orientation)
ToolbarGroupHeadercomponent is shown, and every time when
the orientation of the ToolbarGroupDockStation changes.setOrientation in interface ToolbarGroupHeaderorientation - the orientation of the station, which is orthogonal to how the component is shown, not nullpublic Rectangle getButton()
CustomizationMenuCallbackgetButton in interface CustomizationMenuCallbacknullpublic Component getParent()
CustomizationMenuCallbackComponent of the menu, this Component can be used
for example as parent of a JDialog.getParent in interface CustomizationMenuCallbackComponent, not nullpublic DockStation getOwner()
CustomizationMenuCallbackgetOwner in interface CustomizationMenuCallbacknullpublic void append(Dockable dockable)
CustomizationMenuCallbackdockable to the station or one of its sub stations.append in interface CustomizationMenuCallbackdockable - the item to addpublic boolean isAutoCloseAllowed()
CustomizationMenuCallbackisAutoCloseAllowed in interface CustomizationMenuCallbackpublic void closed()
CustomizationMenuCallbackclosed in interface CustomizationMenuCallbackCopyright © 2018. All rights reserved.