|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.scaffold.util.LabelValueBean
public class LabelValueBean
Simple JavaBean to represent label-value pairs for use in collections
that are utilized by the <form:options> tag.
If you are also use Struts 1.1 or later, you may prefer to use the
[org.apache.struts.util.LabelValueBean] class instead.
The classes are identical.
| Field Summary | |
|---|---|
protected String |
label
The label to be displayed to the user. |
protected String |
value
The value to be returned to the server. |
| Constructor Summary | |
|---|---|
LabelValueBean(String label,
String value)
Construct a new LabelValueBean with the specified values. |
|
| Method Summary | |
|---|---|
String |
getLabel()
|
String |
getValue()
|
String |
toString()
Return a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String label
protected String value
| Constructor Detail |
|---|
public LabelValueBean(String label,
String value)
label - The label to be displayed to the uservalue - The value to be returned to the server| Method Detail |
|---|
public String getLabel()
public String getValue()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||