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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SearchValue()
SearchValue(T value)
SearchValue(T value, String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
equals(Object o)
String
getDescription()
Returns longer description that can be used as a help text, tooltip or for similar purpose.String
getDisplayName()
String
getLabel()
Returns short user-friendly label.T
getValue()
Retuns actual value.int
hashCode()
void
setDisplayName(String displayName)
void
setLabel(String label)
void
setValue(T value)
String
toString()
-
-
-
Field Detail
-
F_VALUE
public static final String F_VALUE
- See Also:
- Constant Field Values
-
F_LABEL
public static final String F_LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 interfaceDisplayableValue<T>
-
getValue
public T getValue()
Description copied from interface:DisplayableValue
Retuns actual value. This may not be user-friendly.- Specified by:
getValue
in interfaceDisplayableValue<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 interfaceDisplayableValue<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()
-
-