TBODY<TABLE<Hamlet>> tbody = html.table("#apps").thead() .tr() .th(".id", "ID")
thead(). tr(). th("Task").
html.table("#attempts").thead().tr().th(".id", "Attempt ID") .th(".started", "Started").th(".node", "Node").th(".logs", "Logs") .th(".appBlacklistednodes", "Nodes blacklisted by the application",
TR<THEAD<TABLE<Hamlet>>> tr = html.table("#attempts").thead().tr(); tr.th(".id", "Attempt"). th(".progress", "Progress").
@Override public void render(Block html) { TBODY<TABLE<Hamlet>> tbody = html. table("#apps"). thead(). tr(). th(".id", "ID").
TBODY<TABLE<Hamlet>> tbody = html.table("#rms").thead().tr() .th(".id", "SubCluster") .th(".submittedA", "Applications Submitted*")
div.h4("Aggregate scheduler counts"); TBODY<TABLE<DIV<Hamlet>>> tbody = div.table("#lastrun").thead().$class("ui-widget-header").tr().th() .$class("ui-state-default").__("Total Container Allocations(count)") .__().th().$class("ui-state-default") div.h4("Last scheduler run"); tbody = div.table("#lastrun").thead().$class("ui-widget-header").tr().th() .$class("ui-state-default").__("Time").__().th() .$class("ui-state-default").__("Allocations(count - resources)").__() div.h4("Last " + entry.getKey()); tbody = div.table(table).thead().$class("ui-widget-header").tr().th() .$class("ui-state-default").__("Time").__().th() .$class("ui-state-default").__("Container Id").__().th()
.h3("Total Outstanding Resource Requests: " + getTotalResource(resourceRequests)) .table("#resourceRequests").thead().tr().th(".priority", "Priority") .th(".allocationRequestId", "AllocationRequestId") .th(".resource", "ResourceName").th(".capacity", "Capability")
TBODY<TABLE<Hamlet>> tbody = html.table("#nodes").thead().tr() .th(".nodelabels", "Node Labels") .th(".rack", "Rack")
thead(). tr(). th(_TH, "key").
h2("Default table init"). table("#t1"). thead(). tr().th("Column1").th("Column2").__().__(). tbody(). div(_INFO_WRAP). table("#t2"). thead(). tr().th(_TH, "Column1").th(_TH, "Column2").__().__(). tbody(). td().$class(C_TABLE). table("#t3"). thead(). tr().th("SubColumn1").th("SubColumn2").__().__(). tbody(). td().$class(C_TABLE). table("#t4"). thead(). tr().th("SubColumn1").th("SubColumn2").__().__(). tbody().
@Override protected void render(Block html) { TBODY<TABLE<Hamlet>> tbody = html.table("#userinfo").thead().$class("ui-widget-header").tr().th() .$class("ui-state-default").__("User Name").__().th() .$class("ui-state-default").__("Max Resource").__().th()
h2("Active Jobs"). table("#jobs"). thead(). tr(). th(".id", "Job ID").
div(_INFO_WRAP). table("#singleCounter"). thead(). tr(). th(".ui-state-default", columnType).
@Override protected void render(Block html) { TBODY<TABLE<Hamlet>> tbody = html.table("#nodelabels"). thead(). tr(). th(".name", "Label Name").
html. table("#layout.ui-widget-content"). thead(). tr(). td().$colspan(2).
@Override protected void render(Block html) { TBODY<TABLE<BODY<Hamlet>>> tableBody = html.body() .table("#containers") .thead() .tr() .td().__("ContainerId").__() .td().__("ExecutionType").__() .td().__("ContainerState").__() .td().__("logs").__() .__() .__().tbody(); for (Entry<ContainerId, Container> entry : this.nmContext .getContainers().entrySet()) { ContainerInfo info = new ContainerInfo(this.nmContext, entry.getValue()); tableBody .tr() .td().a(url("container", info.getId()), info.getId()) .__() .td().__(info.getExecutionType()).__() .td().__(info.getState()).__() .td() .a(url(info.getShortLogLink()), "logs").__() .__(); } tableBody.__().__().__(); }
@Override protected void render(Block html) { TBODY<TABLE<BODY<Hamlet>>> tableBody = html .body() .table("#applications") .thead() .tr() .td().__("ApplicationId").__() .td().__("ApplicationState").__() .__() .__() .tbody(); for (Entry<ApplicationId, Application> entry : this.nmContext .getApplications().entrySet()) { AppInfo info = new AppInfo(entry.getValue()); tableBody .tr() .td().a(url("application", info.getId()), info.getId()).__() .td().__(info.getState()) .__() .__(); } tableBody.__().__().__(); } }
@Override public THEAD<TABLE<T>> thead(String selector) { return setSelector(thead(), selector); }