Class OptionEntry

java.lang.Object
org.apache.empire.commons.OptionEntry
All Implemented Interfaces:
Serializable, Cloneable

public class OptionEntry extends Object implements Cloneable, Serializable
This class defines one possible value of a field and it's description
This class is used by the Options class to implement a set of options where the option value us used as the key for the set.
The text should only be used for display purposes e.g. to display a drop-down in a user interface.
See Also:
  • Constructor Details

    • OptionEntry

      public OptionEntry(Object value, String text, boolean active)
    • OptionEntry

      public OptionEntry(Object value, String text)
  • Method Details

    • getValue

      public Object getValue()
    • valueEquals

      public boolean valueEquals(Object value)
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • getValueString

      public String getValueString()
      Gets the value as string
      Returns:
      the string representation of the value or an empty string if the value is null
    • getText

      public String getText()
    • setText

      public void setText(String text)
    • isActive

      public boolean isActive()
    • setActive

      public void setActive(boolean active)
    • toString

      public String toString()
      Overrides:
      toString in class Object