org.apache.cocoon.forms.formmodel
Class FieldDefinition
java.lang.Object
org.apache.cocoon.forms.formmodel.AbstractWidgetDefinition
org.apache.cocoon.forms.formmodel.AbstractDatatypeWidgetDefinition
org.apache.cocoon.forms.formmodel.FieldDefinition
- All Implemented Interfaces:
- Serviceable, WidgetDefinition, Locatable
- Direct Known Subclasses:
- AggregateFieldDefinition, CalculatedFieldDefinition, CaptchaFieldDefinition, MultiValueFieldDefinition, RepeaterFilterFieldDefinition
public class FieldDefinition
- extends AbstractDatatypeWidgetDefinition
The WidgetDefinition
part of a Field widget, see Field
for more information.
- Version:
- $Id: FieldDefinition.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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 |
FieldDefinition
public FieldDefinition()
createInstance
public Widget createInstance()
- Description copied from interface:
WidgetDefinition
- Creates and returns a widget based on this widget definition.
initializeFrom
public void initializeFrom(WidgetDefinition definition)
throws Exception
- initialize this definition with the other, sort of like a copy constructor
- Specified by:
initializeFrom
in interface WidgetDefinition
- Overrides:
initializeFrom
in class AbstractDatatypeWidgetDefinition
- Throws:
Exception
isRequired
public boolean isRequired()
setRequired
public void setRequired(boolean required)
getWhitespaceTrim
public Whitespace getWhitespaceTrim()
setWhitespaceTrim
public void setWhitespaceTrim(Whitespace whitespaceTrim)
getSuggestionList
public SelectionList getSuggestionList()
setSuggestionList
public void setSuggestionList(SelectionList list)
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.