protected void enumeratePublishedExports(PublishedExportsSet exports, UL<Hamlet> ul) { for(String key : exports.keys()) { PublishedExports export = exports.get(key); LI<UL<Hamlet>> item = ul.li(); item.span().$class("bold")._(export.description)._(); UL sublist = item.ul(); for (Entry<String, List<ExportEntry>> entry : export.entries.entrySet()) { LI sublistItem = sublist.li()._(entry.getKey()); for (ExportEntry exportEntry : entry.getValue()) { sublistItem._(exportEntry.getValue()); } sublistItem._(); } sublist._(); item._(); } } }
protected void enumeratePublishedExports(PublishedExportsSet exports, UL<Hamlet> ul) { for(String key : exports.keys()) { PublishedExports export = exports.get(key); LI<UL<Hamlet>> item = ul.li(); item.span().$class("bold")._(export.description)._(); UL sublist = item.ul(); for (Entry<String, List<ExportEntry>> entry : export.entries.entrySet()) { LI sublistItem = sublist.li()._(entry.getKey()); for (ExportEntry exportEntry : entry.getValue()) { sublistItem._(exportEntry.getValue()); } sublistItem._(); } sublist._(); item._(); } } }
protected void addProviderServiceOptions(ProviderService provider, UL ul, ClusterDescription clusterStatus) { Map<String, MonitorDetail> details = provider.buildMonitorDetails( clusterStatus); if (null == details) { return; } // Loop over each entry, placing the text in the UL, adding an anchor when the URL is non-null/empty for (Entry<String, MonitorDetail> entry : details.entrySet()) { MonitorDetail detail = entry.getValue(); if (SliderUtils.isSet(detail.getValue()) ) { LI item = ul.li(); item.span().$class("bold")._(entry.getKey())._(); item._(" - "); if (detail.isUrl()) { // Render an anchor if the value is a URL item.a(detail.getValue(), detail.getValue())._(); } else { item._(detail.getValue())._(); } } else { ul.li(entry.getKey()); } } }
ul. li().$style("margin-bottom: 1em"). span().$style("font-weight: bold")._("Legend:")._(). span().$class("qlegend ui-corner-all").$style(Q_GIVEN). _("Capacity")._(). span().$class("qlegend ui-corner-all").$style(Q_UNDER). _("Used")._(). span().$class("qlegend ui-corner-all").$style(Q_OVER). _("Used (over capacity)")._(). span().$class("qlegend ui-corner-all ui-state-default"). _("Max Capacity")._(). _(); used > 1 ? Q_OVER : Q_UNDER))._(".")._(). span(".q", "Queue: root")._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._(). _(QueueBlock.class)._(); used > 1 ? Q_OVER : Q_UNDER))._(".")._(). span(".q", partitionUiTag)._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._()._(); used > 1 ? Q_OVER : Q_UNDER))._(".")._(). span(".q", "Queue: root")._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._(). _(QueueBlock.class)._()._();
ul. li().$style("margin-bottom: 1em"). span().$style("font-weight: bold")._("Legend:")._(). span().$class("qlegend ui-corner-all").$style(Q_GIVEN). _("Capacity")._(). span().$class("qlegend ui-corner-all").$style(Q_UNDER). _("Used")._(). span().$class("qlegend ui-corner-all").$style(Q_OVER). _("Used (over capacity)")._(). span().$class("qlegend ui-corner-all ui-state-default"). _("Max Capacity")._(). _(); used > 1 ? Q_OVER : Q_UNDER))._(".")._(). span(".q", "root")._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._(). _(QueueBlock.class)._(); used > 1 ? Q_OVER : Q_UNDER))._(".")._(). span(".q", partitionUiTag)._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._(); used > 1 ? Q_OVER : Q_UNDER))._(".")._(). span(".q", "Queue: root")._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._(). _(QueueBlock.class)._()._();
span().$style("font-weight: bold")._("Legend:")._(). span().$class("qlegend ui-corner-all").$style(Q_GIVEN). $title("The steady fair shares consider all queues, " + "both active (with running applications) and inactive."). _(STEADY_FAIR_SHARE)._(). span().$class("qlegend ui-corner-all").$style(Q_INSTANTANEOUS_FS). $title("The instantaneous fair shares consider only active " + "queues (with running applications)."). _(INSTANTANEOUS_FAIR_SHARE)._(). span().$class("qlegend ui-corner-all").$style(Q_UNDER). _("Used")._(). span().$class("qlegend ui-corner-all").$style(Q_OVER). _("Used (over fair share)")._(). span().$class("qlegend ui-corner-all ui-state-default"). _("Max Capacity")._(). _(). used > 1 ? Q_OVER : Q_UNDER))._(".")._(). span(".q", "root")._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._(). _(QueueBlock.class)._();
span().$style("font-weight: bold")._("Legend:")._(). span().$class("qlegend ui-corner-all").$style(Q_GIVEN). $title("The steady fair shares consider all queues, " + "both active (with running applications) and inactive."). _(STEADY_FAIR_SHARE)._(). span().$class("qlegend ui-corner-all").$style(Q_INSTANTANEOUS_FS). $title("The instantaneous fair shares consider only active " + "queues (with running applications)."). _(INSTANTANEOUS_FAIR_SHARE)._(). span().$class("qlegend ui-corner-all").$style(Q_UNDER). _("Used")._(). span().$class("qlegend ui-corner-all").$style(Q_OVER). _("Used (over fair share)")._(). span().$class("qlegend ui-corner-all ui-state-default"). _("Max Capacity")._(). _(). used > 1 ? Q_OVER : Q_UNDER))._(".")._(). span(".q", "root")._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._(). _(QueueBlock.class)._();
_('.')._(). span(".q", info.getQueueName())._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._();
_('.')._(). span(".q", "Queue: " + info.getQueuePath().substring(5))._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._();
_('.')._(). span(".q", "Queue: " + info.getQueuePath().substring(5))._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._();
_('.')._(). span(".q", info.getQueueName())._(). span().$class("qstats").$style(left(Q_STATS_POS)). _(join(percent(used), " used"))._();
protected void addProviderServiceOptions(ProviderService provider, UL ul, ClusterDescription clusterStatus) { Map<String, MonitorDetail> details = provider.buildMonitorDetails( clusterStatus); if (null == details) { return; } // Loop over each entry, placing the text in the UL, adding an anchor when the URL is non-null/empty for (Entry<String, MonitorDetail> entry : details.entrySet()) { MonitorDetail detail = entry.getValue(); if (SliderUtils.isSet(detail.getValue()) ) { LI item = ul.li(); item.span().$class("bold")._(entry.getKey())._(); item._(" - "); if (detail.isUrl()) { // Render an anchor if the value is a URL item.a(detail.getValue(), detail.getValue())._(); } else { item._(detail.getValue())._(); } } else { ul.li(entry.getKey()); } } }
@Override public LI<T> span(String selector, String cdata) { return setSelector(span(), selector)._(cdata)._(); }
@Override public LI<T> span(String selector, String cdata) { return setSelector(span(), selector)._(cdata)._(); }
@Override public LI<T> span(String selector, String cdata) { return setSelector(span(), selector)._(cdata)._(); }
@Override public LI<T> span(String cdata) { return span()._(cdata)._(); }
@Override public LI<T> span(String cdata) { return span()._(cdata)._(); }
@Override public LI<T> span(String cdata) { return span()._(cdata)._(); }