Package cli_fmw.directory.dialogs

Examples of cli_fmw.directory.dialogs.DirectoryDialogTreeModel


    StateSaver.attachTo(this);
    }

    @Override
    protected TreeModel getModel(Object[] items, String rootTitle) {
        return new DirectoryDialogTreeModel(items, rootTitle);
    }
View Full Code Here


    for (DirectoryItemRecursive item : dir.getItemsList()) {
      if (item.getID() != 0){
        list.add(item);
      }
    }
    treeModel = new DirectoryDialogTreeModel(list.toArray(), dir.getDirectoryTitle());
    treeRender = new TreeSellectCellRenderer(dir);
    mkb10Tree.setModel(treeModel);
    mkb10Tree.setCellRenderer(treeRender);
    StateSaver.attachTo(this);
           
View Full Code Here

     *
     * @param selection selected rows or null
     */
    private void resetTree(DirectoryDangerItem item) throws ClipsException{
        TreePath selectionPath = treeDangers.getSelectionPath();
        DirectoryDialogTreeModel ddtm
            = new DirectoryDialogTreeModelImpl(directoryDanger.toArray(false), "\\");
        treeDangers.setModel(ddtm);
        treeDangers.setSelectionPath(selectionPath);
        treeDangers.expandPath(selectionPath);
    }
View Full Code Here

    StateSaver.attachTo(this);
    }

    private void setTree() throws ClipsException {
       
        DirectoryDialogTreeModel model =
            new DirectoryDialogTreeModel(enterprises.toArray(false), "Предприятия");
        treeEnterprises.setModel(model);
    }
View Full Code Here

    }

    @Override
    protected TreeModel getModel(Object[] items, String rootTitle) {
        if (mainTab.getSelectedIndex() == 0) {
            return new DirectoryDialogTreeModel(items, rootTitle);
        }
        else {
            try {
                return new DirectoryDialogSpecCollTreeModel(selectedLpu, !showNotInShedule);
            } catch (ClipsException ex) {
                MessageBox.showException(ex);
                return new DirectoryDialogTreeModel(items, rootTitle);
            }
        }
    }
View Full Code Here

TOP

Related Classes of cli_fmw.directory.dialogs.DirectoryDialogTreeModel

Copyright © 2018 www.massapicom. 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.