org.apache.struts.util
Class LabelValueBean
java.lang.Object
org.apache.struts.util.LabelValueBean
- Serializable
public class LabelValueBean
extends java.lang.Object
implements Serializable
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.
Version:
- Craig R. McClanahan
- Martin F N Cooper
private String | label - The property which supplies the option label visible to the end user.
|
private String | value - The property which supplies the value returned to the server.
|
LabelValueBean(String label, String value) - Construct an instance with the supplied property values.
|
label
private String label
The property which supplies the option label visible to the end user.
value
private String value
The property which supplies the value returned to the server.
LabelValueBean
public LabelValueBean(String label,
String value)
Construct an instance with the supplied property values.
label
- The label to be displayed to the user.value
- The value to be returned to the server.
getLabel
public String getLabel()
getValue
public String getValue()
setLabel
public void setLabel(String label)
setValue
public void setValue(String value)
toString
public String toString()
Return a string representation of this object.
Copyright B) 2000-2005 - Apache Software Foundation