Nuxeo Enterprise Platform 5.1

org.nuxeo.ecm.platform.forms.layout.facelets.plugins
Class TemplateWidgetTypeHandler

java.lang.Object
  extended by org.nuxeo.ecm.platform.forms.layout.facelets.plugins.AbstractWidgetTypeHandler
      extended by org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
All Implemented Interfaces:
Serializable, WidgetTypeHandler
Direct Known Subclasses:
ListWidgetTypeHandler

public class TemplateWidgetTypeHandler
extends AbstractWidgetTypeHandler

Template widget type

Author:
Anahide Tchertchian
See Also:
Serialized Form

Field Summary
static String TEMPLATE_PROPERTY_NAME
           
 
Constructor Summary
TemplateWidgetTypeHandler()
           
 
Method Summary
 com.sun.facelets.FaceletHandler getFaceletHandler(com.sun.facelets.FaceletContext ctx, com.sun.facelets.tag.TagConfig tagConfig, Widget widget, com.sun.facelets.FaceletHandler[] subHandlers)
          Returns the facelet handler that will be applied for given widget and template in this context.
protected  com.sun.facelets.FaceletHandler getNextHandler(com.sun.facelets.FaceletContext ctx, com.sun.facelets.tag.TagConfig tagConfig, FaceletHandlerHelper helper, Widget widget)
          Computes the next handler, adding param handlers.
protected  com.sun.facelets.tag.TagAttribute getTemplateAttribute(FaceletHandlerHelper helper)
          Returns the template attribute.
protected  String getTemplateValue(Widget widget)
          Returns the template value.
 
Methods inherited from class org.nuxeo.ecm.platform.forms.layout.facelets.plugins.AbstractWidgetTypeHandler
getProperty, getRequiredProperty, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMPLATE_PROPERTY_NAME

public static final String TEMPLATE_PROPERTY_NAME
See Also:
Constant Field Values
Constructor Detail

TemplateWidgetTypeHandler

public TemplateWidgetTypeHandler()
Method Detail

getFaceletHandler

public com.sun.facelets.FaceletHandler getFaceletHandler(com.sun.facelets.FaceletContext ctx,
                                                         com.sun.facelets.tag.TagConfig tagConfig,
                                                         Widget widget,
                                                         com.sun.facelets.FaceletHandler[] subHandlers)
                                                  throws WidgetException
Description copied from interface: WidgetTypeHandler
Returns the facelet handler that will be applied for given widget and template in this context.

Specified by:
getFaceletHandler in interface WidgetTypeHandler
Specified by:
getFaceletHandler in class AbstractWidgetTypeHandler
Parameters:
ctx - the facelet context in which this handler will be applied.
tagConfig - the tag configuration this facelet will be applied for.
widget - the widget giving properties the handler will take into account.
subHandlers - facelet handlers for sub widgets.
Returns:
a facelet handler.
Throws:
WidgetException

getNextHandler

protected com.sun.facelets.FaceletHandler getNextHandler(com.sun.facelets.FaceletContext ctx,
                                                         com.sun.facelets.tag.TagConfig tagConfig,
                                                         FaceletHandlerHelper helper,
                                                         Widget widget)
                                                  throws WidgetException
Computes the next handler, adding param handlers.

Makes available the field values in templates using the format field_0, field_1, etc.

Throws:
WidgetException

getTemplateValue

protected String getTemplateValue(Widget widget)
Returns the template value.


getTemplateAttribute

protected com.sun.facelets.tag.TagAttribute getTemplateAttribute(FaceletHandlerHelper helper)
Returns the template attribute.


Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.