@Override protected void render(Block html) { String loggedIn = ""; if (request().getRemoteUser() != null) { loggedIn = "Logged in as: " + request().getRemoteUser(); } html. div("#header.ui-widget"). div("#user"). __(loggedIn).__(). div("#logo"). img("/static/hadoop-st.png").__(). h1($(TITLE)).__(); } }
div(_PROGRESSBAR). $title(join(jinfo.getMapProgressPercent(), '%')). // tooltip div(_PROGRESSBAR_VALUE). $style(join("width:", jinfo.getMapProgressPercent(), '%')).__().__().__(). td().a(url("tasks", jid, "m", "ALL"), String.valueOf(jinfo.getMapsTotal())).__(). div(_PROGRESSBAR). $title(join(jinfo.getReduceProgressPercent(), '%')). // tooltip div(_PROGRESSBAR_VALUE). $style(join("width:", jinfo.getReduceProgressPercent(), '%')).__().__().__(). td().a(url("tasks", jid, "r", "ALL"), String.valueOf(jinfo.getReducesTotal())).__().
tr().td("c1r2").td("c2r2").__().__().__(). h2("Nested tables"). div(_INFO_WRAP). table("#t2"). thead().
@Override protected void render(Page.HTML<__> html) { set(JQueryUI.ACCORDION_ID, "msg"); String title = "Sorry, got error "+ status(); html. title(title). link(root_url("static", "yarn.css")). __(JQueryUI.class). // an embedded sub-view style("#msg { margin: 1em auto; width: 88%; }", "#msg h1 { padding: 0.2em 1.5em; font: bold 1.3em serif; }"). div("#msg"). h1(title). div(). __("Please consult"). a("http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "RFC 2616").__(" for meanings of the error code.").__(). h1("Error Details"). pre(). __(errorDetails()).__().__().__(); }
@Override public DIV<DIV<T>> div(String selector) { return setSelector(div(), selector); }