Examples of SwimlaneElement


Examples of org.jbpm.ui.orgfunctions.SwimlaneElement

        CTabItem tabItem1 = new CTabItem(typeTabFolder, SWT.NONE);
        tabItem1.setText(Messages.getString("tab.constructor.relation"));
        tabItem1.setControl(composite1);
       
        {
            SwimlaneElement swimlaneElement = swimlaneElements.get(0);
            Composite composite = new Composite(composite1, SWT.NONE);
            composite.setLayout(new GridLayout());
            swimlaneElement.createGUI(composite);
            swimlaneElement.addElementListener(this);
            for (SwimlaneElement childElement : swimlaneElement.getChildren()) {
                childElement.createGUI(swimlaneElement.getClientArea());
            }
        }
       
        Composite composite2 = new Composite(typeTabFolder, SWT.NONE);
        composite2.setLayout(new GridLayout());
        CTabItem tabItem2 = new CTabItem(typeTabFolder, SWT.NONE);
        tabItem2.setText(Messages.getString("tab.constructor.orgfunction"));
        tabItem2.setControl(composite2);

        orgFunctionsTabFolder = new CTabFolder(composite2, SWT.TOP | SWT.BORDER);
        orgFunctionsTabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));

        for (int i=1; i<swimlaneElements.size(); i++) {
            SwimlaneElement swimlaneElement = swimlaneElements.get(i);
            Composite composite = new Composite(orgFunctionsTabFolder, SWT.NONE);
            composite.setLayout(new GridLayout());
            swimlaneElement.createGUI(composite);
            swimlaneElement.addElementListener(this);
            for (SwimlaneElement childElement : swimlaneElement.getChildren()) {
                childElement.createGUI(swimlaneElement.getClientArea());
            }

            CTabItem tabItem = new CTabItem(orgFunctionsTabFolder, SWT.NONE);
            tabItem.setText(swimlaneElement.getDisplayName());
            tabItem.setControl(composite);
        }

        boolean rel = configuration != null && configuration.indexOf("@") == 0;
        typeTabFolder.setSelection(rel ? 0 : 1);
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.