bibliothek.extension.gui.dock
Class DockingFramesPreference

java.lang.Object
  extended by bibliothek.extension.gui.dock.preference.AbstractPreferenceModel
      extended by bibliothek.extension.gui.dock.preference.PreferenceTreeModel
          extended by bibliothek.extension.gui.dock.DockingFramesPreference
All Implemented Interfaces:
PreferenceModel, javax.swing.tree.TreeModel

public class DockingFramesPreference
extends PreferenceTreeModel

A PreferenceTreeModel that contains all the preferences that are used in this framework.

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.extension.gui.dock.preference.PreferenceTreeModel
PreferenceTreeModel.Node
 
Constructor Summary
DockingFramesPreference(DockController controller)
          Creates a new model.
DockingFramesPreference(DockController controller, PathCombiner combiner)
          Creates a new model.
 
Method Summary
 BubbleThemePreferenceModel getBubbleThemePreferences()
          Grants access to the preferences concerning the BubbleTheme.
 ButtonContentPreferenceModel getButtonContent()
          Grants access to the preferences concerning the ButtonContent.
 EclipseThemePreferenceModel getEclipseThemePreferences()
          Grants access to the preferences concerning the EclipseTheme.
 KeyStrokePreferenceModel getKeyStrokePreferences()
          Grants access to the preferences concerning the global KeyStrokes.
 LayoutPreferenceModel getLayoutPreferences()
          Grants access to the preferences concerning layout options like "where are the tabs placed?".
 
Methods inherited from class bibliothek.extension.gui.dock.preference.PreferenceTreeModel
addPreferenceModelListener, addTreeModelListener, delete, doOperation, getChild, getChildCount, getDescription, getIndexOfChild, getLabel, getModel, getOperations, getPath, getRoot, getSize, getTreeModelListeners, getTypePath, getValue, getValueInfo, hasListeners, isEnabled, isLeaf, isNatural, put, putLinked, putLinked, putModel, putNode, read, removePreferenceModelListener, removeTreeModelListener, setValue, setValueNatural, valueForPathChanged, write
 
Methods inherited from class bibliothek.extension.gui.dock.preference.AbstractPreferenceModel
firePreferenceAdded, firePreferenceChanged, firePreferenceRemoved, getController, listeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockingFramesPreference

public DockingFramesPreference(DockController controller)
Creates a new model. This constructor sets the behavior of how to create paths for preferences to PathCombiner.SECOND. This behavior allows reordering of models and preferences in future releases, however forces any preference to have a truly unique path in a global scale.

Parameters:
controller - the controller whose preferences this model should represent

DockingFramesPreference

public DockingFramesPreference(DockController controller,
                               PathCombiner combiner)
Creates a new model.

Parameters:
controller - the controller whose preferences this model should represent
combiner - how to create preference paths for nested preferences
Method Detail

getKeyStrokePreferences

public KeyStrokePreferenceModel getKeyStrokePreferences()
Grants access to the preferences concerning the global KeyStrokes.

Returns:
the model, not null
Throws:
java.lang.IllegalStateException - if the model was removed or replaced by the client

getLayoutPreferences

public LayoutPreferenceModel getLayoutPreferences()
Grants access to the preferences concerning layout options like "where are the tabs placed?".

Returns:
the model, not null
Throws:
java.lang.IllegalStateException - if the model was removed or replaced by the client

getButtonContent

public ButtonContentPreferenceModel getButtonContent()
Grants access to the preferences concerning the ButtonContent.

Returns:
the model, not null
Throws:
java.lang.IllegalStateException - if the model was removed or replaced by the client

getBubbleThemePreferences

public BubbleThemePreferenceModel getBubbleThemePreferences()
Grants access to the preferences concerning the BubbleTheme.

Returns:
the model, not null
Throws:
java.lang.IllegalStateException - if the model was removed or replaced by the client

getEclipseThemePreferences

public EclipseThemePreferenceModel getEclipseThemePreferences()
Grants access to the preferences concerning the EclipseTheme.

Returns:
the model, not null
Throws:
java.lang.IllegalStateException - if the model was removed or replaced by the client