Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.List


       
        GridData fillBoth = new GridData(GridData.FILL_BOTH);
        fillBoth.minimumHeight = 100;
        fillBoth.verticalSpan = 2;
        fillBoth.horizontalSpan = 2;
        _lstLibraries = new List(sectionClient, SWT.BORDER|SWT.MULTI);
        _lstLibraries.setLayoutData(fillBoth);
        _lstLibraries.setItems(_model.getLibraryNames());
       
        _btnAddLibrary = toolkit.createButton(sectionClient, "add...", SWT.PUSH);
        _btnAddLibrary.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
View Full Code Here


        sectionClient.setLayout(sectionLayout);
     
        GridData fillBoth = new GridData(GridData.FILL_BOTH);
        fillBoth.minimumHeight = 100;
        fillBoth.verticalSpan = 2;
        _lstTomcatLibraries = new List(sectionClient, SWT.BORDER|SWT.MULTI);
        _lstTomcatLibraries.setLayoutData(fillBoth);
        _lstTomcatLibraries.setItems(_model.getTomcatLibraryNames());
       
        _btnAddTomcatLibrary = toolkit.createButton(sectionClient, "add...", SWT.PUSH);
        _btnAddTomcatLibrary.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
View Full Code Here

      public void widgetSelected(SelectionEvent event) {
        sharing_manager.loadCompletedFiles();
      }
    });
   
    shared_dir_list = new List (dir_list_content, SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL | SWT.H_SCROLL);
    shared_dir_list.setLayoutData(new GridData(GridData.FILL_BOTH));
   
    shared_dir_list.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent event) {
        String selected_dir = shared_dir_list.getSelection()[0];
View Full Code Here

   
    Label info = new Label(shell,SWT.NONE);
    info.setFont(skin.getLabelFont());
    info.setText(_._("alreadyexistdirswindow.label.info"));
   
    List file_list = new List(shell,SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
    file_list.setLayoutData(new GridData(GridData.FILL_BOTH));
    for(File file : list)
      file_list.add(file.getAbsolutePath());
   
    Button button_ok = new Button(shell,SWT.NONE);
    button_ok.setText(_._("alreadyexistdirswindow.button.ok"));
    button_ok.setImage(SWTImageRepository.getImage("ok.png"));
    GridData data = new GridData();
View Full Code Here

        final Label hhmmssLabel_3 = new Label(jobGroup, SWT.NONE);
        hhmmssLabel_3.setLayoutData(new GridData());
        hhmmssLabel_3.setText("hh:mm:ss");

        list = new List(jobGroup, SWT.BORDER);
        list.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(final SelectionEvent e) {
            if(list.getSelectionIndex()> 0) {
              butRemove.setEnabled(true);
            }
View Full Code Here

    });
    final GridData gridData = new GridData(GridData.FILL, GridData.FILL, true, false, 2, 1);
    gridData.heightHint = 104;
    txtExpression.setLayoutData(gridData);

    list = new List(newFolderShell, SWT.BORDER);
   
    list.addMouseListener(new MouseAdapter() {
      public void mouseDoubleClick(final MouseEvent e) {
        if(list.getSelectionCount() > 0) {
          String sel = list.getSelection()[0];
          txtExpression.insert(sel);
        }
      }
    });
    final GridData gridData_1 = new GridData(GridData.FILL, GridData.FILL, true, true);
    list.setLayoutData(gridData_1);

    listOfIds = new List(newFolderShell, SWT.BORDER);
    listOfIds.addMouseListener(new MouseAdapter() {
      public void mouseDoubleClick(final MouseEvent e) {
        if(listOfIds.getSelectionCount() > 0) {
          String sel = listOfIds.getSelection()[0] + " ";
          txtExpression.insert(sel);
View Full Code Here

                //if(parent_.getName().equals("config"))
                //  _main.expandItem("Weekdays");
                read();
            }
        });
        lUsedDays = new List(group, SWT.BORDER);
        lUsedDays.setLayoutData(gridData);
        lUsedDays.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
            public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
              listOfGroup.removeAll();
                bRemove.setEnabled(lUsedDays.getSelectionCount() > 0);
                boolean isGroup = false;
                if(lUsedDays.getSelectionCount() > 0) {
                  //String[] split = lUsedDays.getSelection()[0].split(" ");
                 
                  String[] split = null;
                  if(_type == DaysListener.SPECIFIC_MONTHS)
                    split = lUsedDays.getSelection()[0].split(" ");
                    else if(_type == DaysListener.ULTIMOS)
                      split = listener.getNormalizedUltimos(lUsedDays.getSelection()[0]);
                    else
                      split = lUsedDays.getSelection()[0].split(" ");
                 
                  if(split.length > 0) {
                    isGroup = true;                   
                    listOfGroup.setItems(split);                   
                  }
                }
               
                setEnabledGroupElement(isGroup);
                newGroup= false;
            }
        });
        bRemove = new Button(group, SWT.NONE);
        bRemove.setText(_removeLabel[_type]);
        bRemove.setEnabled(false);
        bRemove.setLayoutData(gridData3);
        bRemove.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
            public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
              newGroup = false;             
              delete();
              listOfGroup.removeAll();
            }
        });

        listOfDays = new List(group, SWT.BORDER);
        listOfDays.setItems(listener.getAllDays());
        listOfDays.addMouseListener(new MouseAdapter() {
          public void mouseDoubleClick(final MouseEvent e) {
            addGroupDay();
          }
        });
        final GridData gridData_2 = new GridData(GridData.FILL, GridData.FILL, true, false, 2, 3);
        gridData_2.minimumWidth = 30;
        listOfDays.setLayoutData(gridData_2);
        new Label(group, SWT.NONE);

        listOfGroup = new List(group, SWT.BORDER);
        listOfGroup.addMouseListener(new MouseAdapter() {
          public void mouseDoubleClick(final MouseEvent e) {
            removeGroupDay();
            if(listOfGroup.getItemCount() > 0)
                   butApplyGroup.setEnabled(true);
View Full Code Here

    final GridData gridData32 = new GridData(GridData.FILL, GridData.CENTER, false, false, 7, 1);
    gridData32.heightHint = 10;
    label3.setLayoutData(gridData32);
    label3.setText("Label");
   
    lDates = new List(group, SWT.BORDER);
    lDates.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        bRemoveDate.setEnabled(lDates.getSelectionCount() > 0);
      }
    });
View Full Code Here

        });

        label2 = new Label(group, SWT.SEPARATOR | SWT.HORIZONTAL);
        label2.setText("Label");
        label2.setLayoutData(gridData5);
        lUsedDays = new List(group, SWT.BORDER);
        lUsedDays.setLayoutData(gridData);
        lUsedDays.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
            public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
                bRemove.setEnabled(lUsedDays.getSelectionCount() > 0);
            }
View Full Code Here

        }
      });
      addPeriodButton.setText("Add Period");     

      {
        list = new List(shell, SWT.V_SCROLL | SWT.BORDER);
        list.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(final SelectionEvent e) {
            if(list.getSelectionIndex() > -1) {
              removeButton.setEnabled(true);
            }
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.