org.opencms.frontend.templateone.form
Class CmsFieldValue

java.lang.Object
  extended by org.opencms.frontend.templateone.form.CmsFieldValue

public class CmsFieldValue
extends java.lang.Object

Represents a single input field value of a submitted form.

This object is needed to create the output for the optional confirmation page, the notification email or the final page after submission.

Since:
6.0.0

Constructor Summary
CmsFieldValue(I_CmsField field)
          Constructor that creates an initialized field item.
 
Method Summary
 java.lang.String getLabel()
          Returns the label text of the field item.
 java.lang.String getValue()
          Returns the value of the field item.
 boolean isShow()
          Returns if the current item is shown or not.
protected  void setLabel(java.lang.String label)
          Sets the label text of the field item.
protected  void setShow(boolean show)
          Sets if the current item is shown or not.
protected  void setValue(java.lang.String value)
          Sets the value of the field item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsFieldValue

public CmsFieldValue(I_CmsField field)
Constructor that creates an initialized field item.

Parameters:
field - the form field to create the value from
Method Detail

getLabel

public java.lang.String getLabel()
Returns the label text of the field item.

Returns:
the label text of the field item

getValue

public java.lang.String getValue()
Returns the value of the field item.

Returns:
the value of the field item

isShow

public boolean isShow()
Returns if the current item is shown or not.

Returns:
true if the current item is shown, otherwise false

setLabel

protected void setLabel(java.lang.String label)
Sets the label text of the field item.

Parameters:
label - the label text of the field item

setShow

protected void setShow(boolean show)
Sets if the current item is shown or not.

Parameters:
show - true if the current item is shown, otherwise false

setValue

protected void setValue(java.lang.String value)
Sets the value of the field item.

Parameters:
value - the value of the field item