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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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

    Methods inherited from class org.apache.wicket.behavior.Behavior

    afterRender, beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onEvent, onException, onRemove, onTag, unbind

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EXT_WIDGET_SERVICE_ID

      public static final String EXT_WIDGET_SERVICE_ID
  • Constructor Details

    • ExtWidgetRegistry

      public ExtWidgetRegistry(IPluginContext context)
  • 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 interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
      Overrides:
      renderHead in class org.wicketstuff.js.ext.ExtObservable
      Parameters:
      response -