|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.forms.layout.service.WebLayoutManagerImpl
public class WebLayoutManagerImpl
Layout service implementation.
| Field Summary | |
|---|---|
static String |
LAYOUTS_EP_NAME
|
static ComponentName |
NAME
|
static String |
WIDGET_TYPES_EP_NAME
|
| Constructor Summary | |
|---|---|
WebLayoutManagerImpl()
|
|
| Method Summary | ||
|---|---|---|
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. |
|
|
getAdapter(Class<T> adapter)
Returns an object which is an instance of the given class associated with this object. |
|
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,
String layoutName,
String mode,
String valueName)
Returns the computed layout for this name and mode in given context. |
|
LayoutDefinition |
getLayoutDefinition(String layoutName)
Returns the registered layout definition for this name. |
|
WidgetType |
getWidgetType(String typeName)
Returns the registered widget type for this type name. |
|
WidgetTypeHandler |
getWidgetTypeHandler(String typeName)
Returns the widget type handler for the registered widget type with this type name. |
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
|
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
|
| Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
|---|
activate, deactivate, registerExtension, unregisterExtension |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ComponentName NAME
public static final String WIDGET_TYPES_EP_NAME
public static final String LAYOUTS_EP_NAME
| Constructor Detail |
|---|
public WebLayoutManagerImpl()
| Method Detail |
|---|
public void registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
registerContribution in class DefaultComponent
public void unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
unregisterContribution in class DefaultComponentpublic <T> T getAdapter(Class<T> adapter)
Adaptablenull if
no such object can be found.
getAdapter in interface AdaptablegetAdapter in class DefaultComponentadapter - the adapter class to look up
null if this object does not
have an adapter for the given classpublic WidgetType getWidgetType(String typeName)
LayoutManagerIf the no widget type is found with this name, return null.
getWidgetType in interface LayoutManagerpublic LayoutDefinition getLayoutDefinition(String layoutName)
LayoutManagerIf the no definition is found with this name, return null.
getLayoutDefinition in interface LayoutManager
public WidgetTypeHandler getWidgetTypeHandler(String typeName)
throws WidgetException
WebLayoutManagerIf the no widget type is found with this name, return null.
getWidgetTypeHandler in interface WebLayoutManagerWidgetException
public Layout getLayout(com.sun.facelets.FaceletContext ctx,
String layoutName,
String mode,
String valueName)
throws LayoutException
WebLayoutManagerWhen 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.
getLayout in interface WebLayoutManagerctx - 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.
LayoutException
public com.sun.facelets.FaceletHandler getFaceletHandler(com.sun.facelets.FaceletContext ctx,
com.sun.facelets.tag.TagConfig config,
Widget widget)
WebLayoutManager
getFaceletHandler in interface WebLayoutManagerctx - the facelet context.config - the tag config, used to hook the handler in the jsf tree.widget - the computed widget.
public Widget createWidget(com.sun.facelets.FaceletContext ctx,
String type,
String mode,
String valueName,
Map<String,Serializable> properties,
Widget[] subWidgets)
WebLayoutManager
createWidget in interface WebLayoutManagerctx - 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.
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||