Package org.jitterbit.ui.widget.tree

Examples of org.jitterbit.ui.widget.tree.DefaultKongaTreeNode


        }
       
        private KongaTreeNode getNode(DatabaseObject o) {
            KongaTreeNode node = nodes.get(o);
            if (node == null) {
                node = new DefaultKongaTreeNode(o, true);
                nodes.put(o, node);
            }
            return node;
        }
View Full Code Here


            }
            return root;
        }

        private static KongaTreeNode createEmptyRootNode() {
            return new DefaultKongaTreeNode("root", true);
        }
View Full Code Here

            setCromTree(cromTree);
        }
    }

    private KongaTree createEmptyTree() {
        KongaTree tree = new KongaTree(new DefaultKongaTreeModel(new DefaultKongaTreeNode("root", true)));
        tree.setRootVisible(false);
        tree.addTreeWillExpandListener(new NodeExpansionHandler());
        tree.setCellRenderer(new Renderer(disabledNodes));
        return tree;
    }
View Full Code Here

     */
    public void displayWaitNode() {
        if (waitNode != null) {
            return;
        }
        DefaultKongaTreeNode root = getRoot();
        root.removeAllChildren();
        waitNode = new WaitNode(tree);
        root.addChild(waitNode);
        waitNode.start();
        fireNodeStructureChanged(root);
    }
View Full Code Here

            removeWaitNode();
            super.onFailure(err);
        }

        private void removeWaitNode() {
            DefaultKongaTreeNode root = getRoot();
            root.removeAllChildren();
            fireNodeStructureChanged(root);
        }
View Full Code Here

        tree.addMouseListener(new PopupTrigger(copyPathAction));
    }

    public void displayResult(CreateXsdResult result) {
        if (result == null) {
            KongaTreeModel model = new DefaultKongaTreeModel(new DefaultKongaTreeNode("root", false));
            tree.setModel(model);
            tree.setRootVisible(false);
        } else {
            KongaTreeModel model = createTreeModel(result);
            tree.setModel(model);
View Full Code Here

     *
     * @param rootName
     *            the display name of the root node
     */
    public IntegrationEntityTreeModel(String rootName) {
        this(new DefaultKongaTreeNode(rootName, false));
    }
View Full Code Here

            tree.expandAll();
            return tree;
        }

        private KongaTreeModel createModel() {
            KongaTreeNode root = new DefaultKongaTreeNode("root", true);
            KongaTreeNode operations = new DefaultKongaTreeNode(root, EntityType.Operation.getPlural(), true);
            operations.addChild(operationNode);
            KongaTreeNode transformations = new DefaultKongaTreeNode(root, EntityType.Transformation.getPlural(), true);
            transformations.addChild(transformationNode);
            return new DefaultKongaTreeModel(root);
        }
View Full Code Here

    private static class Model extends DefaultKongaTreeModel {

        private final Map<NumericOid, ClassNode> classNodes;

        public Model(ObjectClassStructure[] structs, boolean disableReadOnlyAttrs) {
            super(new DefaultKongaTreeNode("root", true));
            classNodes = Maps.newHashMap();
            addClassNodes(structs, disableReadOnlyAttrs);
        }
View Full Code Here

        tree.expandAll();
        return tree;
    }
   
    private KongaTreeModel createTreeModel(ListenerReport r) {
        DefaultKongaTreeNode root = new DefaultKongaTreeNode("Root", true);
        for (String cat : r.getCategoriesAlphabetically()) {
            DefaultKongaTreeNode catNode = new DefaultKongaTreeNode(root, cat, true);
            for (ListenerReport.Item item : r.getItems(cat)) {
                new DefaultKongaTreeNode(catNode, item, false);
            }
        }
        return new DefaultKongaTreeModel(root);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.tree.DefaultKongaTreeNode

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.