Package bibliothek.gui.dock.common
Class CPreferenceModel
java.lang.Object
bibliothek.extension.gui.dock.preference.AbstractPreferenceModel
bibliothek.extension.gui.dock.preference.PreferenceTreeModel
bibliothek.gui.dock.common.CPreferenceModel
- All Implemented Interfaces:
PreferenceModel,TreeModel
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
ConstructorsConstructorDescriptionCPreferenceModel(CControl control) Creates a new model.CPreferenceModel(CControl control, PathCombiner combiner) Creates a new model. -
Method Summary
Modifier and TypeMethodDescriptionGrants access to the preferences concerning theBubbleTheme.Grants access to the preferences concerning theButtonContent.Grants access to the preferences concerning theEclipseTheme.Grants access to the preferences concerning the globalKeyStrokes.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, writeMethods inherited from class bibliothek.extension.gui.dock.preference.AbstractPreferenceModel
firePreferenceAdded, firePreferenceChanged, firePreferenceRemoved, getController, listeners
-
Constructor Details
-
CPreferenceModel
Creates a new model. This constructor sets the behavior of how to create paths for preferences toPathCombiner.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
Creates a new model.- Parameters:
control- the control whose settings can be changed by this modelcombiner- how to combine paths of models and of preferences
-
-
Method Details
-
getKeyStrokePreferences
Grants access to the preferences concerning the globalKeyStrokes.- Returns:
- the model, not
null - Throws:
IllegalStateException- if the model was removed or replaced by the client
-
getLayoutPreferences
Grants access to the preferences concerning layout options like "where are the tabs placed?".- Returns:
- the model, not
null - Throws:
IllegalStateException- if the model was removed or replaced by the client
-
getButtonContent
Grants access to the preferences concerning theButtonContent.- Returns:
- the model, not
null - Throws:
IllegalStateException- if the model was removed or replaced by the client
-
getBubbleThemePreferences
Grants access to the preferences concerning theBubbleTheme.- Returns:
- the model, not
null - Throws:
IllegalStateException- if the model was removed or replaced by the client
-
getEclipseThemePreferences
Grants access to the preferences concerning theEclipseTheme.- Returns:
- the model, not
null - Throws:
IllegalStateException- if the model was removed or replaced by the client
-