Package org.jitterbit.ui.widget.tree.check

Examples of org.jitterbit.ui.widget.tree.check.CheckBoxNode


        this.dependencies = dependencies;
    }

    @Override
    public void nodeToggled(CheckBoxTreeEvent evt) {
        CheckBoxNode node = evt.getNode();
        Object o = node.getUserObject();
        if (!(o instanceof IntegrationEntity)) {
            return;
        }
        changedEntity = (IntegrationEntity) o;
        if (node.isSelected()) {
            explicitlySelected.add(changedEntity);
            processSelect(changedEntity, node);
            if (changedEntity instanceof Folder) {
                List<KongaTreeNode> descendants = Lists.newArrayList();
                getAllDescendantsRecursively(node, descendants);
View Full Code Here


        }
        for (IntegrationEntity req : dependencies.getRequiredObjects(e)) {
            if (req instanceof BuiltInIntegrationEntity) {
                continue;
            }
            CheckBoxNode node2 = tree.getNodeForEntity(req);
            node2.setSelected(true);
            if (!explicitlySelected.contains(req)) {
                implicitlySelected.put(changedEntity, req, Boolean.TRUE);
            }
            processSelectImpl(req, node2, alreadyProcessed);
        }
        IntegrationEntity owner = e.getParent();
        if (owner != null) {
            CheckBoxNode node2 = tree.getNodeForEntity(owner);
            node2.setSelected(true);
            if (!explicitlySelected.contains(owner)) {
                implicitlySelected.put(changedEntity, owner, Boolean.TRUE);
            }
            processSelectImpl(owner, node2, alreadyProcessed);
        } else {
View Full Code Here

    }

    private void refreshSelection() {
        unselectAll();
        for (IntegrationEntity e : explicitlySelected) {
            CheckBoxNode node = tree.getNodeForEntity(e);
            if (node != null) {
                node.setSelected(true);
            }
        }
        for (IntegrationEntity e : implicitlySelected.keySet()) {
            Map<IntegrationEntity, Boolean> map = implicitlySelected.get(e);
            if (map != null) {
                for (IntegrationEntity e2 : map.keySet()) {
                    CheckBoxNode node = tree.getNodeForEntity(e2);
                    if (node != null) {
                        node.setSelected(true);
                    }
                }
            }
        }
        setRootFoldersSelected();
View Full Code Here

            unselectNode((CheckBoxNode) child);
        }
    }

    private void setRootFoldersSelected() {
        CheckBoxNode root = tree.getRootNode();
        root.setSelected(hasSelectedChild(root));
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.tree.check.CheckBoxNode

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.