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, 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
 
Methods inherited from class bibliothek.extension.gui.dock.preference.PreferenceTreeModel
addPreferenceModelListener, addTreeModelListener, delete, doOperation, getChild, getChildCount, getDescription, getIndexOfChild, getLabel, getOperations, getPath, getRoot, getSize, getTreeModelListeners, getTypePath, getValue, getValueInfo, isEnabled, isLeaf, isNatural, put, putModel, putNode, read, removePreferenceModelListener, removeTreeModelListener, setValue, setValueNatural, valueForPathChanged, write
 
Methods inherited from class bibliothek.extension.gui.dock.preference.AbstractPreferenceModel
firePreferenceAdded, firePreferenceChanged, firePreferenceRemoved, hasListeners, 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