Package fr.soleil.comete.swt

Examples of fr.soleil.comete.swt.Tree


        GridData componentGridData = new GridData();
        componentGridData.verticalAlignment = SWT.BEGINNING;
        componentPanel.setLayoutData(componentGridData);

        Tree theComponent = new Tree(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(150, 450));

        root = new BasicTreeNode();
        root.setName("ROOT");

        childString = new String[4];
        for (int i = 0; i < childString.length; i++) {
            childString[i] = "Child " + i;
            child = new BasicTreeNode();
            child.setName(childString[i]);
            root.addNodes(child);
        }

        theComponent.setRootNode(root);

        Group testPanelIComponent = IComponentTestPanel.getTestPanel(mainComposite, theComponent);
        Group testTreePanel = ITreeTestPanel.getTestPanel(mainComposite, theComponent);

        GridData iComponentGridData = new GridData();
View Full Code Here


        GridData componentGridData = new GridData();
        componentGridData.verticalAlignment = SWT.BEGINNING;
        componentPanel.setLayoutData(componentGridData);


        Tree theComponent = new Tree(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(150, 450));

        root = new BasicTreeNode();
        root.setName("ROOT");

        childString = new String[4];
        for (int i = 0; i < childString.length; i++) {
            childString[i] = "Child " + i;
            child = new BasicTreeNode();
            child.setName(childString[i]);
            root.addNodes(child);
        }

        theComponent.setRootNode(root);
        theComponent.getControl().getItem(0).setExpanded(true);
        // ----------
        Group testPanel = getTestPanel(mainComposite, theComponent);

        GridData testPanelGridData = new GridData();
        testPanelGridData.grabExcessHorizontalSpace = true;
View Full Code Here

TOP

Related Classes of fr.soleil.comete.swt.Tree

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.