public class ChoosableProperty extends TranslatedProperty
SettableProperty.Diff<T>
DictionaryProperty.DiffType
Modifier and Type | Method and Description |
---|---|
Choice |
getChoice()
get current choice
|
java.util.List<Choice> |
getChoices()
return forest of valid choices
|
java.util.List<Choice> |
getChoices(java.lang.String pattern)
The pattern is compared with the translated value of the choice.
|
java.lang.String[] |
getOptions(boolean translate) |
java.lang.String[] |
getTranslatedOptions()
Get the translated values for the property
|
java.lang.String |
getTranslatedValue()
Subclasses should override.
|
void |
setChoice(Choice choice)
set current choice
setting to null sets the property value to ""
|
void |
setTranslatedValue(java.lang.String translatedValue)
Set translated property value.
|
getDiffValue, getOptions, getValue
getDiffValue, getDiffValue, setValue
getContainedDiffs, getDiff, getDiffs, getName, getName, getTranslatedName, getValue, hasDiff, removeDiff
public java.lang.String getTranslatedValue()
getTranslatedValue
in class TranslatedProperty
public java.util.List<Choice> getChoices()
public java.util.List<Choice> getChoices(java.lang.String pattern)
pattern
- public Choice getChoice()
public void setChoice(Choice choice)
public java.lang.String[] getTranslatedOptions()
TranslatedProperty
getTranslatedOptions
in class TranslatedProperty
public java.lang.String[] getOptions(boolean translate)
public void setTranslatedValue(java.lang.String translatedValue)
setTranslatedValue(getValue(true))
setTranslatedValue
in class TranslatedProperty
translatedValue
-