public class TranslatedProperty extends SettableProperty<java.lang.String>
SettableProperty.Diff<T>DictionaryProperty.DiffType| Constructor and Description |
|---|
TranslatedProperty(DictionaryComponent containingComponent, java.lang.String propertyName) |
TranslatedProperty(DictionaryComponent containingComponent, java.lang.String propertyName, java.lang.String propertyIdName) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDiffValue(boolean translate)
get (possibly translated) diff value
|
java.lang.String[] |
getOptions()
Get the valid key (untranslated) values for the property
|
java.lang.String[] |
getTranslatedOptions()
Get the translated values for the property
|
java.lang.String |
getTranslatedValue()
Get translated property value.
|
java.lang.String |
getValue(boolean translate)
Get property value, optionally translated
|
void |
setTranslatedValue(java.lang.String translatedValue)
the following code fragment is always a no-op:
setTranslatedValue(getValue(true)) |
getDiffValue, getDiffValue, setValuegetContainedDiffs, getDiff, getDiffs, getName, getName, getTranslatedName, getValue, hasDiff, removeDiffpublic TranslatedProperty(DictionaryComponent containingComponent, java.lang.String propertyName, java.lang.String propertyIdName)
public TranslatedProperty(DictionaryComponent containingComponent, java.lang.String propertyName)
public java.lang.String getValue(boolean translate)
public java.lang.String getTranslatedValue()
public void setTranslatedValue(java.lang.String translatedValue)
setTranslatedValue(getValue(true))public java.lang.String[] getOptions()
public java.lang.String[] getTranslatedOptions()
public java.lang.String getDiffValue(boolean translate)
translate - flagTranslatedProperty.getTranslatedDiffValue()