CLRA 0.1.2

com.clra.web
Class LabelValueBean

java.lang.Object
  |
  +--com.clra.web.LabelValueBean

public class LabelValueBean
extends Object

Simple JavaBean to represent label-value pairs for use in collections that are utilized by the <form:options> tag.

Version:
$Revision: 1.2 $ $Date: 2002/02/18 18:06:07 $
Author:
Craig R. McClanahan -- original author, Rick Hall -- adapted to CLRA

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

label

protected String label
The label to be displayed to the user.

value

protected String value
The value to be returned to the server.
Constructor Detail

LabelValueBean

public LabelValueBean(String label,
                      String value)
Construct a new LabelValueBean with the specified values.
Parameters:
label - The label to be displayed to the user
value - The value to be returned to the server
Method Detail

getLabel

public String getLabel()

getValue

public String getValue()

toString

public String toString()
Return a string representation of this object.
Overrides:
toString in class Object

CLRA 0.1.2