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
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
-
Method Summary
Modifier and TypeMethodDescriptionCreate a newIYuiContext
that is backed up by a centrally managedYuiHeaderCache
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
-
Constructor Details
-
WebAppBehavior
-
-
Method Details
-
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
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
-