public final class WidgetRegistry
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
REGISTER_WIDGET_FACTORY_FUNCTION
The register widget function name.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addRenderer(com.alkacon.acacia.client.I_EntityRenderer renderer)
Adds a renderer which should be used by the Acacia editor.
|
static WidgetRegistry |
getInstance()
Returns the widget registry instance.
|
java.util.Collection<com.alkacon.acacia.client.I_EntityRenderer> |
getRenderers()
Returns the registered renderers.
|
java.util.Map<java.lang.String,com.alkacon.acacia.client.I_WidgetFactory> |
getWidgetFactories()
Returns the registered widget factories.
|
void |
registerExternalWidgets(java.util.List<CmsExternalWidgetConfiguration> externalWidgetConfigurations,
com.google.gwt.user.client.Command callback)
Registers external widgets.
|
void |
registerWidgetFactory(java.lang.String widgetName,
com.alkacon.acacia.client.I_WidgetFactory widgetFactory)
Registers a widget.
|
protected void |
showError(java.lang.String error)
Logs an error.
|
protected void |
showInitCallError(java.util.Set<java.lang.String> initCalls)
Logs an error for missing init calls.
|
protected boolean |
tryInitCall(java.lang.String initCall)
Tries to initializes a widget with the given initialization call.
|
public static final java.lang.String REGISTER_WIDGET_FACTORY_FUNCTION
public static WidgetRegistry getInstance()
public void addRenderer(com.alkacon.acacia.client.I_EntityRenderer renderer)
renderer
- the renderer to addpublic java.util.Collection<com.alkacon.acacia.client.I_EntityRenderer> getRenderers()
public java.util.Map<java.lang.String,com.alkacon.acacia.client.I_WidgetFactory> getWidgetFactories()
public void registerExternalWidgets(java.util.List<CmsExternalWidgetConfiguration> externalWidgetConfigurations, com.google.gwt.user.client.Command callback)
externalWidgetConfigurations
- the external widget configurationscallback
- the callback to execute when donepublic void registerWidgetFactory(java.lang.String widgetName, com.alkacon.acacia.client.I_WidgetFactory widgetFactory)
widgetName
- the widget namewidgetFactory
- the widgetprotected void showError(java.lang.String error)
error
- the error to logprotected void showInitCallError(java.util.Set<java.lang.String> initCalls)
initCalls
- the set of missing init callsprotected boolean tryInitCall(java.lang.String initCall)
initCall
- the initialization function nametrue
if the initialization function was available and has been executed