Class WebAppBehavior

java.lang.Object
org.apache.wicket.behavior.Behavior
org.hippoecm.frontend.plugins.yui.webapp.WebAppBehavior
All Implemented Interfaces:
Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable, IYuiManager

public class WebAppBehavior extends org.apache.wicket.behavior.Behavior implements IYuiManager
This is the base behavior needed for developing Wicket applications using the YUI framework developed by Hippo.

It's most important feature is implementing the IYuiManager interface, enabling the AbstractYuiBehavior and AbstractYuiAjaxBehavior to retrieve IYuiContext instances, and thus should be added to the Page instance of your application (this is required).

It also exposes the possibility of pre-loading the stylesheets of the YUI CSS foundation: reset, fonts, grids, base and reset-fonts-grids stylesheets, as well as pre-loading Wicket-Ajax dependencies. This can be configured in the WebAppSettings.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a new IYuiContext that is backed up by a centrally managed YuiHeaderCache
    void
    renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
     

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

    afterRender, beforeRender, bind, 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
  • Constructor Details

  • Method Details

    • renderHead

      public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
      Specified by:
      renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
      Overrides:
      renderHead in class org.apache.wicket.behavior.Behavior
    • newContext

      public IYuiContext newContext()
      Description copied from interface: IYuiManager
      Create a new IYuiContext that is backed up by a centrally managed YuiHeaderCache
      Specified by:
      newContext in interface IYuiManager
      Returns:
      A new IYuiContext to add header contributions to