public abstract class AbstractWidgetTypeHandler extends Object implements WidgetTypeHandler
Modifier and Type | Field and Description |
---|---|
static String |
DEV_TEMPLATE_PROPERTY_NAME |
static String |
DISABLE_DEV_PROPERTY_NAME |
protected Map<String,String> |
properties |
Constructor and Description |
---|
AbstractWidgetTypeHandler() |
Modifier and Type | Method and Description |
---|---|
javax.faces.view.facelets.FaceletHandler |
getDevFaceletHandler(javax.faces.view.facelets.FaceletContext ctx,
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) |
abstract javax.faces.view.facelets.FaceletHandler |
getFaceletHandler(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.view.facelets.TagConfig tagConfig,
Widget widget,
javax.faces.view.facelets.FaceletHandler[] subHandlers)
Returns the facelet handler that will be applied for given widget and template in this context.
|
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)
Deprecated.
|
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
|
public static final String DEV_TEMPLATE_PROPERTY_NAME
public static final String DISABLE_DEV_PROPERTY_NAME
protected Map<String,String> properties
public AbstractWidgetTypeHandler()
public abstract javax.faces.view.facelets.FaceletHandler getFaceletHandler(javax.faces.view.facelets.FaceletContext ctx, javax.faces.view.facelets.TagConfig tagConfig, Widget widget, javax.faces.view.facelets.FaceletHandler[] subHandlers) throws WidgetException
WidgetTypeHandler
getFaceletHandler
in interface WidgetTypeHandler
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.WidgetException
public javax.faces.view.facelets.FaceletHandler getDevFaceletHandler(javax.faces.view.facelets.FaceletContext ctx, javax.faces.view.facelets.TagConfig tagConfig, Widget widget) throws WidgetException
WidgetTypeHandler
getDevFaceletHandler
in interface WidgetTypeHandler
WidgetException
public String getProperty(String name)
WidgetTypeHandler
getProperty
in interface WidgetTypeHandler
public String getRequiredProperty(String name) throws WidgetException
WidgetException
public void setProperties(Map<String,String> properties)
WidgetTypeHandler
setProperties
in interface WidgetTypeHandler
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)
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)
getNextHandler(FaceletContext, TagConfig, Widget, FaceletHandler[], FaceletHandlerHelper, boolean, boolean)
insteadAdds an input slot if corresponding boolean parameter is true.
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 © 2015 Nuxeo SA. All rights reserved.