org.objectweb.jonas.webapp.taglib
Class LabelValueBean

java.lang.Object
  extended by org.objectweb.jonas.webapp.taglib.LabelValueBean
All Implemented Interfaces:
java.io.Serializable

public class LabelValueBean
extends java.lang.Object
implements java.io.Serializable

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

Version:
$Revision: 1.2
Author:
Craig R. McClanahan
See Also:
Serialized Form

Field Summary
protected  java.lang.String label
          The label to be displayed to the user.
protected  java.lang.String value
          The value to be returned to the server.
 
Constructor Summary
LabelValueBean(java.lang.String label, java.lang.String value)
          Construct a new LabelValueBean with the specified values.
 
Method Summary
 java.lang.String getLabel()
           
 java.lang.String getValue()
           
 java.lang.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 java.lang.String label
The label to be displayed to the user.


value

protected java.lang.String value
The value to be returned to the server.

Constructor Detail

LabelValueBean

public LabelValueBean(java.lang.String label,
                      java.lang.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 java.lang.String getLabel()

getValue

public java.lang.String getValue()

toString

public java.lang.String toString()
Return a string representation of this object.

Overrides:
toString in class java.lang.Object