| java.lang.Object org.apache.struts.util.LabelValueBean
LabelValueBean | public class LabelValueBean implements Comparable,Serializable(Code) | | A simple JavaBean to represent label-value pairs. This is most commonly
used when constructing user interface elements which have a label to be
displayed to the user, and a corresponding value to be returned to the
server. One example is the <html:options> tag.
Note: this class has a natural ordering that is inconsistent with
equals.
version: $Rev: 471754 $ $Date: 2005-05-07 12:11:38 -0400 (Sat, 07 May 2005) version: $ |
CASE_INSENSITIVE_ORDER | final public static Comparator CASE_INSENSITIVE_ORDER(Code) | | Comparator that can be used for a case insensitive sort of
LabelValueBean objects.
|
LabelValueBean | public LabelValueBean()(Code) | | Default constructor.
|
LabelValueBean | public LabelValueBean(String label, String value)(Code) | | Construct an instance with the supplied property values.
Parameters: label - The label to be displayed to the user. Parameters: value - The value to be returned to the server. |
compareTo | public int compareTo(Object o)(Code) | | Compare LabelValueBeans based on the label, because that's the human
viewable part of the object.
See Also: Comparable |
hashCode | public int hashCode()(Code) | | The hash code is based on the object's value.
See Also: Object.hashCode |
toString | public String toString()(Code) | | Return a string representation of this object.
|
|
|