Class TwoColumnLayout
java.lang.Object
org.apache.hadoop.yarn.webapp.View
org.apache.hadoop.yarn.webapp.view.TextView
org.apache.hadoop.yarn.webapp.view.HtmlPage
org.apache.hadoop.yarn.webapp.view.TwoColumnLayout
- All Implemented Interfaces:
Params
- Direct Known Subclasses:
AggregatedLogsPage
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.view.HtmlPage
HtmlPage.__, HtmlPage.PageNested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.View
View.ViewContext -
Field Summary
Fields inherited from interface org.apache.hadoop.yarn.webapp.Params
ERROR_DETAILS, TITLE, TITLE_LINK, USER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()footer()header()nav()protected voidpostHead(Hamlet.HTML<HtmlPage.__> html) Do what needs to be done after the header is rendered.protected voidpreHead(Hamlet.HTML<HtmlPage.__> html) Do what needs to be done before the header is rendered.protected voidrender(Hamlet.HTML<HtmlPage.__> html) Render the HTML page.protected voidsetTableStyles(Hamlet.HTML<HtmlPage.__> html, String tableId, String... innerStyles) Sets up a table to be a consistent style.Methods inherited from class org.apache.hadoop.yarn.webapp.view.TextView
echo, echoWithoutEscapeHtml, puts, putWithoutEscapeHtml, writer
-
Constructor Details
-
TwoColumnLayout
public TwoColumnLayout()
-
-
Method Details
-
render
Description copied from class:HtmlPageRender the HTML page. -
preHead
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
Do what needs to be done after the header is rendered.- Parameters:
html- the html to use to render.
-
header
- Returns:
- the class that will render the header of the page.
-
content
- Returns:
- the class that will render the content of the page.
-
setTableStyles
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.
-