Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

java.lang.Object
  extended by org.nuxeo.ecm.platform.forms.layout.facelets.plugins.AbstractWidgetTypeHandler
      extended by org.nuxeo.ecm.platform.forms.layout.facelets.plugins.CheckboxWidgetTypeHandler
All Implemented Interfaces:
Serializable, WidgetTypeHandler

public class CheckboxWidgetTypeHandler
extends AbstractWidgetTypeHandler

Checkbox widget that generates a checkbox for a boolean value in edit mode, and displays the boolean value in view mode.

In view mode, it expects the messages 'label.yes' and 'label.no' to be present in a bundle called 'messages' for internationalization, when the bound value is computed from field definitions.

See Also:
Serialized Form

Constructor Summary
CheckboxWidgetTypeHandler()
           
 
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.
 
Methods inherited from class org.nuxeo.ecm.platform.forms.layout.facelets.plugins.AbstractWidgetTypeHandler
getProperty, getRequiredProperty, setProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckboxWidgetTypeHandler

public CheckboxWidgetTypeHandler()
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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.