Examples of KongaTree


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

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

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

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

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

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

     *            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

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

        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

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

        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

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

            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

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

    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

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

        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

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

    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
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.