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
Special purpose
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
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHeaderContribution
(IYuiContext context) Override this method to get access to the IYuiContextorg.apache.wicket.markup.head.HeaderItem
getYuiId()
Return the root id of this wireframeboolean
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
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onEvent, onException, onRemove, onTag, unbind
-
Constructor Details
-
PageLayoutBehavior
-
-
Method Details
-
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
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
-