org.apache.cocoon.forms.formmodel
Class CalculatedFieldDefinition

java.lang.Object
  extended by org.apache.cocoon.forms.formmodel.AbstractWidgetDefinition
      extended by org.apache.cocoon.forms.formmodel.AbstractDatatypeWidgetDefinition
          extended by org.apache.cocoon.forms.formmodel.FieldDefinition
              extended by org.apache.cocoon.forms.formmodel.CalculatedFieldDefinition
All Implemented Interfaces:
Serviceable, WidgetDefinition, Locatable

public class CalculatedFieldDefinition
extends FieldDefinition

Definition of a CalculatedField.

Version:
$Id: CalculatedFieldDefinition.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
 
Fields inherited from class org.apache.cocoon.forms.formmodel.AbstractWidgetDefinition
createListener, enclosingLibrary, parent
 
Constructor Summary
CalculatedFieldDefinition()
           
 
Method Summary
 Widget createInstance()
          Creates and returns a widget based on this widget definition.
 CalculatedFieldAlgorithm getAlgorithm()
           
 void setAlgorithm(CalculatedFieldAlgorithm algorithm)
           
 
Methods inherited from class org.apache.cocoon.forms.formmodel.FieldDefinition
getSuggestionList, getWhitespaceTrim, initializeFrom, isRequired, setRequired, setSuggestionList, setWhitespaceTrim
 
Methods inherited from class org.apache.cocoon.forms.formmodel.AbstractDatatypeWidgetDefinition
addValueChangedListener, buildSelectionList, buildSelectionListFromModel, checkCompleteness, fireValueChangedEvent, getDatatype, getInitialValue, getSelectionList, getValueChangedListener, hasValueChangedListeners, service, setDatatype, setSelectionList
 
Methods inherited from class org.apache.cocoon.forms.formmodel.AbstractWidgetDefinition
addCreateListener, addValidator, checkMutable, fireCreateEvent, generateDisplayData, generateDisplayData, generateLabel, getAttribute, getEnclosingLibrary, getFormDefinition, getId, getLocation, getParent, getState, makeImmutable, setAttributes, setDisplayData, setEnclosingLibrary, setId, setLocation, setParent, setState, validate, widgetCreated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculatedFieldDefinition

public CalculatedFieldDefinition()
Method Detail

createInstance

public Widget createInstance()
Description copied from interface: WidgetDefinition
Creates and returns a widget based on this widget definition.

Specified by:
createInstance in interface WidgetDefinition
Overrides:
createInstance in class FieldDefinition

getAlgorithm

public CalculatedFieldAlgorithm getAlgorithm()
Returns:
Returns the algorithm.

setAlgorithm

public void setAlgorithm(CalculatedFieldAlgorithm algorithm)
Parameters:
algorithm - The algorithm to set.


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