td($(CONTAINER_START_TIME + i)). td($(CONTAINER_FINISH_TIME + i)).td() .div().$class("ui-progressbar ui-widget ui-widget-content ui-corner-all").$title($(CONTAINER_REPORTER_PROGRESS + i)) .div().$class("ui-progressbar-value ui-widget-header ui-corner-left").$style("width:" + $(CONTAINER_REPORTER_PROGRESS + i)) ._()._()._()._(); tbody._()._().div().$style("margin:20px 2px;")._(" ")._(). h2("View Board:"). table("#Board"). _()._()._(); } else { tbody._()._().div().$style("margin:20px 2px;")._(" ")._(). h2("View Board:"). table("#Board"). html.div().$style("margin:20px 2px;")._(" ")._(); int saveModelTotal = Integer.parseInt($(SAVE_MODEL_TOTAL)); int saveModelSize = Integer.parseInt($(OUTPUT_TOTAL)); if ((saveModelTotal > 0) && (saveModelSize > 0)) { if (!Boolean.valueOf($(SAVE_MODEL))) { html.div().button().$id("saveModel").$onclick("savedModel()").b("Save Model")._()._(); StringBuilder script = new StringBuilder(); script.append("function savedModel(){") html.script().$type("text/javascript")._(script.toString())._(); if (!Boolean.valueOf($(LAST_SAVE_STATUS))) { html.div().$style("margin:20px 2px;")._(" ")._(); } else {
protected void render(Block html) { String loggedIn = ""; if (this.request().getRemoteUser() != null) { loggedIn = "Logged in as: " + this.request().getRemoteUser(); } ((DIV) ((DIV) html.div("#header.ui-widget").div("#user")._(new Object[]{loggedIn})._()).div("#logo").img("/static/xlWebApp/logo.png")._()).h1(this.$("title"))._(); } }
.h1("index_header", "Application: " + name); ? ALL_CONTAINERS_ALLOCATED : String.format("Awaiting %d containers", liveness.requestsOutstanding); Hamlet.TABLE<DIV<Hamlet>> table1 = div.table(); table1.tr() .td("Status") ._(); table1._(); div._(); div = null; .h3("Component Instances"); Hamlet.TABLE<DIV<Hamlet>> table = containers.table(); Hamlet.TR<Hamlet.THEAD<Hamlet.TABLE<DIV<Hamlet>>>> header = table.thead().tr(); trb(header, "Component"); containers._(); containers = null; diagnostics.h3("Diagnostics"); Hamlet.TABLE<DIV<Hamlet>> diagnosticsTable = diagnostics.table(); for (String entry : statusEntries) { diagnosticsTable.tr().td(entry)._(); diagnostics._();
.h1("index_header", "Application: " + name); ? ALL_CONTAINERS_ALLOCATED : String.format("Awaiting %d containers", liveness.requestsOutstanding); Hamlet.TABLE<DIV<Hamlet>> table1 = div.table(); table1.tr() .td("Status") ._(); table1._(); div._(); div = null; .h3("Component Instances"); Hamlet.TABLE<DIV<Hamlet>> table = containers.table(); Hamlet.TR<Hamlet.THEAD<Hamlet.TABLE<DIV<Hamlet>>>> header = table.thead().tr(); trb(header, "Component"); containers._(); containers = null; diagnostics.h3("Diagnostics"); Hamlet.TABLE<DIV<Hamlet>> diagnosticsTable = diagnostics.table(); for (String entry : statusEntries) { diagnosticsTable.tr().td(entry)._(); diagnostics._();
html.div().p()._("This page is for admins only.")._()._(); return; html._(ErrorMetrics.class); html._(WarningMetrics.class); html.div().button().$onclick("reloadPage()").b("View data for the last ") ._().select().$id("cutoff").option().$value("60")._("1 min")._() .option().$value("300")._("5 min")._().option().$value("900") ._("15 min")._().option().$value("3600")._("1 hour")._().option() .$value("21600")._("6 hours")._().option().$value("43200") ._("12 hours")._().option().$value("86400")._("24 hours")._()._()._(); .$class("toggle-content").pre()._(message)._()._()._(); } else { cell.pre()._(message)._()._();
".dataTables_wrapper { min-height: 1em }"). div(".wrapper"). h2("Default table init"). table("#t1"). thead(). tr().th("Column1").th("Column2")._()._(). tr().td("c1r1").td("c2r1")._(). tr().td("c1r2").td("c2r2")._()._()._(). h2("Nested tables"). div(_INFO_WRAP). table("#t2"). thead(). tr().th(_TH, "Column1").th(_TH, "Column2")._()._(). tr().td("subc1r1").td("subc2r1")._(). tr().td("subc1r2").td("subc2r2")._(). _()._()._()._()._()._()._()._()._();
".dataTables_wrapper { min-height: 1em }"). div(".wrapper"). h2("Default table init"). table("#t1"). thead(). tr().th("Column1").th("Column2")._()._(). tr().td("c1r1").td("c2r1")._(). tr().td("c1r2").td("c2r2")._()._()._(). h2("Nested tables"). div(_INFO_WRAP). table("#t2"). thead(). tr().th(_TH, "Column1").th(_TH, "Column2")._()._(). tr().td("subc1r1").td("subc2r1")._(). tr().td("subc1r2").td("subc2r2")._(). _()._()._()._()._()._()._()._()._();