Package org.jitterbit.ui.widget.tree

Examples of org.jitterbit.ui.widget.tree.KongaTree$LineStyle


    private class PopupHandler implements PopupMenuRequestHandler {

        @Override
        public boolean popupMenuRequested(Component source, int x, int y) {
            KongaTree tree = (KongaTree) source;
            Object o = getSelectedObject(tree, x, y);
            if (o == null) {
                return false;
            }
            JPopupMenu pm = null;
            if (o instanceof ClassNameNode) {
                pm = getPopupMenu((ClassNameNode) o);
            } else if (o instanceof AttributeSelectionNode) {
                pm = getAttributeNodePopupMenu();
            }
            if (pm != null) {
                tree.showPopupMenu(pm);
            }
            return true;
        }
View Full Code Here


        refreshAction = new RefreshAction();
        installDefaultAction();
    }

    private KongaTree createTree() {
        KongaTree tree = new KongaTree(createModel());
        ScriptBuilderUtils.setTreeStyle(tree);
        tree.setCellRenderer(new PluginTreeNodeRenderer());
        tree.setSelectionMode(SelectionMode.SINGLE_TREE_SELECTION);
        return tree;
    }
View Full Code Here

        projectChangeSupport = new ProjectPropertyChangeSupport(model.getProject());
        projectChangeSupport.addPropertyChangeListener(new ChangeListener());
    }

    private KongaTree createTree() {
        KongaTree tree = new KongaTree(createModel());
        ScriptBuilderUtils.setTreeStyle(tree);
        tree.setCellRenderer(new Renderer());
        tree.setSelectionMode(KongaTree.SelectionMode.SINGLE_TREE_SELECTION);
        return tree;
    }
View Full Code Here

        selectionSource.removeSelectionListener(lst);
    }

    private KongaTree createTree() {
        KongaTreeModel model = new DefaultKongaTreeModel(new DefaultKongaTreeNode("Projects", true));
        KongaTree tree = new KongaTree(model);
        tree.setCellRenderer(new TreeNodeDecorRenderer());
        tree.setRootVisible(false);
        tree.setShowsRootHandles(true);
        tree.setSelectionMode(SelectionMode.SINGLE_TREE_SELECTION);
        return tree;
    }
View Full Code Here

        tree = createTree();
        treePanel = createTreePanel(leftActions, rightActions);
    }

    private KongaTree createTree() {
        KongaTree tree = new KongaTree(model);
        tree.setRootVisible(false);
        tree.setShowsRootHandles(true);
        tree.setCellRenderer(renderer);
        KongaTreeNode current = model.getRoot().getChildAt(0);
        tree.makeNodeExpanded(current);
        tree.asSelectionSource().setNodeObjectConverter(new UserObjectNodeObjectConverter(File.class));
        return tree;
    }
View Full Code Here

        tree.requestFocusInWindow();
    }

    private KongaTree createTree(EntityCollectionValidationResult result) {
        KongaTreeModel model = createTreeModel(result);
        KongaTree tree = new KongaTree(model);
        tree.setRowHeight(0);
        customizeTree(tree);
        return tree;
    }
View Full Code Here

        tree.setTransferHandler(h);
        tree.setDragEnabled(h != null);
    }

    private KongaTree createTree(int numberOfTables, boolean allowMultipleRoots) {
        KongaTree tree = new KongaTree(modelBuilder.noRelationshipsModel());
        tree.setRootVisible(false);
        tree.setCellRenderer(new Renderer(allowMultipleRoots));
        tree.setRowHeight(20);
        tree.setVisibleRowCount(Math.min(numberOfTables + 1, 20));
        tree.setSelectionMode(SelectionMode.DISCONTIGUOUS_TREE_SELECTION);
        tree.setToggleClickCount(-1);
        return tree;
    }
View Full Code Here

        tree = createTree(treeModel);
        createEditTrigger();
    }

    private KongaTree createTree(KongaTreeModel model) {
        KongaTree tree = new KongaTree(model);
        tree.setVisibleRowCount(8);
        installController(tree);
        return customize(tree);
    }
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

        openFolderAction = new OpenParentFolderAction();
        installCopyPathAction();
    }

    private KongaTree createTree() {
        KongaTree tree = new KongaTree();
        tree.setRootVisible(false);
        tree.setVisibleRowCount(6);
        tree.setShowsRootHandles(false);
        return tree;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.tree.KongaTree$LineStyle

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.