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 |
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.
|
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.
|
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
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
Copyright © 2015 Nuxeo SA. All rights reserved.