Package fr.soleil.salsa.client.view.tool

Examples of fr.soleil.salsa.client.view.tool.ATreeNode


    public void expandNode(ATreeNode treeNode) {
        int nbRows = configTree.getRowCount();
        TreePath treePath;
        for (int rowIndex = 0; rowIndex < nbRows; ++rowIndex) {
            treePath = configTree.getPathForRow(rowIndex);
            ATreeNode searchTreeNode = (ATreeNode) ((DefaultMutableTreeNode) treePath
                    .getLastPathComponent()).getUserObject();
            if (searchTreeNode.equals(treeNode)) {
                configTree.expandRow(rowIndex);
            }
        }
    }
View Full Code Here


            if (rootDirectory == null) {
                rootDirectory = savedDirectory;
            }
            currentDirectory = savedDirectory;
            refresh();
            ATreeNode treeNode = new DirectoryTreeNode(currentDirectory);
            if (savedDirectory.getDirectory() != null) {
                view.expandNode(new DirectoryTreeNode(savedDirectory.getDirectory()));
            }
            view.setSelection(treeNode);
        }
View Full Code Here

     */
    private void filterMultipleSelection(List<ATreeNode> multipleSelection) {
        int size = multipleSelection.size();
        int cursorSearch = 0;
        int cursorCompare;
        ATreeNode searchNode;
        ATreeNode compareNode;
        while (cursorSearch < size - 1) {
            searchNode = multipleSelection.get(cursorSearch);
            for (cursorCompare = cursorSearch + 1; cursorCompare < size; ++cursorCompare) {
                compareNode = multipleSelection.get(cursorCompare);
                if (isChild(compareNode, searchNode)) {
View Full Code Here

            if (rootDirectory == null) {
                rootDirectory = savedDirectory;
            }
            currentDirectory = savedDirectory;
            refresh();
            ATreeNode treeNode = new DirectoryTreeNode(currentDirectory);
            if (savedDirectory.getDirectory() != null) {
                view.expandNode(new DirectoryTreeNode(savedDirectory.getDirectory()));
            }
            view.setSelection(treeNode);
        }
View Full Code Here

     */
    private void filterMultipleSelection(List<ATreeNode> multipleSelection) {
        int size = multipleSelection.size();
        int cursorSearch = 0;
        int cursorCompare;
        ATreeNode searchNode;
        ATreeNode compareNode;
        while (cursorSearch < size - 1) {
            searchNode = multipleSelection.get(cursorSearch);
            for (cursorCompare = cursorSearch + 1; cursorCompare < size; ++cursorCompare) {
                compareNode = multipleSelection.get(cursorCompare);
                if (isChild(compareNode, searchNode)) {
View Full Code Here

            if (rootDirectory == null) {
                rootDirectory = savedDirectory;
            }
            currentDirectory = savedDirectory;
            refresh();
            ATreeNode treeNode = new DirectoryTreeNode(currentDirectory);
            if (savedDirectory.getDirectory() != null) {
                view.expandNode(new DirectoryTreeNode(savedDirectory.getDirectory()));
            }
            view.setSelection(treeNode);
        }
View Full Code Here

     */
    private void filterMultipleSelection(List<ATreeNode> multipleSelection) {
        int size = multipleSelection.size();
        int cursorSearch = 0;
        int cursorCompare;
        ATreeNode searchNode;
        ATreeNode compareNode;
        while (cursorSearch < size - 1) {
            searchNode = multipleSelection.get(cursorSearch);
            for (cursorCompare = cursorSearch + 1; cursorCompare < size; ++cursorCompare) {
                compareNode = multipleSelection.get(cursorCompare);
                if (isChild(compareNode, searchNode)) {
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.client.view.tool.ATreeNode

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.