@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, remove
addListener, fireInsert, fireRemove, getMenu, getParent, isBound, items, removeListener, setParent
public FrontendSettingsMenuPiece(DockFrontend frontend, boolean loadAsSubmenu)
frontend
- the frontend which might be modified by this piece, can be null
loadAsSubmenu
- whether the list of loadable settings should be in a submenupublic DockFrontend getFrontend()
null
public void setFrontend(DockFrontend frontend)
frontend
- the frontend, can be null
public void bind()
MenuPiece
bind
in class NodeMenuPiece
MenuPiece.unbind()
public void unbind()
MenuPiece
unbind
in class NodeMenuPiece
MenuPiece.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 dialog