Java 类org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerModel 实例源码

项目:cacheonix-core    文件:ConfigurationManager.java   
public void save() {
  CategoryExplorerModel model = _monitor.getCategoryExplorerTree().getExplorerModel();
  CategoryNode root = model.getRootCategoryNode();

  StringBuffer xml = new StringBuffer(2048);
  openXMLDocument(xml);
  openConfigurationXML(xml);
  processLogRecordFilter(_monitor.getNDCTextFilter(), xml);
  processLogLevels(_monitor.getLogLevelMenuItems(), xml);
  processLogLevelColors(_monitor.getLogLevelMenuItems(),
      LogLevel.getLogLevelColorMap(), xml);
  processLogTableColumns(LogTableColumn.getLogTableColumns(), xml);
  processConfigurationNode(root, xml);
  closeConfigurationXML(xml);
  store(xml.toString());
}
项目:cacheonix-core    文件:ConfigurationManager.java   
protected void processCategories(Document doc) {
  CategoryExplorerTree tree = _monitor.getCategoryExplorerTree();
  CategoryExplorerModel model = tree.getExplorerModel();
  NodeList nodeList = doc.getElementsByTagName(CATEGORY);

  // determine where the starting node is
  NamedNodeMap map = nodeList.item(0).getAttributes();
  int j = (getValue(map, NAME).equalsIgnoreCase(FIRST_CATEGORY_NAME)) ? 1 : 0;
  // iterate backwards throught the nodeList so that expansion of the
  // list can occur
  for (int i = nodeList.getLength() - 1; i >= j; i--) {
    Node n = nodeList.item(i);
    map = n.getAttributes();
    CategoryNode chnode = model.addCategory(new CategoryPath(getValue(map, PATH)));
    chnode.setSelected((getValue(map, SELECTED).equalsIgnoreCase("true")) ? true : false);
    if (getValue(map, EXPANDED).equalsIgnoreCase("true")) ;
    tree.expandPath(model.getTreePathToRoot(chnode));
  }

}
项目:daq-eclipse    文件:ConfigurationManager.java   
public void save() {
  CategoryExplorerModel model = _monitor.getCategoryExplorerTree().getExplorerModel();
  CategoryNode root = model.getRootCategoryNode();

  StringBuffer xml = new StringBuffer(2048);
  openXMLDocument(xml);
  openConfigurationXML(xml);
  processLogRecordFilter(_monitor.getNDCTextFilter(), xml);
  processLogLevels(_monitor.getLogLevelMenuItems(), xml);
  processLogLevelColors(_monitor.getLogLevelMenuItems(),
      LogLevel.getLogLevelColorMap(), xml);
  processLogTableColumns(LogTableColumn.getLogTableColumns(), xml);
  processConfigurationNode(root, xml);
  closeConfigurationXML(xml);
  store(xml.toString());
}
项目:daq-eclipse    文件:ConfigurationManager.java   
protected void processCategories(Document doc) {
  CategoryExplorerTree tree = _monitor.getCategoryExplorerTree();
  CategoryExplorerModel model = tree.getExplorerModel();
  NodeList nodeList = doc.getElementsByTagName(CATEGORY);

  // determine where the starting node is
  NamedNodeMap map = nodeList.item(0).getAttributes();
  int j = (getValue(map, NAME).equalsIgnoreCase(FIRST_CATEGORY_NAME)) ? 1 : 0;
  // iterate backwards throught the nodeList so that expansion of the
  // list can occur
  for (int i = nodeList.getLength() - 1; i >= j; i--) {
    Node n = nodeList.item(i);
    map = n.getAttributes();
    CategoryNode chnode = model.addCategory(new CategoryPath(getValue(map, PATH)));
    chnode.setSelected((getValue(map, SELECTED).equalsIgnoreCase("true")) ? true : false);
    if (getValue(map, EXPANDED).equalsIgnoreCase("true")) ;
    tree.expandPath(model.getTreePathToRoot(chnode));
  }

}
项目:nabs    文件:ConfigurationManager.java   
public void save() {
  CategoryExplorerModel model = _monitor.getCategoryExplorerTree().getExplorerModel();
  CategoryNode root = model.getRootCategoryNode();

  StringBuffer xml = new StringBuffer(2048);
  openXMLDocument(xml);
  openConfigurationXML(xml);
  processLogRecordFilter(_monitor.getNDCTextFilter(), xml);
  processLogLevels(_monitor.getLogLevelMenuItems(), xml);
  processLogLevelColors(_monitor.getLogLevelMenuItems(),
      LogLevel.getLogLevelColorMap(), xml);
  processLogTableColumns(LogTableColumn.getLogTableColumns(), xml);
  processConfigurationNode(root, xml);
  closeConfigurationXML(xml);
  store(xml.toString());
}
项目:nabs    文件:ConfigurationManager.java   
protected void processCategories(Document doc) {
  CategoryExplorerTree tree = _monitor.getCategoryExplorerTree();
  CategoryExplorerModel model = tree.getExplorerModel();
  NodeList nodeList = doc.getElementsByTagName(CATEGORY);

  // determine where the starting node is
  NamedNodeMap map = nodeList.item(0).getAttributes();
  int j = (getValue(map, NAME).equalsIgnoreCase(FIRST_CATEGORY_NAME)) ? 1 : 0;
  // iterate backwards throught the nodeList so that expansion of the
  // list can occur
  for (int i = nodeList.getLength() - 1; i >= j; i--) {
    Node n = nodeList.item(i);
    map = n.getAttributes();
    CategoryNode chnode = model.addCategory(new CategoryPath(getValue(map, PATH)));
    chnode.setSelected((getValue(map, SELECTED).equalsIgnoreCase("true")) ? true : false);
    if (getValue(map, EXPANDED).equalsIgnoreCase("true")) ;
    tree.expandPath(model.getTreePathToRoot(chnode));
  }

}