|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.struts.util.LabelValueBean
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.
| フィールドの概要 | |
static java.util.Comparator |
CASE_INSENSITIVE_ORDER
Comparator that can be used for a case insensitive sort of LabelValueBean objects. |
private java.lang.String |
label
The property which supplies the option label visible to the end user. |
private java.lang.String |
value
The property which supplies the value returned to the server. |
| コンストラクタの概要 | |
LabelValueBean()
Default constructor. |
|
LabelValueBean(java.lang.String label,
java.lang.String value)
Construct an instance with the supplied property values. |
|
| メソッドの概要 | |
int |
compareTo(java.lang.Object o)
Compare LabelValueBeans based on the label, because that's the human viewable part of the object. |
boolean |
equals(java.lang.Object obj)
LabelValueBeans are equal if their values are both null or equal. |
java.lang.String |
getLabel()
|
java.lang.String |
getValue()
|
int |
hashCode()
The hash code is based on the object's value. |
void |
setLabel(java.lang.String label)
|
void |
setValue(java.lang.String value)
|
java.lang.String |
toString()
Return a string representation of this object. |
| クラス java.lang.Object から継承したメソッド |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
public static final java.util.Comparator CASE_INSENSITIVE_ORDER
LabelValueBean objects.
private java.lang.String label
private java.lang.String value
| コンストラクタの詳細 |
public LabelValueBean()
public LabelValueBean(java.lang.String label,
java.lang.String value)
label - The label to be displayed to the user.value - The value to be returned to the server.| メソッドの詳細 |
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public java.lang.String getValue()
public void setValue(java.lang.String value)
public int compareTo(java.lang.Object o)
java.lang.Comparable 内の compareToComparablepublic java.lang.String toString()
public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)public int hashCode()
Object.hashCode()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||