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

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
              extended by bibliothek.extension.gui.dock.preference.preferences.choice.ChoiceEntryText
All Implemented Interfaces:
UIValue<String>

public abstract class ChoiceEntryText
extends ChoiceText

Represents a text that is used for an entry in a Choice.

Author:
Benjamin Sigg

Field Summary
static Path KIND_CHOICE_ENTRY
          What kind of UIValue this is
 
Fields inherited from class bibliothek.extension.gui.dock.preference.preferences.choice.ChoiceText
KIND_CHOICE
 
Fields inherited from class bibliothek.gui.dock.util.text.TextValue
KIND_TEXT
 
Constructor Summary
ChoiceEntryText(String id, Choice choice)
          Creates a new text UIValue
 
Method Summary
abstract  String getEntryId()
          Gets the unique identifier of the entry which is represented by this text.
abstract  Object getEntryValue()
          Gets the value which is described by the text
 
Methods inherited from class bibliothek.extension.gui.dock.preference.preferences.choice.ChoiceText
getChoice
 
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_ENTRY

public static final Path KIND_CHOICE_ENTRY
What kind of UIValue this is

Constructor Detail

ChoiceEntryText

public ChoiceEntryText(String id,
                       Choice choice)
Creates a new text UIValue

Parameters:
id - the unique identifier of this UIValue
choice - the choice which is using the text
Method Detail

getEntryId

public abstract String getEntryId()
Gets the unique identifier of the entry which is represented by this text.

Returns:
the unique identifier

getEntryValue

public abstract Object getEntryValue()
Gets the value which is described by the text

Returns:
the value, may be null