Package org.jitterbit.ui.widget.tree

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


        PanelTestFrame frame = new PanelTestFrame(tree, true);
        frame.publish();
    }
   
    private JTree createTree() {
        JTree tree = new KongaTree(createTreeModel());
        tree.setCellRenderer(new TreeNodeDecorRenderer());
        ToolTipManager.sharedInstance().registerComponent(tree);
        return tree;
    }
View Full Code Here


        }
    }
   
    private KongaTree createTree(IntegrationProject project) {
        TreeSelectorTreeFactory factory = new TreeSelectorTreeFactory();
        KongaTree tree = factory.newTree(project);
        customizeTree(tree);
        return tree;
    }
View Full Code Here

        return tree;
    }
   
    private KongaTree createTree(JmsMessage msg) {
        TreeSelectorTreeFactory factory = new TreeSelectorTreeFactory();
        KongaTree tree = factory.newTree(msg);
        customizeTree(tree);
        return tree;
    }
View Full Code Here

     *            class should be included
     */
    public LdapStructureEntryTree(LdapStructureEntryNode entryNode, boolean selectedAttributesOnly) {
        this.entryNode = entryNode;
        treeModel = createModel(entryNode, selectedAttributesOnly);
        tree = new KongaTree(treeModel);
        tree.setCellRenderer(new TreeNodeDecorRenderer());
        selectionSource = new TreeSelectionSource(tree);
    }
View Full Code Here

        filterField = createFilterField();
    }

    private KongaTree createTree() {
        DefaultKongaTreeModel model = new DefaultKongaTreeModel(createRootNode());
        KongaTree tree = new KongaTree(model);
        tree.setDragEnabled(true);
        tree.setToolTipsEnabled(true);
        tree.setTransferHandler(new TransferHandlerImpl());
        tree.setCellRenderer(new Renderer());
        tree.setRootVisible(false);
        DefaultComponentController<KongaTree> ctrl = new DefaultComponentController<KongaTree>();
        ctrl.setPopupMenuRequestHandler(new ContextMenuHandler());
        ctrl.install(tree);
        return tree;
    }
View Full Code Here

        KongaTreeModel model = newTreeModel(msg);
        return createTree(model);
    }

    private KongaTree createTree(KongaTreeModel model) {
        KongaTree tree = new KongaTree(model);
        tree.setCellRenderer(new Renderer());
        tree.setRootVisible(false);
        return tree;
    }
View Full Code Here

            return COPY;
        }

        @Override
        protected Transferable createTransferable(JComponent c) {
            KongaTree tree = (KongaTree) c;
            KList<KongaTreeNode> nodes = tree.getSelectedNodes().keepAll(new InstanceOfPredicate(DataElementNode.class));
            switch (nodes.size()) {
            case 0:
                return null;
            case 1:
                String name = nameExtractor.apply(nodes.get(0));
View Full Code Here

    AttributeSelectionModel getModel() {
        return model;
    }

    private CheckBoxTree createTree(AttributeSelectionModel model) {
        KongaTree tree = new TreeImpl(model);
        tree.setPainter(new TreeDecorator());
        tree.setRootVisible(false);
        tree.setShowsRootHandles(true);
        tree.setCellRenderer(new TreeNodeDecorRenderer());
        CheckBoxTree cbt = new CheckBoxTree(tree);
        cbt.checkAll();
        cbt.setPopupMenuHandler(new PopupHandler());
        return cbt;
    }
View Full Code Here

        selSource = new TreeSelectionSource(tree);
        selSource.setNodeObjectConverter(new UserObjectNodeObjectConverter(Function.class));
    }

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

    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

TOP

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

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.