@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, removeAlladdListener, fireInsert, fireRemove, getMenu, getParent, isBound, items, removeListener, setParentprotected PreferenceMenuPiece()
public PreferenceMenuPiece(DockController controller)
controller - the controller for which this piece will workprotected PreferenceTreeModel createModel()
public PreferenceTreeModel getModel()
public void bind()
MenuPiecebind in class MenuPieceMenuPiece.unbind()public void unbind()
MenuPieceunbind in class MenuPieceMenuPiece.bind()public void setController(DockController controller)
controller - the controllerpublic DockController getController()
Copyright © 2018. All rights reserved.