org.nuxeo.theme.webwidgets
Class Service
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.theme.webwidgets.Service
- All Implemented Interfaces:
- Adaptable, Component, Extensible
public class Service
- extends DefaultComponent
ID
public static final ComponentName ID
Service
public Service()
activate
public void activate(ComponentContext context)
- Description copied from interface:
Component
- Activates the component.
This method is called by the runtime when a component is activated.
- Specified by:
activate
in interface Component
- Overrides:
activate
in class DefaultComponent
- Parameters:
context
- the runtime context
deactivate
public void deactivate(ComponentContext context)
- Description copied from interface:
Component
- Deactivates the component.
This method is called by the runtime when a component is deactivated.
- Specified by:
deactivate
in interface Component
- Overrides:
deactivate
in class DefaultComponent
- Parameters:
context
- the runtime context
registerExtension
public void registerExtension(Extension extension)
throws WidgetException
- Description copied from interface:
Extensible
- Registers the given extension.
- Specified by:
registerExtension
in interface Extensible
- Overrides:
registerExtension
in class DefaultComponent
- Parameters:
extension
- the extension to register
- Throws:
WidgetException
unregisterExtension
public void unregisterExtension(Extension extension)
- Description copied from interface:
Extensible
- Unregisters the given extension.
- Specified by:
unregisterExtension
in interface Extensible
- Overrides:
unregisterExtension
in class DefaultComponent
- Parameters:
extension
- the extension to unregister
getProvider
public Provider getProvider(String name)
throws WidgetException
- Throws:
WidgetException
getProviderNames
public List<String> getProviderNames()
getDecorationNames
public List<String> getDecorationNames()
getWidgetTypeNames
public List<String> getWidgetTypeNames()
getWidgetTypes
public List<WidgetType> getWidgetTypes(String category)
getWidgetType
public WidgetType getWidgetType(String widgetTypeName)
getWidgetCategories
public Set<String> getWidgetCategories()
getProviderType
public ProviderType getProviderType(String name)
getDecorationType
public DecorationType getDecorationType(String name)
getPanelDecoration
public String getPanelDecoration(String decorationName,
String mode)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.