Class PageLayoutBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- org.hippoecm.frontend.plugins.yui.AbstractYuiBehavior
-
- org.hippoecm.frontend.plugins.yui.layout.PageLayoutBehavior
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
,IWireframe
public class PageLayoutBehavior extends AbstractYuiBehavior implements IWireframe
Special purposeWireframeBehavior
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 theWireframeBehavior
- See Also:
WireframeBehavior
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PageLayoutBehavior(PageLayoutSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHeaderContribution(IYuiContext context)
Override this method to get access to the IYuiContextorg.apache.wicket.markup.head.HeaderItem
getHeaderItem()
YuiId
getYuiId()
Return the root id of this wireframeboolean
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.-
Methods inherited from class org.hippoecm.frontend.plugins.yui.AbstractYuiBehavior
bind, getComponent, renderHead
-
-
-
-
Constructor Detail
-
PageLayoutBehavior
public PageLayoutBehavior(PageLayoutSettings settings)
-
-
Method Detail
-
getYuiId
public YuiId getYuiId()
Description copied from interface:IWireframe
Return the root id of this wireframe- Specified by:
getYuiId
in interfaceIWireframe
- Returns:
- the root
YuiId
of this wireframe
-
isRendered
public boolean isRendered()
- Specified by:
isRendered
in interfaceIWireframe
-
render
public void render(org.apache.wicket.ajax.AjaxRequestTarget target)
- Specified by:
render
in interfaceIWireframe
-
addHeaderContribution
public void addHeaderContribution(IYuiContext context)
Description copied from class:AbstractYuiBehavior
Override this method to get access to the IYuiContext- Overrides:
addHeaderContribution
in classAbstractYuiBehavior
- Parameters:
context
- The IYuiContext this behavior can use to register YUI-modules and the likes.
-
onRenderHead
protected void onRenderHead(org.apache.wicket.markup.head.IHeaderResponse response)
Description copied from class:AbstractYuiBehavior
Hook method for doing some custom renderHead logic.- Overrides:
onRenderHead
in classAbstractYuiBehavior
-
resize
public void resize(org.apache.wicket.ajax.AjaxRequestTarget target)
Description copied from interface:IWireframe
Resize the wireframe, e.g. when it has become visible.- Specified by:
resize
in interfaceIWireframe
-
getHeaderItem
public org.apache.wicket.markup.head.HeaderItem getHeaderItem()
- Specified by:
getHeaderItem
in interfaceIWireframe
-
-