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
|
void |
detach(org.apache.wicket.Component component) |
YuiId |
getYuiId()
Return the root id of this wireframe
|
void |
resize(org.apache.wicket.ajax.AjaxRequestTarget target)
Resize the wireframe, e.g.
|
bind, getComponent, onRenderHead, renderHead
public PageLayoutBehavior(PageLayoutSettings settings)
public void addHeaderContribution(IYuiContext context)
AbstractYuiBehavior
addHeaderContribution
in class AbstractYuiBehavior
context
- The IYuiContext this behavior can use to register YUI-modules and the likes.public void resize(org.apache.wicket.ajax.AjaxRequestTarget target)
IWireframe
resize
in interface IWireframe
public void detach(org.apache.wicket.Component component)
detach
in interface org.apache.wicket.behavior.IBehavior
detach
in class org.apache.wicket.behavior.AbstractBehavior
public YuiId getYuiId()
IWireframe
getYuiId
in interface IWireframe
YuiId
of this wireframeCopyright © 2007-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.