bibliothek.gui.dock.common
Class CPreferenceModel

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

public class CPreferenceModel
extends PreferenceTreeModel

A PreferenceModel that shows the settings of a CControl.

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.extension.gui.dock.preference.PreferenceTreeModel
PreferenceTreeModel.Node
 
Constructor Summary
CPreferenceModel(CControl control)
          Creates a new model.
CPreferenceModel(CControl control, 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.
 CKeyStrokePreferenceModel getKeyStrokePreferences()
          Grants access to the preferences concerning the global KeyStrokes.
 CLayoutPreferenceModel 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

CPreferenceModel

public CPreferenceModel(CControl control)
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:
control - the control whose settings can be changed by this model

CPreferenceModel

public CPreferenceModel(CControl control,
                        PathCombiner combiner)
Creates a new model.

Parameters:
control - the control whose settings can be changed by this model
combiner - how to combine paths of models and of preferences
Method Detail

getKeyStrokePreferences

public CKeyStrokePreferenceModel 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 CLayoutPreferenceModel 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