@ClientOnly public class FrontendSettingsMenuPiece extends NodeMenuPiece
DockFrontend.| Constructor and Description |
|---|
FrontendSettingsMenuPiece(DockFrontend frontend,
boolean loadAsSubmenu)
Creates a new piece.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind()
This method is called if there is a possibility for the user to see this menu.
|
DockFrontend |
getFrontend()
Gets the frontend which might be modified by this menu.
|
void |
save(Component owner)
Saves the current setting.
|
void |
saveAs(Component owner)
Saves the current setting under a new name.
|
void |
setFrontend(DockFrontend frontend)
Sets the frontend which might be modified by this menu.
|
void |
unbind()
This method is called if the user has no longer any possibility to see this menu.
|
add, fill, getChild, getChildrenCount, getItemCount, insert, remove, removeaddListener, fireInsert, fireRemove, getMenu, getParent, isBound, items, removeListener, setParentpublic FrontendSettingsMenuPiece(DockFrontend frontend, boolean loadAsSubmenu)
frontend - the frontend which might be modified by this piece, can be nullloadAsSubmenu - whether the list of loadable settings should be in a submenupublic DockFrontend getFrontend()
nullpublic void setFrontend(DockFrontend frontend)
frontend - the frontend, can be nullpublic void bind()
MenuPiecebind in class NodeMenuPieceMenuPiece.unbind()public void unbind()
MenuPieceunbind in class NodeMenuPieceMenuPiece.bind()public void save(Component owner)
owner - the component which should be used as owner of any
necessary dialogpublic void saveAs(Component owner)
owner - which should be used as owner of any
necessary dialogCopyright © 2018. All rights reserved.