javax.faces.webapp.UIComponentClassicTagBase.printTree()方法的使用及代码示例

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

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

UIComponentClassicTagBase.printTree介绍

暂无

代码示例

代码示例来源:origin: javax.faces/javax.faces-api

} else {
  StringWriter writer = new StringWriter(128);
  printTree(context.getViewRoot(), this.id, writer, 0);
  String msg = "Component ID '"
      + this.id

代码示例来源:origin: org.glassfish/jakarta.faces

} else {
  StringWriter writer = new StringWriter(128);
  printTree(context.getViewRoot(), this.id, writer, 0);
  String msg = "Component ID '"
      + this.id

代码示例来源:origin: com.sun.faces/jsf-api

} else {
  StringWriter writer = new StringWriter(128);
  printTree(context.getViewRoot(), this.id, writer, 0);
  String msg = "Component ID '"
      + this.id

代码示例来源:origin: javax/javaee-web-api

} else {
  StringWriter writer = new StringWriter(128);
  printTree(context.getViewRoot(), this.id, writer, 0);
  String msg = "Component ID '"
      + this.id

代码示例来源:origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

} else {
  StringWriter writer = new StringWriter(128);
  printTree(context.getViewRoot(), this.id, writer, 0);
  String msg = "Component ID '"
      + this.id

代码示例来源:origin: javax.faces/com.springsource.javax.faces

} else {
  StringWriter writer = new StringWriter(128);
  printTree(context.getViewRoot(), this.id, writer, 0);
  String msg = "Component ID '"
         + this.id

代码示例来源:origin: org.glassfish/javax.faces

} else {
  StringWriter writer = new StringWriter(128);
  printTree(context.getViewRoot(), this.id, writer, 0);
  String msg = "Component ID '"
      + this.id

代码示例来源:origin: jboss/jboss-javaee-specs

} else {
  StringWriter writer = new StringWriter(128);
  printTree(context.getViewRoot(), this.id, writer, 0);
  String msg = "Component ID '"
      + this.id

代码示例来源:origin: eclipse-ee4j/mojarra

} else {
  StringWriter writer = new StringWriter(128);
  printTree(context.getViewRoot(), this.id, writer, 0);
  String msg = "Component ID '"
      + this.id

代码示例来源:origin: eclipse-ee4j/mojarra

} else {
  StringWriter writer = new StringWriter(128);
  printTree(context.getViewRoot(), this.id, writer, 0);
  String msg = "Component ID '"
      + this.id

代码示例来源:origin: eclipse-ee4j/mojarra

private static void printTree(UIComponent root,
               String duplicateId,
               Writer out,
               int curDepth) {
  if (null == root) {
    return;
  }
  if (duplicateId.equals(root.getId())) {
    indentPrintln(out, "+id: " + root.getId() + "  <===============",
        curDepth);
  } else {
    indentPrintln(out, "+id: " + root.getId(), curDepth);
  }
  //noinspection ObjectToString
  indentPrintln(out, " type: " + root.toString(), curDepth);
  curDepth++;
  // print all the facets of this component
  for (UIComponent uiComponent : root.getFacets().values()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
  // print all the children of this component
  for (UIComponent uiComponent : root.getChildren()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
}

代码示例来源:origin: javax/javaee-web-api

private static void printTree(UIComponent root,
               String duplicateId,
               Writer out,
               int curDepth) {
  if (null == root) {
    return;
  }
  if (duplicateId.equals(root.getId())) {
    indentPrintln(out, "+id: " + root.getId() + "  <===============",
        curDepth);
  } else {
    indentPrintln(out, "+id: " + root.getId(), curDepth);
  }
  //noinspection ObjectToString
  indentPrintln(out, " type: " + root.toString(), curDepth);
  curDepth++;
  // print all the facets of this component
  for (UIComponent uiComponent : root.getFacets().values()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
  // print all the children of this component
  for (UIComponent uiComponent : root.getChildren()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
}

代码示例来源:origin: com.sun.faces/jsf-api

private static void printTree(UIComponent root,
               String duplicateId,
               Writer out,
               int curDepth) {
  if (null == root) {
    return;
  }
  if (duplicateId.equals(root.getId())) {
    indentPrintln(out, "+id: " + root.getId() + "  <===============",
        curDepth);
  } else {
    indentPrintln(out, "+id: " + root.getId(), curDepth);
  }
  //noinspection ObjectToString
  indentPrintln(out, " type: " + root.toString(), curDepth);
  curDepth++;
  // print all the facets of this component
  for (UIComponent uiComponent : root.getFacets().values()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
  // print all the children of this component
  for (UIComponent uiComponent : root.getChildren()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
}

代码示例来源:origin: org.glassfish/jakarta.faces

private static void printTree(UIComponent root,
               String duplicateId,
               Writer out,
               int curDepth) {
  if (null == root) {
    return;
  }
  if (duplicateId.equals(root.getId())) {
    indentPrintln(out, "+id: " + root.getId() + "  <===============",
        curDepth);
  } else {
    indentPrintln(out, "+id: " + root.getId(), curDepth);
  }
  //noinspection ObjectToString
  indentPrintln(out, " type: " + root.toString(), curDepth);
  curDepth++;
  // print all the facets of this component
  for (UIComponent uiComponent : root.getFacets().values()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
  // print all the children of this component
  for (UIComponent uiComponent : root.getChildren()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
}

代码示例来源:origin: javax.faces/javax.faces-api

private static void printTree(UIComponent root,
               String duplicateId,
               Writer out,
               int curDepth) {
  if (null == root) {
    return;
  }
  if (duplicateId.equals(root.getId())) {
    indentPrintln(out, "+id: " + root.getId() + "  <===============",
        curDepth);
  } else {
    indentPrintln(out, "+id: " + root.getId(), curDepth);
  }
  //noinspection ObjectToString
  indentPrintln(out, " type: " + root.toString(), curDepth);
  curDepth++;
  // print all the facets of this component
  for (UIComponent uiComponent : root.getFacets().values()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
  // print all the children of this component
  for (UIComponent uiComponent : root.getChildren()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
}

代码示例来源:origin: org.glassfish/javax.faces

private static void printTree(UIComponent root,
               String duplicateId,
               Writer out,
               int curDepth) {
  if (null == root) {
    return;
  }
  if (duplicateId.equals(root.getId())) {
    indentPrintln(out, "+id: " + root.getId() + "  <===============",
        curDepth);
  } else {
    indentPrintln(out, "+id: " + root.getId(), curDepth);
  }
  //noinspection ObjectToString
  indentPrintln(out, " type: " + root.toString(), curDepth);
  curDepth++;
  // print all the facets of this component
  for (UIComponent uiComponent : root.getFacets().values()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
  // print all the children of this component
  for (UIComponent uiComponent : root.getChildren()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
}

代码示例来源:origin: jboss/jboss-javaee-specs

private static void printTree(UIComponent root,
               String duplicateId,
               Writer out,
               int curDepth) {
  if (null == root) {
    return;
  }
  if (duplicateId.equals(root.getId())) {
    indentPrintln(out, "+id: " + root.getId() + "  <===============",
        curDepth);
  } else {
    indentPrintln(out, "+id: " + root.getId(), curDepth);
  }
  //noinspection ObjectToString
  indentPrintln(out, " type: " + root.toString(), curDepth);
  curDepth++;
  // print all the facets of this component
  for (UIComponent uiComponent : root.getFacets().values()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
  // print all the children of this component
  for (UIComponent uiComponent : root.getChildren()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
}

代码示例来源:origin: eclipse-ee4j/mojarra

private static void printTree(UIComponent root,
               String duplicateId,
               Writer out,
               int curDepth) {
  if (null == root) {
    return;
  }
  if (duplicateId.equals(root.getId())) {
    indentPrintln(out, "+id: " + root.getId() + "  <===============",
        curDepth);
  } else {
    indentPrintln(out, "+id: " + root.getId(), curDepth);
  }
  //noinspection ObjectToString
  indentPrintln(out, " type: " + root.toString(), curDepth);
  curDepth++;
  // print all the facets of this component
  for (UIComponent uiComponent : root.getFacets().values()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
  // print all the children of this component
  for (UIComponent uiComponent : root.getChildren()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
}

代码示例来源:origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

private static void printTree(UIComponent root,
               String duplicateId,
               Writer out,
               int curDepth) {
  if (null == root) {
    return;
  }
  if (duplicateId.equals(root.getId())) {
    indentPrintln(out, "+id: " + root.getId() + "  <===============",
        curDepth);
  } else {
    indentPrintln(out, "+id: " + root.getId(), curDepth);
  }
  //noinspection ObjectToString
  indentPrintln(out, " type: " + root.toString(), curDepth);
  curDepth++;
  // print all the facets of this component
  for (UIComponent uiComponent : root.getFacets().values()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
  // print all the children of this component
  for (UIComponent uiComponent : root.getChildren()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
}

代码示例来源:origin: javax.faces/com.springsource.javax.faces

private static void printTree(UIComponent root,
               String duplicateId,
               Writer out,
               int curDepth) {
  if (null == root) {
    return;
  }
  if (duplicateId.equals(root.getId())) {
    indentPrintln(out, "+id: " + root.getId() + "  <===============",
           curDepth);
  } else {
    indentPrintln(out, "+id: " + root.getId(), curDepth);
  }
  //noinspection ObjectToString
  indentPrintln(out, " type: " + root.toString(), curDepth);
  curDepth++;
  // print all the facets of this component
  for (UIComponent uiComponent : root.getFacets().values()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
  // print all the children of this component
  for (UIComponent uiComponent : root.getChildren()) {
    printTree(uiComponent, duplicateId, out, curDepth);
  }
}

相关文章

微信公众号

最新文章

更多

UIComponentClassicTagBase类方法