de.twenty11.skysail.common.forms
Class FieldDefinition

java.lang.Object
  extended by de.twenty11.skysail.common.forms.FieldDefinition
All Implemented Interfaces:
Serializable

public class FieldDefinition
extends Object
implements Serializable

Defines a html form field.

Author:
carsten
See Also:
Serialized Form

Constructor Summary
FieldDefinition(String fieldName, FieldType fieldType, FormBuilder formBuilder)
          alternative constructor, taking name and builder.
 
Method Summary
 FieldDefinition addField(String fieldName, FieldType fieldType)
          This method supports a DSL-style to add further columns to a chain of already available columnDefinitions.
 String getName()
          returns the name.
 String getValue()
           
 void setValue(String provided)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldDefinition

public FieldDefinition(String fieldName,
                       FieldType fieldType,
                       FormBuilder formBuilder)
alternative constructor, taking name and builder.

Parameters:
fieldName - name of the column
fieldType - the html type
formBuilder - the builder
Method Detail

addField

public final FieldDefinition addField(String fieldName,
                                      FieldType fieldType)
This method supports a DSL-style to add further columns to a chain of already available columnDefinitions. Attention: Call this method only from builer.configure! Make sure to have a ColumnBuilder set first.

Parameters:
fieldName - of the new field.
fieldType - of the new field.
Returns:
A new columnDefinition if a builder was available, null otherwise.

getName

public final String getName()
returns the name.

Returns:
the name

toString

public final String toString()
Overrides:
toString in class Object

setValue

public void setValue(String provided)

getValue

public String getValue()


Copyright © 2011-2012. All Rights Reserved.