org.apache.hadoop.yarn.webapp.view.JQueryUI类的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(9.7k)|赞(0)|评价(0)|浏览(56)

本文整理了Java中org.apache.hadoop.yarn.webapp.view.JQueryUI类的一些代码示例,展示了JQueryUI类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JQueryUI类的具体详情如下:
包路径:org.apache.hadoop.yarn.webapp.view.JQueryUI
类名称:JQueryUI

JQueryUI介绍

暂无

代码示例

代码示例来源:origin: Qihoo360/XLearning

@Override
protected void preHead(Page.HTML<_> html) {
 String logEntity = $(ENTITY_STRING);
 if (logEntity == null || logEntity.isEmpty()) {
  logEntity = $(CONTAINER_ID);
 }
 if (logEntity == null || logEntity.isEmpty()) {
  logEntity = "UNKNOWN";
 }
 set(ACCORDION_ID, "nav");
 set(initID(ACCORDION, "nav"), "{autoHeight:false, active:0}");
}

代码示例来源:origin: org.apache.hadoop/hadoop-mapreduce-client-app

/**
 * @return the end of the JS map that is the jquery datatable config for the
 * conf table.
 */
private String confTableInit() {
 return tableInit().append("}").toString();
}

代码示例来源:origin: io.hops/hadoop-mapreduce-client-hs

@Override protected void preHead(Page.HTML<_> html) {
 commonPreHead(html);
 //override the nav config from commonPReHead
 set(initID(ACCORDION, "nav"), "{autoHeight:false, active:2}");
 //Set up the java script and CSS for the attempts table
 set(DATATABLES_ID, "attempts");
 set(initID(DATATABLES, "attempts"), attemptsTableInit());
 set(postInitID(DATATABLES, "attempts"), attemptsPostTableInit());
 setTableStyles(html, "attempts");
}

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common

"return JSON.parse( sessionStorage.getItem(oSettings.sTableId) );}, ";
for (String id : split($(DATATABLES_ID))) {
 if (Html.isValidId(id)) {
  String init = $(initID(DATATABLES, id));
  if (init.isEmpty()) {
   init = defaultInit;
  list.add(join(id, "DataTable =  $('#", id, "').dataTable(", init,
         ").fnSetFilteringDelay(188);"));
  String postInit = $(postInitID(DATATABLES, id));
  if(!postInit.isEmpty()) {
   list.add(postInit);
String selector = $(DATATABLES_SELECTOR);
if (!selector.isEmpty()) {
 String init = $(initSelector(DATATABLES));
 if (init.isEmpty()) {
  init = defaultInit;

代码示例来源:origin: com.github.jiayuhan-it/hadoop-mapreduce-client-hs

@Override protected void preHead(Page.HTML<_> html) {
 commonPreHead(html);
 String tid = $(TASK_ID);
 String activeNav = "2";
 if(tid == null || tid.isEmpty()) {
  activeNav = "1";
 }
 set(initID(ACCORDION, "nav"), "{autoHeight:false, active:"+activeNav+"}");
 set(DATATABLES_SELECTOR, "#counters .dt-counters");
 set(initSelector(DATATABLES),
   "{bJQueryUI:true, sDom:'t', iDisplayLength:-1}");
}

代码示例来源:origin: io.hops/hadoop-mapreduce-client-hs

@Override protected void preHead(Page.HTML<_> html) {
 commonPreHead(html);
 set(DATATABLES_ID, "tasks");
 set(DATATABLES_SELECTOR, ".dt-tasks" );
 set(initSelector(DATATABLES), tasksTableInit());
 set(initID(ACCORDION, "nav"), "{autoHeight:false, active:1}");
 set(initID(DATATABLES, "tasks"), tasksTableInit());
 set(postInitID(DATATABLES, "tasks"), jobsPostTableInit());
 setTableStyles(html, "tasks");
}

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common

protected void initAccordions(List<String> list) {
 for (String id : split($(ACCORDION_ID))) {
  if (Html.isValidId(id)) {
   String init = $(initID(ACCORDION, id));
   if (init.isEmpty()) {
    init = "{autoHeight: false}";
   }
   list.add(join("  $('#", id, "').accordion(", init, ");"));
  }
 }
}

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-common

protected void initDialogs(List<String> list) {
 String defaultInit = "{autoOpen: false, show: transfer, hide: explode}";
 for (String id : split($(DIALOG_ID))) {
  if (Html.isValidId(id)) {
   String init = $(initID(DIALOG, id));
   if (init.isEmpty()) {
    init = defaultInit;
   }
   String opener = $(djoin(DIALOG, id, "opener"));
   list.add(join("  $('#", id, "').dialog(", init, ");"));
   if (!opener.isEmpty() && Html.isValidId(opener)) {
    list.add(join("  $('#", opener, "').click(function() { ",
         "$('#", id, "').dialog('open'); return false; });"));
   }
  }
 }
 String selector = $(DIALOG_SELECTOR);
 if (!selector.isEmpty()) {
  String init = $(initSelector(DIALOG));
  if (init.isEmpty()) {
   init = defaultInit;
  }
  list.add(join("  $('", escapeJavaScript(selector),
       "').click(function() { $(this).children('.dialog').dialog(",
       init, "); return false; });"));
 }
}

代码示例来源:origin: io.hops/hadoop-mapreduce-client-hs

@Override protected void preHead(Page.HTML<_> html) {
 commonPreHead(html);
 setActiveNavColumnForTask();
 set(DATATABLES_SELECTOR, "#counters .dt-counters");
 set(initSelector(DATATABLES),
   "{bJQueryUI:true, sDom:'t', iDisplayLength:-1}");
}

代码示例来源:origin: ch.cern.hadoop/hadoop-mapreduce-client-hs

/**
 * @return the end of the JS map that is the jquery datatable config for the
 * conf table.
 */
private String confTableInit() {
 return tableInit().append("}").toString();
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-mapreduce-client-hs

@Override protected void preHead(Page.HTML<_> html) {
 commonPreHead(html);
 //override the nav config from commonPReHead
 set(initID(ACCORDION, "nav"), "{autoHeight:false, active:2}");
 //Set up the java script and CSS for the attempts table
 set(DATATABLES_ID, "attempts");
 set(initID(DATATABLES, "attempts"), attemptsTableInit());
 set(postInitID(DATATABLES, "attempts"), attemptsPostTableInit());
 setTableStyles(html, "attempts");
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-common

"return JSON.parse( sessionStorage.getItem(oSettings.sTableId) );}, ";
for (String id : split($(DATATABLES_ID))) {
 if (Html.isValidId(id)) {
  String init = $(initID(DATATABLES, id));
  if (init.isEmpty()) {
   init = defaultInit;
  list.add(join(id,"DataTable =  $('#", id, "').dataTable(", init,
         ").fnSetFilteringDelay(188);"));
  String postInit = $(postInitID(DATATABLES, id));
  if(!postInit.isEmpty()) {
   list.add(postInit);
String selector = $(DATATABLES_SELECTOR);
if (!selector.isEmpty()) {
 String init = $(initSelector(DATATABLES));
 if (init.isEmpty()) {
  init = defaultInit;

代码示例来源:origin: io.hops/hadoop-mapreduce-client-app

@Override protected void preHead(Page.HTML<_> html) {
 commonPreHead(html);
 String tid = $(TASK_ID);
 String activeNav = "3";
 if(tid == null || tid.isEmpty()) {
  activeNav = "2";
 }
 set(initID(ACCORDION, "nav"), "{autoHeight:false, active:"+activeNav+"}");
 set(DATATABLES_SELECTOR, "#counters .dt-counters");
 set(initSelector(DATATABLES),
   "{bJQueryUI:true, sDom:'t', iDisplayLength:-1}");
}

代码示例来源:origin: ch.cern.hadoop/hadoop-mapreduce-client-hs

@Override protected void preHead(Page.HTML<_> html) {
 commonPreHead(html);
 set(DATATABLES_ID, "tasks");
 set(DATATABLES_SELECTOR, ".dt-tasks" );
 set(initSelector(DATATABLES), tasksTableInit());
 set(initID(ACCORDION, "nav"), "{autoHeight:false, active:1}");
 set(initID(DATATABLES, "tasks"), tasksTableInit());
 set(postInitID(DATATABLES, "tasks"), jobsPostTableInit());
 setTableStyles(html, "tasks");
}

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common

protected void initProgressBars(List<String> list) {
 for (String id : split($(PROGRESSBAR_ID))) {
  if (Html.isValidId(id)) {
   String init = $(initID(PROGRESSBAR, id));
   list.add(join("  $('#", id, "').progressbar(", init, ");"));
  }
 }
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-common

protected void initDialogs(List<String> list) {
 String defaultInit = "{autoOpen: false, show: transfer, hide: explode}";
 for (String id : split($(DIALOG_ID))) {
  if (Html.isValidId(id)) {
   String init = $(initID(DIALOG, id));
   if (init.isEmpty()) {
    init = defaultInit;
   }
   String opener = $(djoin(DIALOG, id, "opener"));
   list.add(join("  $('#", id, "').dialog(", init, ");"));
   if (!opener.isEmpty() && Html.isValidId(opener)) {
    list.add(join("  $('#", opener, "').click(function() { ",
         "$('#", id, "').dialog('open'); return false; });"));
   }
  }
 }
 String selector = $(DIALOG_SELECTOR);
 if (!selector.isEmpty()) {
  String init = $(initSelector(DIALOG));
  if (init.isEmpty()) {
   init = defaultInit;
  }
  list.add(join("  $('", escapeJavaScript(selector),
       "').click(function() { $(this).children('.dialog').dialog(",
       init, "); return false; });"));
 }
}

代码示例来源:origin: io.hops/hadoop-mapreduce-client-app

/**
 * @return the end of the JS map that is the jquery datatable config for the
 * conf table.
 */
private String confTableInit() {
 return tableInit().append("}").toString();
}

代码示例来源:origin: io.hops/hadoop-mapreduce-client-hs

/**
 * Determine which navigation column is active.
 */
protected void setActiveNavColumnForTask() {
 String tid = $(TASK_ID);
 String activeNav = "2";
 if((tid == null || tid.isEmpty())) {
  activeNav = "1";
 }
 set(initID(ACCORDION, "nav"), "{autoHeight:false, active:"+activeNav+"}");
}

代码示例来源:origin: ch.cern.hadoop/hadoop-mapreduce-client-hs

@Override protected void preHead(Page.HTML<_> html) {
 commonPreHead(html);
 //override the nav config from commonPReHead
 set(initID(ACCORDION, "nav"), "{autoHeight:false, active:2}");
 //Set up the java script and CSS for the attempts table
 set(DATATABLES_ID, "attempts");
 set(initID(DATATABLES, "attempts"), attemptsTableInit());
 set(postInitID(DATATABLES, "attempts"), attemptsPostTableInit());
 setTableStyles(html, "attempts");
}

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-common

"return JSON.parse( sessionStorage.getItem(oSettings.sTableId) );}, ";
for (String id : split($(DATATABLES_ID))) {
 if (Html.isValidId(id)) {
  String init = $(initID(DATATABLES, id));
  if (init.isEmpty()) {
   init = defaultInit;
  list.add(join(id,"DataTable =  $('#", id, "').dataTable(", init,
         ").fnSetFilteringDelay(188);"));
  String postInit = $(postInitID(DATATABLES, id));
  if(!postInit.isEmpty()) {
   list.add(postInit);
String selector = $(DATATABLES_SELECTOR);
if (!selector.isEmpty()) {
 String init = $(initSelector(DATATABLES));
 if (init.isEmpty()) {
  init = defaultInit;

相关文章