bibliothek.extension.gui.dock.preference.preferences.choice
Class ChoiceText
java.lang.Object
bibliothek.gui.dock.util.AbstractUIValue<java.lang.String,TextValue>
bibliothek.gui.dock.util.text.TextValue
bibliothek.extension.gui.dock.preference.preferences.choice.ChoiceText
- All Implemented Interfaces:
- UIValue<java.lang.String>
- Direct Known Subclasses:
- ChoiceEntryText
public abstract class ChoiceText
- extends TextValue
Represents a text that is used for a Choice
.
- Author:
- Benjamin Sigg
Method Summary |
Choice |
getChoice()
Gets the choice which is using this text. |
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 |
KIND_CHOICE
public static final Path KIND_CHOICE
- the kind of this
UIValue
ChoiceText
public ChoiceText(java.lang.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(java.lang.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 requiredkind
- what kind of UIValue
this is
getChoice
public Choice getChoice()
- Gets the choice which is using this text.
- Returns:
- the choice