Class TranslatedProperty

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ChoosableProperty

public class TranslatedProperty extends SettableProperty<String>
A Translated property is a settable String-valued property.
See Also:
  • Constructor Details

  • Method Details

    • getValue

      public String getValue(boolean translate)
      Get property value, optionally translated
      Returns:
      String value
    • getTranslatedValue

      public String getTranslatedValue()
      Get translated property value. Default implementation uses the dictionary string translator. Override if needed.
      Returns:
      translated value, or "" if none
    • setTranslatedValue

      public void setTranslatedValue(String translatedValue)
      the following code fragment is always a no-op: setTranslatedValue(getValue(true))
    • getOptions

      public String[] getOptions()
      Get the valid key (untranslated) values for the property
      Returns:
      String[] of valid values
    • getTranslatedOptions

      public String[] getTranslatedOptions()
      Get the translated values for the property
      Returns:
      String[] of valid values
    • getDiffValue

      public String getDiffValue(boolean translate)
      get (possibly translated) diff value
      Parameters:
      translate - flag
      Returns:
      translated diff value, or diff value
      See Also:
      • getTranslatedDiffValue()