Examples of collapseRow()


Examples of javax.swing.JTree.collapseRow()

    private static JTree tree() {
      DefaultMutableTreeNode root = new DefaultMutableTreeNode("root");
      DefaultMutableTreeNode node = new DefaultMutableTreeNode("node");
      root.add(node);
      JTree tree = new JTree(root);
      tree.collapseRow(0);
      tree.setName("tree");
      tree.addMouseListener(new MyMouseListener(popupMenu()));
      return tree;
    }
View Full Code Here

Examples of javax.swing.JTree.collapseRow()

        boolean collapse=ActionNames.COLLAPSE_ALL.equals(e.getActionCommand());
        GuiPackage guiInstance = GuiPackage.getInstance();
        JTree jTree = guiInstance.getMainFrame().getTree();
        if (collapse){
            for (int i = jTree.getRowCount() - 1; i >= 0; i--) {
                 jTree.collapseRow(i);
            }
            return;
        }
       for(int i = 0; i < jTree.getRowCount(); i++) {
               jTree.expandRow(i);
View Full Code Here

Examples of javax.swing.JTree.collapseRow()

    boolean collapse=ActionNames.COLLAPSE_ALL.equals(e.getActionCommand());
    GuiPackage guiInstance = GuiPackage.getInstance();
    JTree jTree = guiInstance.getMainFrame().getTree();
    if (collapse){
      for (int i = jTree.getRowCount() - 1; i >= 0; i--) {
             jTree.collapseRow(i);
        }
      return;
    }
     for(int i = 0; i < jTree.getRowCount(); i++) {
         jTree.expandRow(i);
View Full Code Here

Examples of javax.swing.JTree.collapseRow()

        tree.setRootVisible(true);
        if (isExpanded) {
          tree.expandRow(0);
        }
        else {
          tree.collapseRow(0);
        }
        tree.setOpaque(false);
        tree.setRowHeight(table.getRowHeight());
        tree.setCellRenderer(new DefaultTreeCellRenderer() {
          @Override
View Full Code Here

Examples of javax.swing.JTree.collapseRow()

        tree.setRootVisible(true);
        if (isExpanded) {
          tree.expandRow(0);
        }
        else {
          tree.collapseRow(0);
        }
        tree.setOpaque(false);
        tree.setRowHeight(table.getRowHeight());
        tree.setCellRenderer(new DefaultTreeCellRenderer() {
          @Override
View Full Code Here

Examples of javax.swing.JTree.collapseRow()

        tree.setRootVisible(true);
        if (isExpanded) {
          tree.expandRow(0);
        }
        else {
          tree.collapseRow(0);
        }
        tree.setOpaque(false);
        tree.setRowHeight(table.getRowHeight());
        tree.setCellRenderer(new DefaultTreeCellRenderer() {
          @Override
View Full Code Here

Examples of javax.swing.JTree.collapseRow()

        boolean collapse=ActionNames.COLLAPSE_ALL.equals(e.getActionCommand());
        GuiPackage guiInstance = GuiPackage.getInstance();
        JTree jTree = guiInstance.getMainFrame().getTree();
        if (collapse){
            for (int i = jTree.getRowCount() - 1; i >= 0; i--) {
                 jTree.collapseRow(i);
            }
            return;
        }
       for(int i = 0; i < jTree.getRowCount(); i++) {
               jTree.expandRow(i);
View Full Code Here

Examples of javax.swing.JTree.collapseRow()

        boolean collapse=ActionNames.COLLAPSE_ALL.equals(e.getActionCommand());
        GuiPackage guiInstance = GuiPackage.getInstance();
        JTree jTree = guiInstance.getMainFrame().getTree();
        if (collapse){
            for (int i = jTree.getRowCount() - 1; i >= 0; i--) {
                 jTree.collapseRow(i);
            }
            return;
        }
       for(int i = 0; i < jTree.getRowCount(); i++) {
               jTree.expandRow(i);
View Full Code Here

Examples of javax.swing.JTree.collapseRow()

    boolean collapse=ActionNames.COLLAPSE_ALL.equals(e.getActionCommand());
    GuiPackage guiInstance = GuiPackage.getInstance();
    JTree jTree = guiInstance.getMainFrame().getTree();
    if (collapse){
      for (int i = jTree.getRowCount() - 1; i >= 0; i--) {
             jTree.collapseRow(i);
        }
      return;
    }
     for(int i = 0; i < jTree.getRowCount(); i++) {
         jTree.expandRow(i);
View Full Code Here

Examples of org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerTree.collapseRow()

  protected void collapseTree() {
    // collapse everything except the first category
    CategoryExplorerTree tree = _monitor.getCategoryExplorerTree();
    for (int i = tree.getRowCount() - 1; i > 0; i--) {
      tree.collapseRow(i);
    }
  }

  protected void selectAllNodes() {
    CategoryExplorerModel model = _monitor.getCategoryExplorerTree().getExplorerModel();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.