Examples of KongaTreeNode


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

        }
        return new DefaultKongaTreeModel(root);
    }

    private void addProjectVariableNodes(KongaTreeNode root) {
        KongaTreeNode parent = new ProjectVariablesNode(root);
        addDataElementNodes(parent, deStore.getAllDataElements());
        if (parent.getChildCount() == 0) {
            new NoneNode(parent);
        }
    }
View Full Code Here

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

        }
    }

    @Override
    public void selectFirst() {
        KongaTreeNode root = tree.getModel().getRoot();
        if (tree.getModel().getChildCount(root) > 0) {
            Object toSelect = tree.getModel().getChild(root, 0);
            tree.makeNodeSelected(toSelect, false);
        }
    }
View Full Code Here

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

    private void updateHelpAction() {
        DocumentedResource rc = null;
        List<KongaTreeNode> nodes = tree.getTree().getSelectedNodes();
        if (nodes.size() == 1) {
            KongaTreeNode node = nodes.get(0);
            if (node instanceof DocumentedResource) {
                rc = (DocumentedResource) node;
            }
        }
        helpAction.setSelectedResource(rc);
View Full Code Here

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

     *         in this model.
     */
    public KongaTreeNode[] getRequiredAttributes() {
        List<KongaTreeNode> required = Lists.newArrayList();
        for (Enumeration<KongaTreeNode> en = getRoot().depthFirstEnumeration(); en.hasMoreElements();) {
            KongaTreeNode node = en.nextElement();
            if (node instanceof AttributeSelectionNode) {
                if (((AttributeSelectionNode) node).isRequired()) {
                    required.add(node);
                }
            }
View Full Code Here

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

        tree.requestFocus();
        selectFirstClassNode();
    }

    private void selectFirstClassNode() {
        KongaTreeNode root = model.getRoot();
        if (root.getChildCount() == 0) {
            return;
        }
        KongaTreeNode toSelect = root.getChildAt(0);
        tree.getAdaptee().makeNodeSelected(toSelect, false);
    }
View Full Code Here

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

    }

    public PipelinePluginManifest getSelectedPlugin() {
        List<KongaTreeNode> selectedNodes = tree.getSelectedNodes();
        if (selectedNodes.size() == 1) {
            KongaTreeNode node = selectedNodes.get(0);
            if (node instanceof PluginTreeNode) {
                return ((PluginTreeNode) node).getUserObject();
            }
        }
        return null;
View Full Code Here

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

    public TreeModelBuilder(ScriptPluginProvider provider) {
        this.provider = provider;
    }
   
    public KongaTreeModel buildModel() {
        KongaTreeNode root;
        synchronized (provider) {
            root = createRoot();
            if (isConnected()) {
                addPlugins(root);
            }
View Full Code Here

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

    private T next(KongaTreeNode start) {
        if (start == null) {
            return null;
        }
        KongaTreeNode next = (KongaTreeNode) TreeUtils.getNextNodeDown(tree.getModel(), start);
        while (next != null) {
            if (itemFinder.apply(next)) {
                return storeAndReturnItem(next);
            }
            next = (KongaTreeNode) TreeUtils.getNextNodeDown(tree.getModel(), next);
View Full Code Here

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

    }

    @Override
    public T getLast() {
        if (root != null) {
            KongaTreeNode last = (KongaTreeNode) TreeUtils.getLastChild(tree.getModel(), root);
            if (itemFinder.apply(last)) {
                return storeAndReturnItem(last);
            }
        }
        return null;
View Full Code Here

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

        return null;
    }

    @Override
    public T next() {
        KongaTreeNode start = getStartForDownwardTraversal();
        return next(start);
    }
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.