uk.ac.ebi.intact.application.hierarchView.struts.view.utils
Class LabelValueBean

java.lang.Object
  |
  +--uk.ac.ebi.intact.application.hierarchView.struts.view.utils.LabelValueBean

public class LabelValueBean
extends java.lang.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: 2003/03/18 10:39:55 $
Author:
Craig R. McClanahan

Field Summary
protected  java.lang.String description
          The description to be returned to the server.
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, java.lang.String description)
          Construct a new LabelValueBean with the specified values.
 
Method Summary
 java.lang.String getDescription()
           
 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.


description

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

Constructor Detail

LabelValueBean

public LabelValueBean(java.lang.String label,
                      java.lang.String value,
                      java.lang.String description)
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
description - The description to be returned to the server
Method Detail

getLabel

public java.lang.String getLabel()

getValue

public java.lang.String getValue()

getDescription

public java.lang.String getDescription()

toString

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

Overrides:
toString in class java.lang.Object


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk