public interface WebLayoutManager extends LayoutManager
It manages registries of layout definitions and widget types and handles the creation of layouts and widgets instances.
Modifier and Type | Field and Description |
---|---|
static String |
JSF_CATEGORY |
Modifier and Type | Method and Description |
---|---|
Widget |
createWidget(com.sun.facelets.FaceletContext ctx,
String type,
String mode,
String valueName,
List<FieldDefinition> fieldDefinitions,
String label,
String helpLabel,
Boolean translated,
Map<String,Serializable> properties,
Widget[] subWidgets)
Returns a widget computed from given information.
|
Widget |
createWidget(com.sun.facelets.FaceletContext ctx,
String type,
String mode,
String valueName,
Map<String,Serializable> properties,
Widget[] subWidgets)
Returns a widget computed from given information.
|
com.sun.facelets.FaceletHandler |
getFaceletHandler(com.sun.facelets.FaceletContext ctx,
com.sun.facelets.tag.TagConfig config,
Widget widget)
Returns the facelet handler for given widget.
|
Layout |
getLayout(com.sun.facelets.FaceletContext ctx,
LayoutDefinition layoutDef,
String mode,
String valueName,
List<String> selectedRows,
boolean selectAllRowsByDefault)
Returns the computed layout for this definition, mode and list of
selected rows in given context, or null if the layout definition is
null.
|
Layout |
getLayout(com.sun.facelets.FaceletContext ctx,
String layoutName,
String mode,
String valueName)
Returns the computed layout for this name and mode in given context, or
null if no layout with this name is found.
|
Layout |
getLayout(com.sun.facelets.FaceletContext ctx,
String layoutName,
String mode,
String valueName,
List<String> selectedRows,
boolean selectAllRowsByDefault)
Returns the computed layout for this name, mode and list of selected
rows in given context, or null if no layout with this name is found.
|
Layout |
getLayout(com.sun.facelets.FaceletContext ctx,
String layoutName,
String layoutCategory,
String mode,
String valueName,
List<String> selectedRows,
boolean selectAllRowsByDefault)
Returns the computed layout for this name, category, mode and list of
selected rows in given context, or null if no layout with this name is
found.
|
WidgetTypeHandler |
getWidgetTypeHandler(String typeName)
Returns the widget type handler for the registered widget type with this
type name.
|
getDefaultStoreCategory, getLayoutDefinition, getLayoutDefinitionNames, getWidgetDefinition, getWidgetType, getWidgetTypeDefinition, getWidgetTypeDefinitions
static final String JSF_CATEGORY
WidgetTypeHandler getWidgetTypeHandler(String typeName) throws WidgetException
If the no widget type is found with this name, return null.
WidgetException
Layout getLayout(com.sun.facelets.FaceletContext ctx, String layoutName, String mode, String valueName)
When a widget is configured not to be rendered in this mode, the layout will hold a null value instead. As well, when a row does not hold any non-null widget in this mode, the layout will not hold it.
ctx
- the facelet context this layout will be computed in. If
context is null, no expressions can be resolved during
computing.layoutName
- the layout definition name.mode
- the mode.valueName
- the value name to use when computing tag attributes.getLayout(FaceletContext, String, String, String, List, boolean)
Layout getLayout(com.sun.facelets.FaceletContext ctx, String layoutName, String mode, String valueName, List<String> selectedRows, boolean selectAllRowsByDefault)
layoutName
- the layout definition name.LayoutManager.getLayoutDefinition(String)
,
getLayout(FaceletContext, LayoutDefinition, String, String, List,
boolean)
Layout getLayout(com.sun.facelets.FaceletContext ctx, String layoutName, String layoutCategory, String mode, String valueName, List<String> selectedRows, boolean selectAllRowsByDefault)
layoutName
- the layout definition name.LayoutManager.getLayoutDefinition(String)
,
getLayout(FaceletContext, LayoutDefinition, String, String, List,
boolean)
Layout getLayout(com.sun.facelets.FaceletContext ctx, LayoutDefinition layoutDef, String mode, String valueName, List<String> selectedRows, boolean selectAllRowsByDefault)
When a widget is configured not to be rendered in this mode, the layout will hold a null value instead. As well, when a row does not hold any non-null widget in this mode, the layout will not hold it.
If parameter selectedRows is not null, layout rows will be filtered according to this value. If selectedRows is null and parameter selectAllRowsByDefault is true, all rows will be taken into account, even rows marked as not selected by default.
ctx
- the facelet context this layout will be computed in. If
context is null, no expressions can be resolved during
computing.layoutDef
- the layout definition instance.mode
- the mode.valueName
- the value name to use when computing tag attributes.selectedRows
- the list of selected rows namesselectAllRowsByDefault
- boolean indicating if all rows should be
considered selected by default in case parameter selectedRows
resolves to null.com.sun.facelets.FaceletHandler getFaceletHandler(com.sun.facelets.FaceletContext ctx, com.sun.facelets.tag.TagConfig config, Widget widget)
ctx
- the facelet context.config
- the tag config, used to hook the handler in the jsf tree.widget
- the computed widget.Widget createWidget(com.sun.facelets.FaceletContext ctx, String type, String mode, String valueName, Map<String,Serializable> properties, Widget[] subWidgets)
ctx
- the facelet context this layout will be computed in. If
context is null, no expressions can be resolved during
computing.type
- the widget type name.mode
- the mode.valueName
- the value name to use when computing tag attributes.properties
- optional properties to use when computing the widget.subWidgets
- optional sub widgets for this widget.createWidget(FaceletContext, String, String, String, List, String,
String, Boolean, Map, Widget[])
Widget createWidget(com.sun.facelets.FaceletContext ctx, String type, String mode, String valueName, List<FieldDefinition> fieldDefinitions, String label, String helpLabel, Boolean translated, Map<String,Serializable> properties, Widget[] subWidgets)
ctx
- the facelet context this layout will be computed in. If
context is null, no expressions can be resolved during
computing.type
- the widget type name.mode
- the mode.valueName
- the value name to use when computing tag attributes.fieldDefinitions
- label
- the widget labelhelpLabel
- the widget help labeltranslated
- if true, the labels will be translatedproperties
- optional properties to use when computing the widget.subWidgets
- optional sub widgets for this widget.Copyright © 2011 Nuxeo SA. All Rights Reserved.