Class SearchValue<T>

java.lang.Object
com.evolveum.midpoint.gui.impl.component.search.SearchValue<T>
All Implemented Interfaces:
DisplayableValue<T>, Serializable

public class SearchValue<T> extends Object implements DisplayableValue<T>, Serializable
Author:
Viliam Repan (lazyman)
See Also:
  • Field Details

  • Constructor Details

    • SearchValue

      public SearchValue()
    • SearchValue

      public SearchValue(T value)
    • SearchValue

      public SearchValue(T value, String label)
  • Method Details

    • getDescription

      public String getDescription()
      Description copied from interface: DisplayableValue
      Returns longer description that can be used as a help text, tooltip or for similar purpose. Catalog key may be returned instead of actual text.
      Specified by:
      getDescription in interface DisplayableValue<T>
    • getValue

      public T getValue()
      Description copied from interface: DisplayableValue
      Retuns actual value. This may not be user-friendly.
      Specified by:
      getValue in interface DisplayableValue<T>
    • getLabel

      public String getLabel()
      Description copied from interface: DisplayableValue
      Returns short user-friendly label. Catalog key may be returned instead of actual text.
      Specified by:
      getLabel in interface DisplayableValue<T>
    • setLabel

      public void setLabel(String label)
    • setValue

      public void setValue(T value)
    • getDisplayName

      public String getDisplayName()
    • setDisplayName

      public void setDisplayName(String displayName)
    • clear

      public void clear()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object