org.apache.commons.scaffold.util
Class LabelValueBean

java.lang.Object
  extended by org.apache.commons.scaffold.util.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.

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.

Version:
$Revision: 155464 $ $Date: 2005-02-26 13:26:54 +0000 (Sat, 26 Feb 2005) $
Author:
Craig R. McClanahan

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


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.