Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Combo


    final GridData gridData = new GridData(GridData.FILL, GridData.CENTER, false, false);
    gridData.widthHint = 153;
    label12_1.setLayoutData(gridData);
    label12_1.setText("Configuration Add Event:");
   
    cConfigurationAddEvent = new Combo(eventGroup, SWT.NONE);
   
    cConfigurationAddEvent.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
    cConfigurationAddEvent.setItems(listener.getJobs());
   
    cConfigurationAddEvent.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        listener.setConfigurationAddEvent(cConfigurationAddEvent.getText());
      }
    });
    cConfigurationAddEvent.setText(listener.getConfigurationAddEvent());
   
   
    butBrowse = new Button(eventGroup, SWT.NONE);
    butBrowse.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
    butBrowse.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {           
        String jobname = IOUtils.openDirectoryFile(MergeAllXMLinDirectory.MASK_JOB);
        if(jobname != null && jobname.length() > 0) {
          cConfigurationAddEvent.setText(jobname);
        }
      }
    });
    butBrowse.setText("Browse");
   
    label12_2 = new Label(eventGroup, SWT.NONE);
    label12_2.setText("Configuration Modify Event:");
   
    cConfigurationModifyEvent = new Combo(eventGroup, SWT.NONE);
    cConfigurationModifyEvent.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
    cConfigurationModifyEvent.setItems(listener.getJobs());
    cConfigurationModifyEvent.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        listener.setConfigurationModifyEvent(cConfigurationModifyEvent.getText());
      }
    });
    cConfigurationModifyEvent.setText(listener.getConfigurationModifyEvent());
    butBrowse_1 = new Button(eventGroup, SWT.NONE);
    butBrowse_1.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
    butBrowse_1.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        String jobname = IOUtils.openDirectoryFile(MergeAllXMLinDirectory.MASK_JOB);
        if(jobname != null && jobname.length() > 0)
          cConfigurationModifyEvent.setText(jobname);
      }
    });
    butBrowse_1.setText("Browse");
   
    label12_3 = new Label(eventGroup, SWT.NONE);
    label12_3.setText("Configuration Delete Event:");
   
    cConfigurationDeleteEvent = new Combo(eventGroup, SWT.NONE);
    cConfigurationDeleteEvent.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
    cConfigurationDeleteEvent.setItems(listener.getJobs());
    cConfigurationDeleteEvent.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        listener.setConfigurationDeleteEvent(cConfigurationDeleteEvent.getText());
View Full Code Here


     */
    private void createCombo() {
        GridData gridData4 = new org.eclipse.swt.layout.GridData(GridData.FILL, GridData.CENTER, false, false);
        gridData4.widthHint = 300;

        cWeekdayNumber = new Combo(group, SWT.NONE);
        cWeekdayNumber.setItems(SpecificWeekdaysListener._daynames);
        cWeekdayNumber.setVisibleItemCount(8);
        cWeekdayNumber.select(0);
        cWeekdayNumber.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
        cWeekdays = new Combo(group, SWT.READ_ONLY);
        cWeekdays.setItems(new String[] {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"});
        cWeekdays.setText("Monday");
        cWeekdays.setVisibleItemCount(7);
        cWeekdays.setLayoutData(gridData4);
    }
View Full Code Here

        GridData gridData13 = new GridData();
        gridData13.horizontalAlignment = GridData.FILL; // Generated
        gridData13.grabExcessHorizontalSpace = true; // Generated
        gridData13.horizontalSpan = 2// Generated
        gridData13.verticalAlignment = GridData.CENTER; // Generated
        cReference = new Combo(group1, SWT.NONE);
        cReference.setLayoutData(gridData13); // Generated
        cReference.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent e) {
                applySettingStatus();
            }
View Full Code Here

    private void createCType() {
        GridData gridData15 = new GridData();
        gridData15.horizontalAlignment = GridData.FILL; // Generated
        gridData15.grabExcessHorizontalSpace = true; // Generated
        gridData15.verticalAlignment = GridData.CENTER; // Generated
        cType = new Combo(group1, SWT.READ_ONLY);
        cType.setLayoutData(gridData15); // Generated
        cType.addSelectionListener(new org.eclipse.swt.events.SelectionListener() {
            public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
                applySettingStatus();
            }
View Full Code Here

    group.setText("Mail");
    group.setLayout(gridLayout);
    Label label14 = new Label(group, SWT.NONE);
    label14.setText("Mail On Error");
   
    mailOnError = new Combo(group, SWT.READ_ONLY);
    mailOnError.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        mailOnDelayAfterError.setEnabled(mailOnError.getText().equals("yes") || mailOnWarning.getText().equals("yes"));
        listener.setValue("mail_on_error", mailOnError.getText(), "no");
      }
    });
    GridData gd_mailOnError = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
    gd_mailOnError.minimumWidth = 150;
    mailOnError.setLayoutData(gd_mailOnError);
    Label label1 = new Label(group, SWT.NONE);
    label1.setText("Mail On Warning");

    mailOnWarning = new Combo(group, SWT.READ_ONLY);   
    mailOnWarning.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        mailOnDelayAfterError.setEnabled(mailOnWarning.getText().equals("yes") || mailOnWarning.getText().equals("yes"));
        listener.setValue("mail_on_warning", mailOnWarning.getText(), "no");
      }
    });
    GridData gd_mailOnWarning = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
    gd_mailOnWarning.minimumWidth = 150;
    mailOnWarning.setLayoutData(gd_mailOnWarning);
    Label label3 = new Label(group, SWT.NONE);
    label3.setText("Mail On Success");

    mailOnSuccess = new Combo(group, SWT.READ_ONLY);
    mailOnSuccess.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        listener.setValue("mail_on_success", mailOnSuccess.getText(), "no");
      }
    });
    GridData gd_mailOnSuccess = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
    gd_mailOnSuccess.minimumWidth = 150;
    mailOnSuccess.setLayoutData(gd_mailOnSuccess);

   
    final Label mailOnProcessLabel = new Label(group, SWT.NONE);
    mailOnProcessLabel.setText("Mail On Process");

    mailOnProcess = new Combo(group, SWT.READ_ONLY);
    mailOnProcess.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        listener.setValue("mail_on_process", mailOnProcess.getText(), "no");
      }
    });
    GridData gd_mailOnProcess = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
    gd_mailOnProcess.minimumWidth = 150;
    mailOnProcess.setLayoutData(gd_mailOnProcess);

    final Label mailOnDelayLabel = new Label(group, SWT.NONE);
    mailOnDelayLabel.setText("Mail On Delay After Error");

    mailOnDelayAfterError = new Combo(group, SWT.READ_ONLY);
    mailOnDelayAfterError.setEnabled(mailOnError.getText().equals("yes") || mailOnWarning.getText().equals("yes"));
    mailOnDelayAfterError.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        listener.setValue("mail_on_delay_after_error", mailOnDelayAfterError.getText(), "no");
      }
    });
    mailOnDelayAfterError.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, true, false));

    final Label ddddLabel = new Label(group, SWT.HORIZONTAL | SWT.SEPARATOR);
    final GridData gridData_1 = new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1);
    gridData_1.heightHint = 8;
    ddddLabel.setLayoutData(gridData_1);
   

    final Label mailToLabel = new Label(group, SWT.NONE);
    mailToLabel.setText("Mail To");

   
   
    mailTo = new Text(group, SWT.BORDER);
    mailTo.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        mailTo.selectAll();
      }
    });
    mailTo.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        listener.setValue("log_mail_to", mailTo.getText());
      }
    });
    mailTo.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

   
    final Label mailCcLabel = new Label(group, SWT.NONE);
    mailCcLabel.setText("Mail CC");

    mailCC = new Text(group, SWT.BORDER);
    mailCC.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        mailCC.selectAll();
      }
    });
    mailCC.addModifyListener(new ModifyListener() {
       public void modifyText(final ModifyEvent e) {
         listener.setValue("log_mail_cc", mailCC.getText());
       }
    });
    final GridData gridData_2 = new GridData(GridData.FILL, GridData.CENTER, true, false);
    gridData_2.minimumWidth = 60;
    mailCC.setLayoutData(gridData_2);

    final Label mailBccLabel = new Label(group, SWT.NONE);
    mailBccLabel.setText("Mail BCC");

    GridData gridData = new GridData(GridData.FILL, GridData.CENTER, false, false);
    gridData.minimumWidth = 60;
    mailBCC = new Text(group, SWT.BORDER);
    mailBCC.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        mailBCC.selectAll();   
      }
    });
    mailBCC.setLayoutData(gridData);
    mailBCC.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        listener.setValue("log_mail_bcc", mailBCC.getText());
      }
    });

    final Label label_1 = new Label(group, SWT.HORIZONTAL | SWT.SEPARATOR);
    final GridData gridData_3 = new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1);
    gridData_3.heightHint = 8;
    label_1.setLayoutData(gridData_3);
   

    final Label logLevelLabel = new Label(group, SWT.NONE);
    logLevelLabel.setText("Log Level");

    LogLevel = new Combo(group, SWT.READ_ONLY);
    GridData gd_LogLevel = new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1);
    gd_LogLevel.minimumWidth = 150;
    LogLevel.setLayoutData(gd_LogLevel);
    LogLevel.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        listener.setValue("log_level", LogLevel.getText());
      }
    });

    final Label label_2 = new Label(group, SWT.HORIZONTAL | SWT.SEPARATOR);
    final GridData gridData_4 = new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1);
    gridData_4.heightHint = 8;
    label_2.setLayoutData(gridData_4);

    final Label historyLabel = new Label(group, SWT.NONE);
    historyLabel.setText("History");

    cboHistory = new Combo(group, SWT.READ_ONLY);
    cboHistory.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        listener.setValue("history", cboHistory.getText());
      }
    });
    GridData gd_cboHistory = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
    gd_cboHistory.minimumWidth = 150;
    cboHistory.setLayoutData(gd_cboHistory);

    final Label historyOnProcessLabel = new Label(group, SWT.NONE);
    historyOnProcessLabel.setText("History On Process");

    cboHistoryOnProcess = new Combo(group, SWT.NONE);
    cboHistoryOnProcess.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        setOnHistory();
      }
    });
    cboHistoryOnProcess.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit=Utils.isOnlyDigits(e.text);
      }
    });
    cboHistoryOnProcess.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
       
          cboHistoryOnProcess.setText(listener.getValue("history_on_process"));
       

       
       
      }
    });
    GridData gd_cboHistoryOnProcess = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
    gd_cboHistoryOnProcess.minimumWidth = 150;
    cboHistoryOnProcess.setLayoutData(gd_cboHistoryOnProcess);

    final Label historyWithLogLabel = new Label(group, SWT.NONE);
    historyWithLogLabel.setText("History With Log");

    cboHistoryWithLog = new Combo(group, SWT.READ_ONLY);
    cboHistoryWithLog.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        listener.setValue("history_with_log", cboHistoryWithLog.getText());
      }
    });
View Full Code Here

    private void createCResource() {
        GridData gridData2 = new GridData();
        gridData2.horizontalAlignment = GridData.FILL; // Generated
        gridData2.horizontalIndent = 7; // Generated
        gridData2.verticalAlignment = GridData.CENTER; // Generated
        cResource = new Combo(group, SWT.NONE);
        cResource.setLayoutData(gridData2); // Generated
        cResource.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent e) {
                listener.setResource(cResource.getText());
            }
View Full Code Here

    private void createCReference() {
        GridData gridData3 = new GridData();
        gridData3.horizontalAlignment = GridData.FILL; // Generated
        gridData3.grabExcessHorizontalSpace = true; // Generated
        gridData3.verticalAlignment = GridData.CENTER; // Generated
        cReference = new Combo(group, SWT.NONE);
        cReference.setLayoutData(gridData3); // Generated
        cReference.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent e) {
                setApplyStatus();
            }
View Full Code Here

    gridLayout_1.marginWidth = 0;
    gridLayout_1.marginHeight = 0;
    gridLayout_1.numColumns = 8;
    composite.setLayout(gridLayout_1);

    cboStarttime = new Combo(composite, SWT.READ_ONLY);
    final GridData gridData_3 = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
    cboStarttime.setLayoutData(gridData_3);
    cboStarttime.setItems(new String[] {SINGLE_START, REPEAT_TIME, ABSOLUTE_TIME });
    cboStarttime.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
View Full Code Here

    whenHolidayGroup.setText("When Holiday");
    final GridData gridData_4 = new GridData(GridData.FILL, GridData.FILL, true, false);
    whenHolidayGroup.setLayoutData(gridData_4);
    whenHolidayGroup.setLayout(new GridLayout());

    cboWhenHoliday = new Combo(whenHolidayGroup, SWT.READ_ONLY);
   
    cboWhenHoliday.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        listener.setWhenHoliday(cboWhenHoliday.getText(), bApply);       
      }
View Full Code Here

    private void createCParamsReference() {
        GridData gridData1 = new GridData();
        gridData1.horizontalAlignment = GridData.FILL; // Generated
        gridData1.grabExcessHorizontalSpace = true; // Generated
        gridData1.verticalAlignment = GridData.CENTER; // Generated
        cParamsReference = new Combo(group, SWT.NONE);
        cParamsReference.setLayoutData(gridData1); // Generated
        cParamsReference.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent e) {
                listener.setReference(cParamsReference.getText());
            }
View Full Code Here

TOP

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

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.