public class PageLayoutBehavior extends AbstractYuiBehavior implements IWireframe
WireframeBehavior
that automatically binds itself to the document body and creates a
wireframe that takes up the full viewport and is registered as the root of the applications wireframe structure.
In accordance with YUI-grids CSS, the default id value for the wireframe root element is set to "doc3".
Note: It doesn't support dynamic registration with parent wireframes or looking up UnitBehavior
's from child
components because of it's static nature. This can be achieved by the WireframeBehavior
WireframeBehavior
,
Serialized FormConstructor and Description |
---|
PageLayoutBehavior(PageLayoutSettings settings) |
Modifier and Type | Method and Description |
---|---|
void |
addHeaderContribution(IYuiContext context)
Override this method to get access to the IYuiContext
|
org.apache.wicket.markup.head.HeaderItem |
getHeaderItem() |
YuiId |
getYuiId()
Return the root id of this wireframe
|
boolean |
isRendered() |
protected void |
onRenderHead(org.apache.wicket.markup.head.IHeaderResponse response)
Hook method for doing some custom renderHead logic.
|
void |
render(org.apache.wicket.ajax.AjaxRequestTarget target) |
void |
resize(org.apache.wicket.ajax.AjaxRequestTarget target)
Resize the wireframe, e.g.
|
bind, getComponent, renderHead
public PageLayoutBehavior(PageLayoutSettings settings)
public YuiId getYuiId()
IWireframe
getYuiId
in interface IWireframe
YuiId
of this wireframepublic boolean isRendered()
isRendered
in interface IWireframe
public void render(org.apache.wicket.ajax.AjaxRequestTarget target)
render
in interface IWireframe
public void addHeaderContribution(IYuiContext context)
AbstractYuiBehavior
addHeaderContribution
in class AbstractYuiBehavior
context
- The IYuiContext this behavior can use to register YUI-modules and the likes.protected void onRenderHead(org.apache.wicket.markup.head.IHeaderResponse response)
AbstractYuiBehavior
onRenderHead
in class AbstractYuiBehavior
public void resize(org.apache.wicket.ajax.AjaxRequestTarget target)
IWireframe
resize
in interface IWireframe
public org.apache.wicket.markup.head.HeaderItem getHeaderItem()
getHeaderItem
in interface IWireframe
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.