@Override protected void render(Block html) { Log log = LogFactory.getLog(ErrorsAndWarningsBlock.class); if (log instanceof Log4JLogger) { Hamlet.DIV<Hamlet> div = html.div().$class("metrics").$style("padding-bottom: 20px"); div.h3(tableHeading).table("#metricsoverview").thead() .$class("ui-widget-header").tr().th().$class("ui-state-default") ._("Last 1 minute")._().th().$class("ui-state-default") ._("Last 5 minutes")._().th().$class("ui-state-default") ._("Last 15 minutes")._().th().$class("ui-state-default") ._("Last 1 hour")._().th().$class("ui-state-default") ._("Last 6 hours")._().th().$class("ui-state-default") ._("Last 12 hours")._().th().$class("ui-state-default") ._("Last 24 hours")._()._()._().tbody().$class("ui-widget-content") .tr().td(String.valueOf(values.get(0))) .td(String.valueOf(values.get(1))).td(String.valueOf(values.get(2))) .td(String.valueOf(values.get(3))).td(String.valueOf(values.get(4))) .td(String.valueOf(values.get(5))).td(String.valueOf(values.get(6))) ._()._()._(); div._(); } } }
for (Entry<T1,T2> content : contents) { if (null == table) { table = div.table("ui-widget-content ui-corner-bottom"); tbody = table.tbody();
for (Entry<T1,T2> content : contents) { if (null == table) { table = div.table("ui-widget-content ui-corner-bottom"); tbody = table.tbody();
TBODY<TABLE<DIV<Hamlet>>> tbody = html. div(_INFO_WRAP). table("#counters"). thead(). tr().
TBODY<TABLE<DIV<Hamlet>>> tbody = html. div(_INFO_WRAP). table("#counters"). thead(). tr().
@Override protected void render(Block html) { TABLE<DIV<Hamlet>> table = html. div(_INFO_WRAP). table(_INFO). tr(). th().$class(C_TH).$colspan(2)._(info.about())._()._();
+ attemptMetrics.getTotalAllocatedContainers()).h3("Each table cell" + " represents the number of NodeLocal/RackLocal/OffSwitch containers" + " satisfied by NodeLocal/RackLocal/OffSwitch resource requests.").table( "#containerLocality"); table.
+ attemptMetrics.getTotalAllocatedContainers()).h3("Each table cell" + " represents the number of NodeLocal/RackLocal/OffSwitch containers" + " satisfied by NodeLocal/RackLocal/OffSwitch resource requests.").table( "#containerLocality"); table.
table("#singleCounter"). thead(). tr().
@Override protected void render(Block html) { TABLE<DIV<Hamlet>> table = html. div(_INFO_WRAP). table(_INFO). tr(). th().$class(C_TH).$colspan(2)._(info.about())._()._();
TABLE<DIV<Hamlet>> table = div.h3("Total Outstanding Resource Requests: " + getTotalResource(resourceRequests)).table( "#ResourceRequests");
TABLE<DIV<Hamlet>> table = div.h3("Total Outstanding Resource Requests: " + getTotalResource(resourceRequests)).table( "#ResourceRequests");
table("#singleCounter"). thead(). tr().
@Override public TABLE<DIV<T>> table(String selector) { return setSelector(table(), selector); }
@Override public TABLE<DIV<T>> table(String selector) { return setSelector(table(), selector); }
@Override public TABLE<DIV<T>> table(String selector) { return setSelector(table(), selector); }