org.apache.cocoon.forms.formmodel
Class AbstractWidgetDefinitionBuilder
java.lang.Object
org.apache.cocoon.forms.formmodel.AbstractWidgetDefinitionBuilder
- All Implemented Interfaces:
- Disposable, Serviceable, WidgetDefinitionBuilder
- Direct Known Subclasses:
- AbstractContainerDefinitionBuilder, AbstractDatatypeWidgetDefinitionBuilder, ActionDefinitionBuilder, BooleanFieldDefinitionBuilder, ButtonDefinitionBuilder, ExpandDefinitionBuilder, GoogleMapDefinitionBuilder, ImageMapDefinitionBuilder, ImportDefinitionBuilder, MessagesDefinitionBuilder, NewDefinitionBuilder, RepeaterActionDefinitionBuilder, RowActionDefinitionBuilder, TreeDefinitionBuilder, UploadDefinitionBuilder
public abstract class AbstractWidgetDefinitionBuilder
- extends Object
- implements WidgetDefinitionBuilder, Serviceable, Disposable
Abstract base class for WidgetDefinitionBuilders. Provides functionality
common to many implementations.
- Version:
- $Id: AbstractWidgetDefinitionBuilder.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
widgetDefinitionBuilderSelector
protected ServiceSelector widgetDefinitionBuilderSelector
widgetValidatorBuilderSelector
protected ServiceSelector widgetValidatorBuilderSelector
widgetListenerBuilderSelector
protected ServiceSelector widgetListenerBuilderSelector
datatypeManager
protected DatatypeManager datatypeManager
expressionManager
protected ExpressionManager expressionManager
serviceManager
protected ServiceManager serviceManager
AbstractWidgetDefinitionBuilder
public AbstractWidgetDefinitionBuilder()
service
public void service(ServiceManager serviceManager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Throws:
ServiceException
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
buildWidgetDefinition
public WidgetDefinition buildWidgetDefinition(Element widgetElement)
throws Exception
- Specified by:
buildWidgetDefinition
in interface WidgetDefinitionBuilder
- Throws:
Exception
setupDefinition
protected void setupDefinition(Element widgetElement,
AbstractWidgetDefinition definition,
WidgetDefinitionBuilderContext context)
throws Exception
- Throws:
Exception
setCommonProperties
protected void setCommonProperties(Element widgetElement,
AbstractWidgetDefinition widgetDefinition)
throws Exception
- Throws:
Exception
buildAnotherWidgetDefinition
protected WidgetDefinition buildAnotherWidgetDefinition(Element widgetElement,
WidgetDefinitionBuilderContext context)
throws Exception
- Throws:
Exception
buildEventListeners
protected List buildEventListeners(Element widgetElement,
String elementName,
Class listenerClass)
throws Exception
- Throws:
Exception
setDisplayData
protected void setDisplayData(Element widgetElement,
AbstractWidgetDefinition widgetDefinition)
throws Exception
- Throws:
Exception
setValidators
protected void setValidators(Element widgetElement,
AbstractWidgetDefinition widgetDefinition)
throws Exception
- Throws:
Exception
setCreateListeners
protected void setCreateListeners(Element widgetElement,
AbstractWidgetDefinition widgetDefinition)
throws Exception
- Throws:
Exception
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.