Package org.hippoecm.frontend.extjs
Class ExtWidgetRegistry
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- org.wicketstuff.js.ext.ExtObservable
-
- org.hippoecm.frontend.extjs.ExtWidgetRegistry
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
,org.wicketstuff.js.ext.IExtObservable
public class ExtWidgetRegistry extends org.wicketstuff.js.ext.ExtObservable
Central registry for the configuration of Ext widgets. The configuration of these widgets can be retrieved in Javascript via the xtype of the widget:var config = Hippo.ExtWidgets.getConfig('somextype')
- See Also:
ExtWidget
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXT_WIDGET_SERVICE_ID
-
Constructor Summary
Constructors Constructor Description ExtWidgetRegistry(IPluginContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
Prevent that we render the head more than once, because it is explicitly rendered before other head contributions.-
Methods inherited from class org.wicketstuff.js.ext.ExtObservable
add, add, addEventListener, bind, buildInstantiationJs, getExtObservables, getJsObjectId, getProperties, isExtRoot, newExtEventBehavior, onRenderExtHead, onRenderProperties, postRenderExtHead, preRenderExtHead
-
-
-
-
Field Detail
-
EXT_WIDGET_SERVICE_ID
public static final String EXT_WIDGET_SERVICE_ID
-
-
Constructor Detail
-
ExtWidgetRegistry
public ExtWidgetRegistry(IPluginContext context)
-
-
Method Detail
-
renderHead
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
Prevent that we render the head more than once, because it is explicitly rendered before other head contributions. This way we force the initialization of the component registry before the initialization of child components, so Ext widget configurations can always be accessed in constructors of normal Ext components.- Specified by:
renderHead
in interfaceorg.apache.wicket.markup.html.IComponentAwareHeaderContributor
- Overrides:
renderHead
in classorg.wicketstuff.js.ext.ExtObservable
- Parameters:
response
-
-
-