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:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onEvent, onException, onRemove, onTag, unbind
-
Field Details
-
EXT_WIDGET_SERVICE_ID
-
-
Constructor Details
-
ExtWidgetRegistry
-
-
Method Details
-
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
-
-