Class TwoColumnLayout

All Implemented Interfaces:
Params
Direct Known Subclasses:
AggregatedLogsPage

@LimitedPrivate({"YARN","MapReduce"}) public class TwoColumnLayout extends HtmlPage
A simpler two column layout implementation with a header, a navigation bar on the left, content on the right, and a footer. Works with resizable themes.
See Also:
  • Constructor Details

    • TwoColumnLayout

      public TwoColumnLayout()
  • Method Details

    • render

      protected void render(Hamlet.HTML<HtmlPage.__> html)
      Description copied from class: HtmlPage
      Render the HTML page.
      Specified by:
      render in class HtmlPage
      Parameters:
      html - the page to render data to.
    • preHead

      protected void preHead(Hamlet.HTML<HtmlPage.__> html)
      Do what needs to be done before the header is rendered. This usually involves setting page variables for Javascript and CSS rendering.
      Parameters:
      html - the html to use to render.
    • postHead

      protected void postHead(Hamlet.HTML<HtmlPage.__> html)
      Do what needs to be done after the header is rendered.
      Parameters:
      html - the html to use to render.
    • header

      protected Class<? extends SubView> header()
      Returns:
      the class that will render the header of the page.
    • content

      protected Class<? extends SubView> content()
      Returns:
      the class that will render the content of the page.
    • footer

      protected Class<? extends SubView> footer()
      Returns:
      the class that will render the footer.
    • setTableStyles

      protected void setTableStyles(Hamlet.HTML<HtmlPage.__> html, String tableId, String... innerStyles)
      Sets up a table to be a consistent style.
      Parameters:
      html - the HTML to use to render.
      tableId - the ID of the table to set styles on.
      innerStyles - any other styles to add to the table.