public class AbstractYuiBehavior
extends org.apache.wicket.behavior.Behavior
IYuiContext
to register all
required components. The IYuiContext
is created by a (global) IYuiManager
which, in this case, lives
inside the Page
(as an Behavior
) that is retrieved by component.getPage()
Subclasses should override addHeaderContribution(IYuiContext context)
to get access to the
IYuiContext
.
Constructor and Description |
---|
AbstractYuiBehavior() |
Modifier and Type | Method and Description |
---|---|
void |
addHeaderContribution(IYuiContext context)
Override this method to get access to the IYuiContext
|
void |
bind(org.apache.wicket.Component component) |
protected org.apache.wicket.Component |
getComponent() |
protected void |
onRenderHead(org.apache.wicket.markup.head.IHeaderResponse response)
Hook method for doing some custom renderHead logic.
|
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response)
Don't call super since WicketAjax is loaded by Yui webapp behavior
TODO: webapp ajax is configurable, maybe check here and still load it.
|
public void bind(org.apache.wicket.Component component)
bind
in class org.apache.wicket.behavior.Behavior
protected org.apache.wicket.Component getComponent()
public void addHeaderContribution(IYuiContext context)
context
- The IYuiContext this behavior can use to register YUI-modules and the likes.public final 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
protected void onRenderHead(org.apache.wicket.markup.head.IHeaderResponse response)
response
- Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.