org.apache.cocoon.forms.formmodel
Class FormDefinition
java.lang.Object
org.apache.cocoon.forms.formmodel.AbstractWidgetDefinition
org.apache.cocoon.forms.formmodel.AbstractContainerDefinition
org.apache.cocoon.forms.formmodel.FormDefinition
- All Implemented Interfaces:
- ContainerDefinition, WidgetDefinition, Locatable
public class FormDefinition
- extends AbstractContainerDefinition
The WidgetDefinition
part of a Form widget, see Form
for more information.
- Version:
- $Id: FormDefinition.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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 |
Methods inherited from interface org.apache.cocoon.forms.formmodel.WidgetDefinition |
generateDisplayData, generateDisplayData, generateLabel, getAttribute, getEnclosingLibrary, getFormDefinition, getId, getLocation, setEnclosingLibrary, setParent, validate |
FormDefinition
public FormDefinition(LibraryManager libraryManager)
getLocalLibrary
public Library getLocalLibrary()
resolve
public void resolve()
throws Exception
- Throws:
Exception
createInstance
public Widget createInstance()
- Description copied from interface:
WidgetDefinition
- Creates and returns a widget based on this widget definition.
addProcessingPhaseListener
public void addProcessingPhaseListener(ProcessingPhaseListener listener)
hasProcessingPhaseListeners
public boolean hasProcessingPhaseListeners()
fireEvent
public void fireEvent(ProcessingPhaseEvent event)
addWidgetDefinition
public void addWidgetDefinition(WidgetDefinition definition)
throws Exception,
DuplicateIdException
- Description copied from interface:
ContainerDefinition
- Adds a (sub) widget definition to this definition.
- Specified by:
addWidgetDefinition
in interface ContainerDefinition
- Overrides:
addWidgetDefinition
in class AbstractContainerDefinition
- Throws:
Exception
DuplicateIdException
getProcessingPhaseListener
public ProcessingPhaseListener getProcessingPhaseListener()
- Returns:
- Returns the listener.
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.