bibliothek.extension.gui.dock.preference.preferences.choice
Class ChoiceText

java.lang.Object
  extended by bibliothek.gui.dock.util.AbstractUIValue<String,TextValue>
      extended by bibliothek.gui.dock.util.text.TextValue
          extended by bibliothek.extension.gui.dock.preference.preferences.choice.ChoiceText
All Implemented Interfaces:
UIValue<String>
Direct Known Subclasses:
ChoiceEntryText

public abstract class ChoiceText
extends TextValue

Represents a text that is used for a Choice.

Author:
Benjamin Sigg

Field Summary
static Path KIND_CHOICE
          the kind of this UIValue
 
Fields inherited from class bibliothek.gui.dock.util.text.TextValue
KIND_TEXT
 
Constructor Summary
ChoiceText(String id, Choice choice)
          Creates a new ChoiceText.
ChoiceText(String id, Choice choice, Path kind)
          Creates a new ChoiceText.
 
Method Summary
 Choice getChoice()
          Gets the choice which is using this text.
 
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_CHOICE

public static final Path KIND_CHOICE
the kind of this UIValue

Constructor Detail

ChoiceText

public ChoiceText(String id,
                  Choice choice)
Creates a new ChoiceText.

Parameters:
id - the unique identifier of this UIValue
choice - the choice for which the text is required

ChoiceText

public ChoiceText(String id,
                  Choice choice,
                  Path kind)
Creates a new ChoiceText.

Parameters:
id - the unique identifier of this UIValue
choice - the choice for which the text is required
kind - what kind of UIValue this is
Method Detail

getChoice

public Choice getChoice()
Gets the choice which is using this text.

Returns:
the choice