Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.List


        Label headerLabel = new Label(container, SWT.NULL);
        headerLabel.setText("The following catalogs are available in the project:");
       
        headerLabel.setLayoutData(new GridData());

        catalogList = new List(container, SWT.BORDER | SWT.V_SCROLL );
        catalogList.setLayoutData(new GridData(500, 200));
        catalogList.deselectAll();
       
        // add all catalogues to the list:
        final java.util.List<EObject> catalogs = Activator.getAccessLayer().getElements(project, "RuleCatalog");
View Full Code Here


        Label headerLabel = new Label(container, SWT.NULL);
        headerLabel.setText("The following models are available in the project:");
       
        headerLabel.setLayoutData(new GridData());

        modelList = new List(container, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL );
        modelList.setLayoutData(new GridData(400, 200));
        modelList.deselectAll();
       
        // add all catalogs to the list:
        final java.util.List<EObject> models = project.getModelElements();
View Full Code Here

        
        Label headerLabel = new Label(container, SWT.NULL);
        headerLabel.setText("The following rules are available:");       
        headerLabel.setLayoutData(new GridData());
       
        ruleList = new List(container, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL );
        ruleList.setLayoutData(new GridData(150, 200));
        ruleList.deselectAll();
       
        final java.util.List<EObject> rules = Activator.getAccessLayer().getElements(project, "Rule");
                       
View Full Code Here

        Label headerLabel = new Label(container, SWT.NULL);
        headerLabel.setText("The following catalogs are available in the project:");
       
        headerLabel.setLayoutData(new GridData());

        catalogList = new List(container, SWT.BORDER | SWT.V_SCROLL );
        catalogList.setLayoutData(new GridData(150, 200));
        catalogList.deselectAll();
       
        // add all catalogues to the list:
        final java.util.List<EObject> catalogs = Activator.getAccessLayer().getElements(project, "RuleCatalog");
View Full Code Here

      public void widgetSelected(SelectionEvent e) {
        refreshConfigurationList();
        MessageDialog.openInformation(parent.getShell(), "刷新", "刷新配置项成功!");
      }
    });
    configurationList = new List(this, SWT.BORDER|SWT.V_SCROLL|SWT.H_SCROLL);
    configurationList.setBounds(0, 40, 484, 400);

    configurationListener = new PropertyListener() {
      public void onPropertyChanged(final PropertyEvent event) {
        final PropertyInfo configuration = event.getPropertyInfo();
View Full Code Here

    refreshItem.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        refreshTransportationList(true);
      }
    });
    executionList = new List(this, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
    executionList.setBounds(0, 40, 484, 384);
    Label statusLabel = new Label(this, SWT.NONE);
    statusLabel.setImage(Images.getImage("time.gif"));
    statusLabel.setBounds(0, 424, 20, 20);
    final Label timeLabel = new Label(this, SWT.NONE);
View Full Code Here

        _labelList = _toolkit.createLabel(_listComposite, " ", SWT.CENTER);
        gridData = new GridData(SWT.CENTER, SWT.TOP, true, false, 1, 1);
        _labelList.setLayoutData(gridData);
        _labelList.setFont(ApplicationRegistry.getFont(FONT_NORMAL));
       
        _list = new List(_listComposite, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
        gridData = new GridData(SWT.FILL, SWT.FILL, true, true,1, 1);
        _list.setLayoutData(gridData);
       
    }
View Full Code Here

        final Label nameLabel = new Label(container, SWT.NONE);
        nameLabel.setLayoutData(new GridData(GridData.END,
                GridData.CENTER, false, false));
        nameLabel.setText("Column:");

        final List columnList = new List(container, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);
        columnList.setBounds(40, 20, 220, 100);
        columnList.setItems(columnTitle);

        columnList.addSelectionListener(
                new SelectionAdapter() {
                    public void widgetSelected (SelectionEvent e) {
                        selectedColumn.clear();
                        selectedColumn.addAll(Arrays.asList(columnList.getSelection()));
                    }});

        return container;
    }
View Full Code Here

          event.gc.drawImage(dogImage, 0, 0);
        }
      }
    });
   
    categories = new List(shell, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL);
    categories.setItems(new String[] { "Best of Breed", "Prettiest Female",
        "Handsomest Male", "Best Dressed", "Fluffiest Ears",
        "Most Colors", "Best Performer", "Loudest Bark",
        "Best Behaved", "Prettiest Eyes", "Most Hair", "Longest Tail",
        "Cutest Trick" });
View Full Code Here

    sportsLabel.setText("Sports played:");
    gridData = new GridData();
    gridData.horizontalSpan = 2;
    sportsLabel.setLayoutData(gridData);
   
    List sportsList = new List(shell, SWT.BORDER | SWT.MULTI);
    gridData = new GridData();
    gridData.horizontalSpan = 2;
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    gridData.verticalAlignment = SWT.FILL;
    gridData.grabExcessVerticalSpace = true;
    sportsList.setLayoutData(gridData);
    sportsList.add("Hockey");
    sportsList.add("Street Hockey");
       
    shell.pack();
    shell.open();

    while (!shell.isDisposed()) {
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.List

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.