org.opencms.frontend.templateone.form
Class CmsFieldFactory

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

public final class CmsFieldFactory
extends java.lang.Object

A factory to create form field instances of a specified type.


Field Summary
static java.lang.String CUSTOM_FORM_FIELD_PROPERTIES
          Filename of the optional custom form field properties.
 
Method Summary
protected  A_CmsField getField(java.lang.String type)
          Returns an instance of a form field of the specified type.
static CmsFieldFactory getSharedInstance()
          Returns the shared instance of the field factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CUSTOM_FORM_FIELD_PROPERTIES

public static final java.lang.String CUSTOM_FORM_FIELD_PROPERTIES
Filename of the optional custom form field properties.

Method Detail

getSharedInstance

public static CmsFieldFactory getSharedInstance()
Returns the shared instance of the field factory.

Returns:
the shared instance of the field factory

getField

protected A_CmsField getField(java.lang.String type)
Returns an instance of a form field of the specified type.

Parameters:
type - the desired type of the form field.
Returns:
the instance of a form field, or null if creating an instance of the class failed