Package org.jitterbit.application.ui.widget.tree

Examples of org.jitterbit.application.ui.widget.tree.TreePanel


        selectionSupport.addListener(lst);
    }

    @Override
    public void decorate(UiCanvas canvas) {
        TreePanel panel = new TreePanel(PackageResources.TreeSelector.TITLE, tree);
        panel.activated();
        panel.decorate(canvas);
    }
View Full Code Here


            col.add(row);
        }

        private void addTree() {
            col.setFillOut();
            TreePanel panel = new TreePanelImpl(title, tree.getAdaptee());
            col.setFillOut();
            col.add(panel);
        }
View Full Code Here

        new Builder().update();
    }

    @Override
    public void decorate(UiCanvas canvas) {
        TreePanel panel = new TreePanel("Recent projects", tree);
        panel.decorate(canvas);
    }
View Full Code Here

    public void setDefaultAction(SelectionAction a) {
        selectionSource.setDefaultAction(a);
    }

    public TreePanel inTreePanel(String title) {
        TreePanel p = new TreePanel(title, tree);
        Border border = new BorderBuilder(StyleSheet.TreeTitleBorder).empty(2, 0, 2, 0);
        return p.setRootVisible(true).setIncludeToolBar(false).setTitlePanelBorder(border);
    }
View Full Code Here

    }

    @Override
    public void decorate(UiCanvas canvas) {
        BorderLayoutBuilder layout = new BorderLayoutBuilder(10, 10).setOpaque(false);
        TreePanel treePanel = new TreePanel("Users & Groups", tree);
        treePanel.setRootVisible(true);
        layout.center(treePanel);
        layout.decorate(canvas);
    }
View Full Code Here

        tree.expandAll();
        return tree;
    }

    private TreePanel createTreePanel() {
        TreePanel treePanel = new TreePanel(Strings.get("Deploy.Tree.Title"), tree);
        treePanel.setRootVisible(false);
        treePanel.setEnabled(tree.isEnabled());
        treePanel.showFilterField(new ProjectPathFilterFunction(validationModel.getProject()), false);
        return treePanel;
    }
View Full Code Here

        return structs;
    }

    @Override
    public void decorate(UiCanvas canvas) {
        TreePanel panel = new TreePanel(title, tree.getAdaptee());
        panel.setDropdownActions(new Action[] { tree.getCheckAllAction(null), tree.getUncheckAllAction(null) });
        if (disableReadOnlyAttrs) {
            decorateWithReadOnlyInfo(panel, canvas);
        } else {
            panel.decorate(canvas);
        }
    }
View Full Code Here

            }
        }
    }

    private void layoutWithToolbar(UiCanvas canvas) {
        TreePanel treePanel = new TreePanel(toolbarTitle, tree);
        treePanel.setTitlePanelBackground(Colors.JITTERBIT_BLUE);
        treePanel.setTitleStyle(TextStyle.newColor(TextStyles.AdminHintBold, Color.WHITE));
        if (treeFilterFunction != null) {
            treePanel.showFilterField(treeFilterFunction, false);
            treePanel.setFilterInterceptor(new FilterFieldInterceptor());
            treePanel.setLayoutFilterFieldBelowTheTree(true);
        }
        treePanel.decorate(canvas);
    }
View Full Code Here

    }
   
    public DeployedEntityDescriptorTree(DeployedEntityDescriptor project, String caption) {
        tree = new DeployedEntityDescriptorTreeFactory().newTree(project);
        selectionDelegate = createSelectionDelegate(tree);
        treePanel = new TreePanel(caption, tree);
        treePanel.activated();
    }
View Full Code Here

        tree.setVisibleRowCount(6);
        return tree;
    }

    private TreePanel createTreePanel() {
        TreePanel panel = new TreePanel("Deployed Projects", tree) {

            @Override
            protected JButton[] getToolBarButtons() {
                KList<JButton> btns = KList.newList();
                btns.add(new KongaButton(createSearchAction()).makeToolbarButton());
                btns.add(null);
                btns.addAll(super.getToolBarButtons());
                return btns.toArray(new JButton[btns.size()]);
            }
        };
        panel.setRootVisible(true);
        panel.setLayoutFilterFieldBelowTheTree(true);
        return panel;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.widget.tree.TreePanel

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.