bibliothek.extension.gui.dock.preference
Class PreferenceText

java.lang.Object
  extended by bibliothek.gui.dock.util.AbstractUIValue<java.lang.String,TextValue>
      extended by bibliothek.gui.dock.util.text.TextValue
          extended by bibliothek.extension.gui.dock.preference.PreferenceText
All Implemented Interfaces:
UIValue<java.lang.String>

public abstract class PreferenceText
extends TextValue

A text that is used for a Preference.

Author:
Benjamin Sigg

Field Summary
static Path KIND_PREFERENCE
          the kind of UIValue this is
 
Fields inherited from class bibliothek.gui.dock.util.text.TextValue
KIND_TEXT
 
Constructor Summary
PreferenceText(java.lang.String id, Preference<?> preference)
          Creates a new text.
 
Method Summary
 Preference<?> getPreference()
          Gets the preference for which this text is used.
 
Methods inherited from class bibliothek.gui.dock.util.text.TextValue
me, setController
 
Methods inherited from class bibliothek.gui.dock.util.AbstractUIValue
changed, getBackup, getId, getKind, getValue, set, setBackup, setId, setKind, setManager, setValue, setValue, update, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KIND_PREFERENCE

public static final Path KIND_PREFERENCE
the kind of UIValue this is

Constructor Detail

PreferenceText

public PreferenceText(java.lang.String id,
                      Preference<?> preference)
Creates a new text.

Parameters:
id - the unique identifier of the text
preference - the preference for which the text is used
Method Detail

getPreference

public Preference<?> getPreference()
Gets the preference for which this text is used.

Returns:
the text