@ClientOnly public class PreferenceMenuPiece extends BaseMenuPiece
Modifier | Constructor and Description |
---|---|
protected |
PreferenceMenuPiece()
Creates a new unlinked menu piece
|
|
PreferenceMenuPiece(DockController controller)
Creates a new menu 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.
|
protected PreferenceTreeModel |
createModel()
Creates a new model for this piece.
|
DockController |
getController()
Gets the controller for which this piece works.
|
PreferenceTreeModel |
getModel() |
void |
setController(DockController controller)
Sets the controller for which this piece works.
|
void |
unbind()
This method is called if the user has no longer any possibility to see this menu.
|
add, addSeparator, fill, getItem, getItemCount, insert, insertSeparator, remove, remove, removeAll
addListener, fireInsert, fireRemove, getMenu, getParent, isBound, items, removeListener, setParent
protected PreferenceMenuPiece()
public PreferenceMenuPiece(DockController controller)
controller
- the controller for which this piece will workprotected PreferenceTreeModel createModel()
public PreferenceTreeModel getModel()
public void bind()
MenuPiece
bind
in class MenuPiece
MenuPiece.unbind()
public void unbind()
MenuPiece
unbind
in class MenuPiece
MenuPiece.bind()
public void setController(DockController controller)
controller
- the controllerpublic DockController getController()