public abstract class AbstractWidgetTypeHandler extends WidgetTypeHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
DEV_TEMPLATE_PROPERTY_NAME |
static String |
DISABLE_DEV_PROPERTY_NAME |
protected Map<String,String> |
properties |
protected javax.faces.view.facelets.TagConfig |
tagConfig |
protected Widget |
widget |
protected javax.faces.view.facelets.TagAttribute |
widgetAttr |
| Constructor and Description |
|---|
AbstractWidgetTypeHandler(javax.faces.view.facelets.TagConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent) |
abstract void |
apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent,
Widget widget)
Returns the facelet handler that will be applied for given widget and template in this context.
|
javax.faces.view.facelets.FaceletHandler |
getDevFaceletHandler(javax.faces.view.facelets.TagConfig tagConfig,
Widget widget)
Returns the facelet handler used for dev mode.
|
protected javax.faces.view.facelets.FaceletHandler |
getDocumentConstraintValidatorHandler(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.view.facelets.TagConfig tagConfig,
Widget widget,
javax.faces.view.facelets.FaceletHandler[] subHandlers,
FaceletHandlerHelper helper) |
protected javax.faces.view.facelets.FaceletHandler |
getInputSlotHandler(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.view.facelets.TagConfig tagConfig,
Widget widget,
javax.faces.view.facelets.FaceletHandler[] subHandlers,
FaceletHandlerHelper helper) |
protected javax.faces.view.facelets.FaceletHandler |
getNextHandler(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.view.facelets.TagConfig tagConfig,
Widget widget,
javax.faces.view.facelets.FaceletHandler[] subHandlers,
FaceletHandlerHelper helper)
Returns sub handlers as computed from tag information.
|
protected javax.faces.view.facelets.FaceletHandler |
getNextHandler(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.view.facelets.TagConfig tagConfig,
Widget widget,
javax.faces.view.facelets.FaceletHandler[] subHandlers,
FaceletHandlerHelper helper,
boolean addInputSlot,
boolean addDocumentConstraintValidator)
Returns sub handlers as computed from tag information.
|
String |
getProperty(String name)
Returns a property value given its name.
|
String |
getRequiredProperty(String name)
Helper method, throws an exception if property value is null.
|
void |
setProperties(Map<String,String> properties)
Set properties
|
void |
setWidget(Widget widget) |
public static final String DEV_TEMPLATE_PROPERTY_NAME
public static final String DISABLE_DEV_PROPERTY_NAME
protected final javax.faces.view.facelets.TagConfig tagConfig
protected Map<String,String> properties
protected final javax.faces.view.facelets.TagAttribute widgetAttr
public AbstractWidgetTypeHandler(javax.faces.view.facelets.TagConfig config)
public void apply(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent) throws IOException
IOExceptionpublic abstract void apply(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent, Widget widget) throws WidgetException, IOException
WidgetTypeHandlerapply in class WidgetTypeHandlerctx - the facelet context in which this handler will be applied.parent - parent component in the JSF treewidget - the widget giving properties the handler will take into account.WidgetExceptionIOExceptionpublic javax.faces.view.facelets.FaceletHandler getDevFaceletHandler(javax.faces.view.facelets.TagConfig tagConfig, Widget widget) throws WidgetException
WidgetTypeHandlergetDevFaceletHandler in class WidgetTypeHandlerWidgetExceptionpublic String getProperty(String name)
WidgetTypeHandlergetProperty in class WidgetTypeHandlerpublic String getRequiredProperty(String name) throws WidgetException
WidgetExceptionpublic void setProperties(Map<String,String> properties)
WidgetTypeHandlersetProperties in class WidgetTypeHandlerpublic void setWidget(Widget widget)
setWidget in class WidgetTypeHandlerprotected javax.faces.view.facelets.FaceletHandler getNextHandler(javax.faces.view.facelets.FaceletContext ctx, javax.faces.view.facelets.TagConfig tagConfig, Widget widget, javax.faces.view.facelets.FaceletHandler[] subHandlers, FaceletHandlerHelper helper)
Adds an sub insert handler slot named RenderVariables.widgetTemplatingZones#inside_input_widget when
widget is in edit mode.
Adds an sub document constraint validator handler named DocumentConstraintValidator.VALIDATOR_ID when
widget is in edit mode.
protected javax.faces.view.facelets.FaceletHandler getNextHandler(javax.faces.view.facelets.FaceletContext ctx, javax.faces.view.facelets.TagConfig tagConfig, Widget widget, javax.faces.view.facelets.FaceletHandler[] subHandlers, FaceletHandlerHelper helper, boolean addInputSlot, boolean addDocumentConstraintValidator)
Adds an input slot if corresponding boolean parameter is true.
Adds an document constraint validator if corresponding boolean parameter is true.
protected javax.faces.view.facelets.FaceletHandler getInputSlotHandler(javax.faces.view.facelets.FaceletContext ctx, javax.faces.view.facelets.TagConfig tagConfig, Widget widget, javax.faces.view.facelets.FaceletHandler[] subHandlers, FaceletHandlerHelper helper)
protected javax.faces.view.facelets.FaceletHandler getDocumentConstraintValidatorHandler(javax.faces.view.facelets.FaceletContext ctx, javax.faces.view.facelets.TagConfig tagConfig, Widget widget, javax.faces.view.facelets.FaceletHandler[] subHandlers, FaceletHandlerHelper helper)
Copyright © 2016 Nuxeo SA. All rights reserved.