.tr() .th(".id", "ID") .th(".user", "User")
table("#tasks"). thead(). tr(). th("Task"). th("Progress").
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").
table("#apps"). thead(). tr(). th(".id", "ID"). th(".user", "User").
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")
tr(). th(_TH, "key"). th(_TH, "value").
table("#t1"). thead(). tr().th("Column1").th("Column2").__().__(). tbody(). tr().td("c1r1").td("c2r1").__(). table("#t2"). thead(). tr().th(_TH, "Column1").th(_TH, "Column2").__().__(). tbody(). tr().td("r1"). // th wouldn't work as of dt 1.7.5 table("#t3"). thead(). tr().th("SubColumn1").th("SubColumn2").__().__(). tbody(). tr().td("subc1r1").td("subc2r1").__(). table("#t4"). thead(). tr().th("SubColumn1").th("SubColumn2").__().__(). tbody(). tr().td("subc1r1").td("subc2r1").__().
@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()
table("#jobs"). thead(). tr(). th(".id", "Job ID"). th(".name", "Name").
table("#singleCounter"). thead(). tr(). th(".ui-state-default", columnType). th(".ui-state-default", "Value").__().__().
table("#layout.ui-widget-content"). thead(). tr(). td().$colspan(2). __(header()).__().__().__().
TBODY<TABLE<Hamlet>> tbody = html.table("#nodelabels"). thead(). tr(). th(".name", "Label Name"). th(".type", "Label Type").
@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 TR<THEAD<T>> tr(String selector) { return setSelector(tr(), selector); } }