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