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 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 Details

  • Method Details

    • getYuiId

      public YuiId getYuiId()
      Description copied from interface: IWireframe
      Return the root id of this wireframe
      Specified by:
      getYuiId in interface IWireframe
      Returns:
      the root YuiId of this wireframe
    • isRendered

      public boolean isRendered()
      Specified by:
      isRendered in interface IWireframe
    • render

      public void render(org.apache.wicket.ajax.AjaxRequestTarget target)
      Specified by:
      render in interface IWireframe
    • addHeaderContribution

      public void addHeaderContribution(IYuiContext context)
      Description copied from class: AbstractYuiBehavior
      Override this method to get access to the IYuiContext
      Overrides:
      addHeaderContribution in class AbstractYuiBehavior
      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 class AbstractYuiBehavior
    • 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 interface IWireframe
    • getHeaderItem

      public org.apache.wicket.markup.head.HeaderItem getHeaderItem()
      Specified by:
      getHeaderItem in interface IWireframe