public class LayoutStoreImpl extends DefaultComponent implements LayoutStore
Modifier and Type | Field and Description |
---|---|
static String |
LAYOUT_CONVERTERS_EP_NAME |
static String |
LAYOUTS_EP_NAME |
static String |
WIDGET_CONVERTERS_EP_NAME |
static String |
WIDGET_TYPES_EP_NAME |
static String |
WIDGETS_EP_NAME |
Constructor and Description |
---|
LayoutStoreImpl() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getCategories()
Returns categories of layout and widgets definitions and instances held
by this service.
|
List<LayoutDefinitionConverter> |
getLayoutConverters(String category) |
LayoutDefinition |
getLayoutDefinition(String category,
String layoutName)
Returns the registered layout definition for this name.
|
List<String> |
getLayoutDefinitionNames(String category)
Returns the names of all the registered layout definitions
|
List<WidgetDefinitionConverter> |
getWidgetConverters(String category) |
WidgetDefinition |
getWidgetDefinition(String category,
String widgetName)
Returns the registered widget definition for this name.
|
WidgetType |
getWidgetType(String category,
String typeName)
Returns the registered widget type for this type name.
|
WidgetTypeDefinition |
getWidgetTypeDefinition(String category,
String typeName)
Returns the widget type definition with given name, or null if no widget
type with this name is found.
|
List<WidgetTypeDefinition> |
getWidgetTypeDefinitions(String category)
Returns the widget type definitions for all the registered widget types.
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
registerLayout(String category,
LayoutDefinition layoutDef) |
void |
registerLayoutConverter(String category,
LayoutConverterDescriptor layoutConverter) |
void |
registerWidget(String category,
WidgetDefinition widgetDef) |
void |
registerWidgetConverter(String category,
WidgetConverterDescriptor widgetConverter) |
void |
registerWidgetType(String category,
WidgetTypeDefinition desc) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterLayout(String category,
LayoutDefinition layoutDef) |
void |
unregisterLayoutConverter(String category,
LayoutConverterDescriptor layoutConverter) |
void |
unregisterWidget(String category,
WidgetDefinition widgetDef) |
void |
unregisterWidgetConverter(String category,
WidgetConverterDescriptor widgetConverter) |
void |
unregisterWidgetType(String category,
WidgetTypeDefinition desc) |
activate, applicationStarted, deactivate, getAdapter, registerExtension, unregisterExtension
public static final String WIDGET_TYPES_EP_NAME
public static final String WIDGETS_EP_NAME
public static final String LAYOUTS_EP_NAME
public static final String LAYOUT_CONVERTERS_EP_NAME
public static final String WIDGET_CONVERTERS_EP_NAME
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 DefaultComponent
public List<String> getCategories()
LayoutStore
getCategories
in interface LayoutStore
public void registerWidgetType(String category, WidgetTypeDefinition desc)
registerWidgetType
in interface LayoutStore
public void unregisterWidgetType(String category, WidgetTypeDefinition desc)
unregisterWidgetType
in interface LayoutStore
public void registerLayout(String category, LayoutDefinition layoutDef)
registerLayout
in interface LayoutStore
public void unregisterLayout(String category, LayoutDefinition layoutDef)
unregisterLayout
in interface LayoutStore
public void registerWidget(String category, WidgetDefinition widgetDef)
registerWidget
in interface LayoutStore
public void unregisterWidget(String category, WidgetDefinition widgetDef)
unregisterWidget
in interface LayoutStore
public void registerLayoutConverter(String category, LayoutConverterDescriptor layoutConverter)
public void unregisterLayoutConverter(String category, LayoutConverterDescriptor layoutConverter)
public void registerWidgetConverter(String category, WidgetConverterDescriptor widgetConverter)
public void unregisterWidgetConverter(String category, WidgetConverterDescriptor widgetConverter)
public WidgetType getWidgetType(String category, String typeName)
LayoutStore
If the no widget type is found with this name, return null.
getWidgetType
in interface LayoutStore
public WidgetTypeDefinition getWidgetTypeDefinition(String category, String typeName)
LayoutStore
getWidgetTypeDefinition
in interface LayoutStore
public List<WidgetTypeDefinition> getWidgetTypeDefinitions(String category)
LayoutStore
getWidgetTypeDefinitions
in interface LayoutStore
public LayoutDefinition getLayoutDefinition(String category, String layoutName)
LayoutStore
If the no definition is found with this name, return null.
getLayoutDefinition
in interface LayoutStore
public List<String> getLayoutDefinitionNames(String category)
LayoutStore
getLayoutDefinitionNames
in interface LayoutStore
public WidgetDefinition getWidgetDefinition(String category, String widgetName)
LayoutStore
If the no definition is found with this name, return null.
getWidgetDefinition
in interface LayoutStore
public List<LayoutDefinitionConverter> getLayoutConverters(String category)
getLayoutConverters
in interface LayoutStore
public List<WidgetDefinitionConverter> getWidgetConverters(String category)
getWidgetConverters
in interface LayoutStore
Copyright © 2011 Nuxeo SA. All Rights Reserved.