bibliothek.gui.dock.facile.menu
Class PreferenceMenuPiece

java.lang.Object
  extended by bibliothek.gui.dock.support.menu.MenuPiece
      extended by bibliothek.gui.dock.support.menu.BaseMenuPiece
          extended by bibliothek.gui.dock.facile.menu.PreferenceMenuPiece
Direct Known Subclasses:
CPreferenceMenuPiece

public class PreferenceMenuPiece
extends BaseMenuPiece

A menu piece that allows the user to change the preferences of the framework.

Author:
Benjamin Sigg

Constructor Summary
PreferenceMenuPiece(DockController controller)
          Creates a new menu piece
 
Method Summary
 DockController getController()
          Gets the controller for which this piece works.
protected  PreferenceTreeModel getModel()
          Gets the model which is used on the dialog.
 void setController(DockController controller)
          Sets the controller for which this piece works.
protected  PreferenceTreeModel updateModel()
          Gets the model which will be shown on the dialog.
 
Methods inherited from class bibliothek.gui.dock.support.menu.BaseMenuPiece
add, addSeparator, fill, getItem, getItemCount, insert, insertSeparator, remove, remove, removeAll
 
Methods inherited from class bibliothek.gui.dock.support.menu.MenuPiece
addListener, fireInsert, fireRemove, getMenu, getParent, items, removeListener, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferenceMenuPiece

public PreferenceMenuPiece(DockController controller)
Creates a new menu piece

Parameters:
controller - the controller for which this piece will work
Method Detail

updateModel

protected PreferenceTreeModel updateModel()
Gets the model which will be shown on the dialog.

Returns:
the model

getModel

protected PreferenceTreeModel getModel()
Gets the model which is used on the dialog.

Returns:
the model

setController

public void setController(DockController controller)
Sets the controller for which this piece works.

Parameters:
controller - the controller

getController

public DockController getController()
Gets the controller for which this piece works.

Returns:
the controller