org.apache.cocoon.woody.formmodel
Class AbstractWidgetDefinitionBuilder

java.lang.Object
  extended by org.apache.cocoon.woody.formmodel.AbstractWidgetDefinitionBuilder
All Implemented Interfaces:
Disposable, Serviceable, WidgetDefinitionBuilder
Direct Known Subclasses:
AbstractDatatypeWidgetDefinitionBuilder, ActionDefinitionBuilder, BooleanFieldDefinitionBuilder, ClassDefinitionBuilder, FormDefinitionBuilder, MessagesDefinitionBuilder, NewDefinitionBuilder, RepeaterActionDefinitionBuilder, RepeaterDefinitionBuilder, RowActionDefinitionBuilder, StructDefinitionBuilder, UnionDefinitionBuilder, 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 $

Field Summary
protected  DatatypeManager datatypeManager
           
protected  ExpressionManager expressionManager
           
protected  ServiceManager serviceManager
           
protected  ServiceSelector widgetDefinitionBuilderSelector
           
protected  ServiceSelector widgetValidatorBuilderSelector
           
 
Constructor Summary
AbstractWidgetDefinitionBuilder()
           
 
Method Summary
protected  WidgetDefinition buildAnotherWidgetDefinition(Element widgetDefinition)
           
protected  List buildEventListeners(Element widgetElement, String elementName, Class listenerClass)
           
 void dispose()
           
 void service(ServiceManager serviceManager)
           
protected  void setDisplayData(Element widgetElement, AbstractWidgetDefinition widgetDefinition)
           
protected  void setId(Element widgetElement, AbstractWidgetDefinition widgetDefinition)
           
protected  void setLocation(Element widgetElement, AbstractWidgetDefinition widgetDefinition)
           
protected  void setValidators(Element widgetElement, AbstractWidgetDefinition widgetDefinition)
           
 
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.woody.formmodel.WidgetDefinitionBuilder
buildWidgetDefinition
 

Field Detail

widgetDefinitionBuilderSelector

protected ServiceSelector widgetDefinitionBuilderSelector

widgetValidatorBuilderSelector

protected ServiceSelector widgetValidatorBuilderSelector

datatypeManager

protected DatatypeManager datatypeManager

expressionManager

protected ExpressionManager expressionManager

serviceManager

protected ServiceManager serviceManager
Constructor Detail

AbstractWidgetDefinitionBuilder

public AbstractWidgetDefinitionBuilder()
Method Detail

service

public void service(ServiceManager serviceManager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

setLocation

protected void setLocation(Element widgetElement,
                           AbstractWidgetDefinition widgetDefinition)

setId

protected void setId(Element widgetElement,
                     AbstractWidgetDefinition widgetDefinition)
              throws Exception
Throws:
Exception

buildAnotherWidgetDefinition

protected WidgetDefinition buildAnotherWidgetDefinition(Element widgetDefinition)
                                                 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

dispose

public void dispose()
Specified by:
dispose in interface Disposable


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