public class WebAppBehavior extends org.apache.wicket.behavior.Behavior implements IYuiManager
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
.
Upon the first load, it will probe the client for a flash version and store the result so other components can query it.
IYuiManager
,
Serialized FormConstructor and Description |
---|
WebAppBehavior(WebAppSettings settings) |
Modifier and Type | Method and Description |
---|---|
void |
bind(org.apache.wicket.Component component) |
FlashVersion |
getFlash() |
IYuiContext |
newContext()
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) |
void |
setFlash(FlashVersion flash) |
public WebAppBehavior(WebAppSettings settings)
public void bind(org.apache.wicket.Component component)
bind
in class org.apache.wicket.behavior.Behavior
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
renderHead
in class org.apache.wicket.behavior.Behavior
public IYuiContext newContext()
IYuiManager
IYuiContext
that is backed up by a centrally managed
YuiHeaderCache
newContext
in interface IYuiManager
IYuiContext
to add header contributions topublic FlashVersion getFlash()
public void setFlash(FlashVersion flash)
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.