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 theAbstractYuiBehavior
andAbstractYuiAjaxBehavior
to retrieveIYuiContext
instances, and thus should be added to thePage
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:
IYuiManager
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebAppBehavior(WebAppSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IYuiContext
newContext()
Create a newIYuiContext
that is backed up by a centrally managedYuiHeaderCache
void
renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
-
-
-
Constructor Detail
-
WebAppBehavior
public WebAppBehavior(WebAppSettings settings)
-
-
Method Detail
-
renderHead
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
- Specified by:
renderHead
in interfaceorg.apache.wicket.markup.html.IComponentAwareHeaderContributor
- Overrides:
renderHead
in classorg.apache.wicket.behavior.Behavior
-
newContext
public IYuiContext newContext()
Description copied from interface:IYuiManager
Create a newIYuiContext
that is backed up by a centrally managedYuiHeaderCache
- Specified by:
newContext
in interfaceIYuiManager
- Returns:
- A new
IYuiContext
to add header contributions to
-
-