Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.List


     * @param parent the composite parent.
     * @param style the list style.
     * @return the list.
     */
    public List createList( Composite parent, int style ) {
        List list = new org.eclipse.swt.widgets.List(parent, style);
        return list;
    }
View Full Code Here


    private void createListContent(Composite parent) {
        listComposite = new Composite(parent, SWT.NONE);
        listComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
        listComposite.setLayout(new GridLayout(2, false));
       
        representationList = new List(listComposite, SWT.SINGLE | SWT.DEFAULT);
        representationList.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
        representationList.setItems(getGraphicRepresentations());
        representationList.addSelectionListener(new SelectionListener() {

            public void widgetDefaultSelected( SelectionEvent e ) {
View Full Code Here

    gridData = new GridData(GridData.FILL_HORIZONTAL);
   
    Map templates = PrintingPlugin.getDefault().getTemplateFactories();

    list = new List(composite, SWT.SINGLE|SWT.BORDER);
    list.setLayoutData(gridData);
   
    Iterator iter = templates.entrySet().iterator();
    for(int i = 0; iter.hasNext(); i++) {
        Map.Entry entry = (Map.Entry) iter.next();
View Full Code Here

        GridData persisterData = new GridData(GridData.FILL_BOTH);
        persisterData.widthHint = 200;
        converterGroup.setLayoutData(persisterData);

        converterListComponent =
          new List(converterGroup, SWT.H_SCROLL | SWT.V_SCROLL | SWT.SINGLE);
        initializeConverterListComponent();
        converterListComponent.addMouseListener(new MouseAdapter() {
          public void mouseDoubleClick(MouseEvent mouseEvent) {
            List list = (List)mouseEvent.getSource();
            int selection = list.getSelectionIndex();
           
            if (selection != -1) {
              selectionMade(selection);
            }
          }
        });
        converterListComponent.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(SelectionEvent selectionEvent) {
            List list = (List)selectionEvent.getSource();
            int selection = list.getSelectionIndex();

            if (selection != -1) {
              updateDetailPane(converters[selection]);
            }
          }
View Full Code Here

    validatorGroup.setLayout(new FillLayout());       
    GridData validatorListGridData = new GridData(GridData.FILL_BOTH);
    validatorListGridData.widthHint = 200;
    validatorGroup.setLayoutData(validatorListGridData);

    this.validatorList = new List(validatorGroup, SWT.H_SCROLL |SWT.V_SCROLL | SWT.SINGLE);
    // initPersisterArray();
    initializePersisterList();
    this.validatorList.addMouseListener(new MouseAdapter() {
      public void mouseDoubleClick(MouseEvent mouseEvent) {
        List list = (List)mouseEvent.getSource();
        int selection = list.getSelectionIndex();

        if (selection != -1) {
          selectionMade(selection);
        }
      }
    });

    this.validatorList.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent selectionEvent) {
        List list = (List)selectionEvent.getSource();
        int selection = list.getSelectionIndex();

        if (selection != -1) {                   
          // updateDetailPane(validatorReferences[selection]);
        }               
      }                     
View Full Code Here

        GridData persisterData = new GridData(GridData.FILL_BOTH);
        persisterData.widthHint = 200;
        converterGroup.setLayoutData(persisterData);

        converterListComponent =
          new List(converterGroup, SWT.H_SCROLL | SWT.V_SCROLL | SWT.SINGLE);
        initializeConverterListComponent();
        converterListComponent.addMouseListener(new MouseAdapter() {
          public void mouseDoubleClick(MouseEvent mouseEvent) {
            List list = (List)mouseEvent.getSource();
            int selection = list.getSelectionIndex();
           
            if (selection != -1) {
              selectionMade(selection);
            }
          }
        });
        converterListComponent.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(SelectionEvent selectionEvent) {
            List list = (List)selectionEvent.getSource();
            int selection = list.getSelectionIndex();

            if (selection != -1) {
              updateDetailPane(converters[selection]);
            }
          }
View Full Code Here

      Collection<String> unorderedOptionLabels,
      Map<String, T> optionValuesByLabels,
      Composite parent,
      int style) throws UniqueNameException {
    java.util.List<String> orderedOptionLabels = new ArrayList<String>(unorderedOptionLabels);
    List list = new List(parent, style | SWT.SINGLE);
    SingleListSelectionDataSynchronizer<T> dataSynchronizer =
      new SingleListSelectionDataSynchronizer<T>(
        list, selectedIndex, orderedOptionLabels, optionValuesByLabels);
    SWTModelField<T, List, SingleListSelectionDataSynchronizer<T>> field =
      new SWTModelField<T, List, SingleListSelectionDataSynchronizer<T>>(
View Full Code Here

        StatusAdapter statusAdapter) {

      Label label = new Label(parent, SWT.NONE);
      label.setText("Title");

      list = new List(parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);
      GridData gd = new GridData(GridData.FILL_BOTH);
      gd.grabExcessHorizontalSpace = true;
      gd.grabExcessVerticalSpace = true;
      gd.widthHint = 250;
      list.setLayoutData(gd);
View Full Code Here

     * @see org.eclipse.debug.ui.ILaunchConfigurationTab#createControl(org.eclipse.swt.widgets.Composite)
     */
    public void createControl(Composite parent) {
        Label label = new Label(parent, SWT.NONE);
        label.setText("PYTHONPATH that will be used in the run:");
        fPythonPathList = new List(parent, SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL | SWT.H_SCROLL);

        GridData gd = new GridData(GridData.FILL_BOTH);
        fPythonPathList.setLayoutData(gd);
    }
View Full Code Here

    {
    Composite root = new Composite(parent,SWT.NULL);
    root.setLayout(new GridLayout(1, true));
   
    //add the server list GUI object
    serverList = new List(root,SWT.SINGLE | SWT.V_SCROLL);
    GridData d = new GridData();
    d.widthHint = 250;
    d.heightHint = 250;
    serverList.setLayoutData(d);
    //register to get notified when the list of servers changes
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.