Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.forms.layout.core.service
Class LayoutManagerImpl

java.lang.Object
  extended by org.nuxeo.ecm.platform.forms.layout.core.service.LayoutManagerImpl
All Implemented Interfaces:
Serializable, LayoutManager

public class LayoutManagerImpl
extends Object
implements LayoutManager

Since:
5.4
Author:
Anahide Tchertchian
See Also:
Serialized Form

Constructor Summary
LayoutManagerImpl()
           
 
Method Summary
 LayoutDefinition getLayoutDefinition(String layoutName)
          Returns the registered layout definition for this name.
 List<String> getLayoutDefinitionNames()
          Returns the names of all the registered layout definitions
 WidgetDefinition getWidgetDefinition(String widgetName)
          Returns the registered widget definition for this name.
 WidgetType getWidgetType(String typeName)
          Returns the registered widget type for this type name.
 WidgetTypeDefinition getWidgetTypeDefinition(String typeName)
          Returns the widget type definition with given name, or null if no widget type with this name is found.
 List<WidgetTypeDefinition> getWidgetTypeDefinitions()
          Returns the widget type definitions for all the registered widget types.
 void registerLayout(LayoutDefinition layoutDef)
           
 void registerWidget(WidgetDefinition widgetDef)
           
 void registerWidgetType(WidgetTypeDefinition desc)
           
 void unregisterLayout(LayoutDefinition layoutDef)
           
 void unregisterWidget(WidgetDefinition widgetDef)
           
 void unregisterWidgetType(WidgetTypeDefinition desc)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutManagerImpl

public LayoutManagerImpl()
Method Detail

registerWidgetType

public void registerWidgetType(WidgetTypeDefinition desc)
Specified by:
registerWidgetType in interface LayoutManager

unregisterWidgetType

public void unregisterWidgetType(WidgetTypeDefinition desc)
Specified by:
unregisterWidgetType in interface LayoutManager

registerLayout

public void registerLayout(LayoutDefinition layoutDef)
Specified by:
registerLayout in interface LayoutManager

unregisterLayout

public void unregisterLayout(LayoutDefinition layoutDef)
Specified by:
unregisterLayout in interface LayoutManager

registerWidget

public void registerWidget(WidgetDefinition widgetDef)
Specified by:
registerWidget in interface LayoutManager

unregisterWidget

public void unregisterWidget(WidgetDefinition widgetDef)
Specified by:
unregisterWidget in interface LayoutManager

getWidgetType

public WidgetType getWidgetType(String typeName)
Description copied from interface: LayoutManager
Returns the registered widget type for this type name.

If the no widget type is found with this name, return null.

Specified by:
getWidgetType in interface LayoutManager

getWidgetTypeDefinition

public WidgetTypeDefinition getWidgetTypeDefinition(String typeName)
Description copied from interface: LayoutManager
Returns the widget type definition with given name, or null if no widget type with this name is found.

Specified by:
getWidgetTypeDefinition in interface LayoutManager

getWidgetTypeDefinitions

public List<WidgetTypeDefinition> getWidgetTypeDefinitions()
Description copied from interface: LayoutManager
Returns the widget type definitions for all the registered widget types.

Specified by:
getWidgetTypeDefinitions in interface LayoutManager

getLayoutDefinition

public LayoutDefinition getLayoutDefinition(String layoutName)
Description copied from interface: LayoutManager
Returns the registered layout definition for this name.

If the no definition is found with this name, return null.

Specified by:
getLayoutDefinition in interface LayoutManager

getLayoutDefinitionNames

public List<String> getLayoutDefinitionNames()
Description copied from interface: LayoutManager
Returns the names of all the registered layout definitions

Specified by:
getLayoutDefinitionNames in interface LayoutManager

getWidgetDefinition

public WidgetDefinition getWidgetDefinition(String widgetName)
Description copied from interface: LayoutManager
Returns the registered widget definition for this name.

If the no definition is found with this name, return null.

Specified by:
getWidgetDefinition in interface LayoutManager

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.