Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Combo


        groupSchedule.setLayoutData(new GridData(GridData.FILL, GridData.FILL, false, false));
        final GridLayout gridLayout_2 = new GridLayout();
        gridLayout_2.numColumns = 2;
        groupSchedule.setLayout(gridLayout_2);

        comSchedule = new Combo(groupSchedule, SWT.NONE);
        comSchedule.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(final SelectionEvent e) {           
            //listener.setSchedule(comSchedule.getText());
            if(init) return;
            listener.setSchedule(comSchedule.getText());
View Full Code Here


      gridLayout_1.marginRight = 5;
      gridLayout_1.marginLeft = 5;
      gridLayout_1.marginBottom = 5;
      schedulerGroup.setLayout(gridLayout_1);

      cboConnectname = new Combo(schedulerGroup, SWT.NONE);
      cboConnectname.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          if(!cboConnectname.getText().equalsIgnoreCase(listener.getCurrProfileName()) ) {
            //listener.disconnect();
            txtUrl.setText("");
View Full Code Here

    gridLayout.marginHeight = 0;
    gridLayout.horizontalSpacing = 0;
    composite.setLayout(gridLayout);


    cJobchain = new Combo(composite, SWT.NONE);

    cJobchain.setMenu(new sos.scheduler.editor.app.ContextMenu(cJobchain, dom, Editor.JOB_CHAIN).getMenu());
    cJobchain.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
    cJobchain.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        if (event)
          if(checkName()) {
            listener.setCommandAttribute("job_chain", cJobchain.getText());
            String curstate = listener.getCommandAttribute("state");
            tState.setItems(listener.getStates());                   
            tState.setText(curstate);

            cboStates.setItems(listener.getStates());
            cboStates.add("global");
            cboStates.setText("global");

            String curEndstate = listener.getCommandAttribute("end_state");
            cboEndState.setItems(listener.getStates());
            cboEndState.setText(curEndstate);
            butDetails.setEnabled(cJobchain.getText().length() > 0);
            cboStates.setEnabled(cJobchain.getText().length() > 0);
            existDetailsConfigurationsFile();
          }
      }
    });
    /*Button butBrowse = new Button(gOrder, SWT.NONE);
        butBrowse.setLayoutData(new GridData(GridData.END, GridData.CENTER, false, false));
        butBrowse.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(final SelectionEvent e) {           
            String jobname = IOUtils.openDirectoryFile(MergeAllXMLinDirectory.MASK_JOB_CHAIN);
            if(jobname != null && jobname.length() > 0) {
              cJobchain.setText(jobname);
            }
          }
        });
        butBrowse.setText("Browse");
     */


    final Label titleLabel = new Label(gOrder, SWT.NONE);
    final GridData gridData_6 = new GridData(GridData.BEGINNING, GridData.CENTER, false, false, 2, 1);
    gridData_6.widthHint = 47;
    titleLabel.setLayoutData(gridData_6);
    titleLabel.setText("Title");

    tTitle = new Text(gOrder, SWT.BORDER);
    tTitle.addFocusListener(new FocusAdapter() {         
      public void focusGained(final FocusEvent e) {
        tTitle.selectAll();
      }
    });
    tTitle.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        if (event)
          listener.setCommandAttribute("title", tTitle.getText());
      }
    });
    tTitle.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 5, 1));

    final Label priorityLabel = new Label(gOrder, SWT.NONE);
    priorityLabel.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, false, false, 2, 1));
    priorityLabel.setText("Priority");

    tPriority = new Text(gOrder, SWT.BORDER);
    tPriority.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        tPriority.selectAll();
      }
    });
    tPriority.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit = Utils.isOnlyDigits(e.text);
      }
    });
    tPriority.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        if (event)
          listener.setCommandAttribute("priority", tPriority.getText());
      }
    });
    tPriority.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 5, 1));

    final Label stateLabel = new Label(gOrder, SWT.NONE);
    stateLabel.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, false, false, 2, 1));
    stateLabel.setText("State");

    tState = new Combo(gOrder, SWT.BORDER);
    tState.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        if (event)
          listener.setCommandAttribute("state", tState.getText());
      }
    });
    tState.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 5, 1));

    final Label endStateLabel = new Label(gOrder, SWT.NONE);
    endStateLabel.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, false, false, 2, 1));
    endStateLabel.setText("End State");

    cboEndState = new Combo(gOrder, SWT.NONE);
    cboEndState.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        if (event)
          listener.setCommandAttribute("end_state", cboEndState.getText());
      }
    });
    cboEndState.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 5, 1));
    new Label(gOrder, SWT.NONE);
    new Label(gOrder, SWT.NONE);

    
    final Label stateLabel_1 = new Label(gOrder, SWT.NONE);
    stateLabel_1.setText("State:");

    cboStates = new Combo(gOrder, SWT.NONE);
    cboStates.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

    butRemove = new Button(gOrder, SWT.NONE);
    butRemove.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
View Full Code Here

    });
    new Label(gMain, SWT.NONE);
    label1 = new Label(gMain, SWT.NONE);
    label1.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, false, false, 2, 1));
    label1.setText("Job Title:");
    tTitle = new Combo(gMain, SWT.BORDER);
    tTitle.setLayoutData(new org.eclipse.swt.layout.GridData(GridData.FILL, GridData.CENTER, false, false, 3, 1));
    tTitle.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        if(init) return;
        listener.setTitle(tTitle.getText());
      }
    });
   
   
    tTitle.setItems(Options.getJobTitleList());
   
    new Label(gMain, SWT.NONE);
    label9 = new Label(gMain, SWT.NONE);
    label9.setText("Process Class:");
  
    butGoto = new Button(gMain, SWT.ARROW | SWT.DOWN);
    butGoto.setVisible(listener.get_dom() != null && !listener.get_dom().isLifeElement());
    butGoto.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        if(cProcessClass.getText().length() > 0)
          ContextMenu.goTo(cProcessClass.getText(), listener.get_dom(), Editor.PROCESS_CLASSES);
      }
    });
    butGoto.setAlignment(SWT.RIGHT);
   
    cProcessClass = new Combo(gMain, SWT.NONE);
    cProcessClass.setMenu(new ContextMenu(cProcessClass, listener.get_dom(), Editor.PROCESS_CLASSES).getMenu());
   
    cProcessClass.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
       
View Full Code Here

      }
    });
    butIsLifeFile.setLayoutData(new GridData());
    butIsLifeFile.setText("from Hot Folder");
   
    tInclude = new Combo(gInclude, SWT.BORDER);
    tInclude.setCapture(true);
    tInclude.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {       
        butIsLifeFile.setSelection(false);
      }
View Full Code Here

        tParaValue.setBounds(0, 2,composite.getBounds().width, tParaName.getBounds().height);
      }
    });
    composite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));

    cSource = new Combo(composite, SWT.READ_ONLY);
    cSource.setItems(new String[] { "order", "task" });

    cSource.setBounds(0, 0,250, 21);

View Full Code Here

    });
    final GridData gridData_5 = new GridData(GridData.FILL, GridData.CENTER, false, false);
    addButton.setLayoutData(gridData_5);
    addButton.setText("<- Add <-");
   
    cSignals = new Combo(gMain, SWT.NONE)
    cSignals.setItems(new String[] {"SIGHUP", "SIGINT", "SIGQUIT", "SIGILL", "SIGTRAP", "SIGABRT", "SIGIOT", "SIGBUS", "SIGFPE", "SIGKILL", "SIGUSR1", "SIGSEGV", "SIGUSR2", "SIGPIPE", "SIGALRM", "SIGTERM", "SIGSTKFLT", "SIGCHLD", "SIGCONT", "SIGSTOP", "SIGTSTP", "SIGTTIN", "SIGTTOU", "SIGURG", "SIGXCPU", "SIGXFSZ", "SIGVTALRM", "SIGPROF", "SIGWINCH", "SIGPOLL", "SIGIO", "SIGPWR", "SIGSYS."});
    final GridData gridData_4 = new GridData(GridData.FILL, GridData.BEGINNING, true, false);
    cSignals.setLayoutData(gridData_4);
    label17 = new Label(gMain, SWT.NONE);
    final GridData gridData_7 = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
    gridData_7.widthHint = 41;
    label17.setLayoutData(gridData_7);
    label17.setText("Priority:");
   
    sPriority = new Combo(gMain, SWT.NONE);
    sPriority.setItems(new String[] { "idle", "below_normal", "normal", "above_normal", "high" });
    sPriority.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit = (Utils.isOnlyDigits(e.text) || e.text.equals("idle") || e.text.equals("below_normal")
            || e.text.equals("normal") || e.text.equals("above_normal") || e.text.equals("high"));
       
      }
    });
    final GridData gridData_1 = new GridData(GridData.FILL, GridData.CENTER, true, false);
    gridData_1.verticalIndent = -1;
    sPriority.setLayoutData(gridData_1);
    sPriority.addModifyListener(new ModifyListener() {
     
      public void modifyText(final ModifyEvent e) {
        if(init) return;
        Utils.setBackground(-20, 20, sPriority);
        listener.setPriority(sPriority.getText());
      }
    });
    new Label(gMain, SWT.NONE);
    new Label(gMain, SWT.NONE);

    final Label visibleLabel = new Label(gMain, SWT.NONE);
    visibleLabel.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, true, false));
    visibleLabel.setText("Visible:");

    comVisible = new Combo(gMain, SWT.READ_ONLY);
    comVisible.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
    comVisible.setItems(new String[] { "", "yes", "no", "never" });
    comVisible.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        if(init) return;
View Full Code Here

    });
    final GridData gridData_5 = new GridData(GridData.FILL, GridData.FILL, true, true, 5, 3);
    gridData_5.heightHint = 73;
    txtParamNote.setLayoutData(gridData_5);

    comboLanguage = new Combo(parameterGroup, SWT.READ_ONLY);
    comboLanguage.setItems(new String[] {"de", "en"});
    final GridData gridData_7 = new GridData(GridData.FILL, GridData.BEGINNING, false, true);
    comboLanguage.setLayoutData(gridData_7);
    comboLanguage.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
View Full Code Here

        label2.setText("Order:"); // Generated
        createCOrder();
        label3 = new Label(group, SWT.NONE);
        label3.setText("Tasks:"); // Generated
        GridData gridData3 = new GridData(200, SWT.DEFAULT);
        cTasks = new Combo(group, SWT.BORDER | SWT.READ_ONLY);
        cTasks.setLayoutData(gridData3); // Generated
        cTasks.addSelectionListener(new org.eclipse.swt.events.SelectionListener() {
            public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
                listener.setTasks(cTasks.getText());
            }
View Full Code Here

    private void createCOrder() {
        GridData gridData2 = new GridData();
        gridData2.horizontalAlignment = GridData.BEGINNING; // Generated
        gridData2.widthHint = 200; // Generated
        gridData2.verticalAlignment = GridData.CENTER; // Generated
        cOrder = new Combo(group, SWT.BORDER | SWT.READ_ONLY);
        cOrder.setLayoutData(gridData2); // Generated
        cOrder.addSelectionListener(new org.eclipse.swt.events.SelectionListener() {
            public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
                listener.setOrder(cOrder.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.