Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Combo


            }
          }
        });
        optEveryWeeksdays.setText(WEEK_DAY);

        comboEveryWeekdays = new Combo(jobGroup, SWT.NONE);       
        comboEveryWeekdays.setItems(DaysListener.getWeekdays());
        comboEveryWeekdays.select(0);
        comboEveryWeekdays.setEnabled(false);
        final GridData gridData_17 = new GridData(GridData.FILL, GridData.CENTER, true, false);
        gridData_17.widthHint = 148;
        comboEveryWeekdays.setLayoutData(gridData_17);

        final Label atLabel_2 = new Label(jobGroup, SWT.NONE);
        atLabel_2.setLayoutData(new GridData(37, SWT.DEFAULT));
        atLabel_2.setAlignment(SWT.RIGHT);
        atLabel_2.setText("at");

        txtWeekAtHour = new Text(jobGroup, SWT.CENTER | SWT.BORDER);       
        txtWeekAtHour.addModifyListener(new ModifyListener() {
          public void modifyText(final ModifyEvent e) {           
            if(!checkTime(txtWeekAtHour.getText(), "hour")) {
              txtWeekAtHour.setBackground(Options.getRequiredColor());
              txtWeekAtHour.setFocus();
            } else {
              txtWeekAtHour.setBackground(null);
            }
          }
        });
        final GridData gridData_6 = new GridData(GridData.FILL, GridData.CENTER, true, false);
        gridData_6.minimumWidth = 25;
        gridData_6.widthHint = 0;
        txtWeekAtHour.setLayoutData(gridData_6);

        final Label label_3 = new Label(jobGroup, SWT.NONE);
        label_3.setLayoutData(new GridData());
        label_3.setText(":");

        txtWeekAtMinutes = new Text(jobGroup, SWT.CENTER | SWT.BORDER);
        txtWeekAtMinutes.addModifyListener(new ModifyListener() {
          public void modifyText(final ModifyEvent e) {           
            if(!checkTime(txtWeekAtMinutes.getText(), "minutes")) {
              txtWeekAtMinutes.setBackground(Options.getRequiredColor());
              txtWeekAtMinutes.setFocus();
            }else {
              txtWeekAtMinutes.setBackground(null);
            }
          }
        });
        final GridData gridData_11 = new GridData(GridData.FILL, GridData.CENTER, false, false);
        gridData_11.widthHint = 5;
        gridData_11.minimumWidth = 25;

        final GridData gridData_9 = new GridData(11, SWT.DEFAULT);
        gridData_9.minimumWidth = 25;

        final GridData gridData_3_2 = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
        gridData_3_2.minimumWidth = 25;
        txtWeekAtMinutes.setLayoutData(gridData_3_2);

        final Label label_1_2 = new Label(jobGroup, SWT.NONE);
        label_1_2.setLayoutData(new GridData());
        label_1_2.setText(":");

        txtWeekAtSecound = new Text(jobGroup, SWT.CENTER | SWT.BORDER);
        txtWeekAtSecound.addModifyListener(new ModifyListener() {
          public void modifyText(final ModifyEvent e) {           
            if(!checkTime(txtWeekAtSecound.getText(), "secound")) {
              txtWeekAtSecound.setBackground(Options.getRequiredColor());
              txtWeekAtSecound.setFocus();
            } else {
              txtWeekAtSecound.setBackground(null);
            }
          }
        });
        final GridData gridData_12 = new GridData(GridData.FILL, GridData.CENTER, false, false);
        gridData_12.widthHint = 2;
        gridData_12.minimumWidth = 25;

        final GridData gridData_10 = new GridData(10, SWT.DEFAULT);
        gridData_10.minimumHeight = 25;

        final GridData gridData_4_2 = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
        gridData_4_2.minimumWidth = 25;
        txtWeekAtSecound.setLayoutData(gridData_4_2);

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

        {
          optEveryMonths = new Button(jobGroup, SWT.CHECK);
          optEveryMonths.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(final SelectionEvent e) {
              if(optEveryMonths.getSelection()) {
                butAdd.setEnabled(true);
                comboMonth.setEnabled(true);
                txtMonthAtHour.setEnabled(true);
                txtMonthAtMinutes.setEnabled(true);
                txtMonthAtSecound.setEnabled(true);
              } else {
                comboMonth.setEnabled(false);
                txtMonthAtHour.setEnabled(false);
                txtMonthAtMinutes.setEnabled(false);
                txtMonthAtSecound.setEnabled(false);
              }
            }
          });
          optEveryMonths.setText(MONTH_DAY);
        }

        {
          comboMonth = new Combo(jobGroup, SWT.NONE);         
          comboMonth.setItems(DaysListener.getMonthdays());
          comboMonth.select(0);
          comboMonth.setEnabled(false);
          comboMonth.select(0);
          comboMonth.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
View Full Code Here


    matchingAttributesGroup.setLayout(gridLayout_1);

    final Label txtEventClass = new Label(matchingAttributesGroup, SWT.NONE);
    txtEventClass.setText("Event Class");

    cboEventClass = new Combo(matchingAttributesGroup, SWT.NONE);
    cboEventClass.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        butApply.setEnabled(true);
      }
    });
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 Label lblLanguage = new Label(jobGroup, SWT.NONE);
        lblLanguage.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, false, true));
        lblLanguage.setText("Language");
      }

      comLanguage = new Combo(jobGroup, SWT.NONE);
      comLanguage.setItems(ScriptListener._languages);
      comLanguage.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          if(comLanguage.getSelectionIndex() > 1) {
            txtInclude.setEditable(true);
View Full Code Here

      }
    });
    butGoto.setAlignment(SWT.RIGHT);
   

    cJobChain = new Combo(gNodes, SWT.BORDER);
    cJobChain.setMenu(new sos.scheduler.editor.app.ContextMenu(cJobChain, dom, sos.scheduler.editor.app.Editor.JOB_CHAIN).getMenu());
    cJobChain.addMouseListener(new MouseAdapter() {
      public void mouseDown(final MouseEvent e) {           
        if(refresh) {
          if(listener.getJobChains() != null) {
            cJobChain.setItems(listener.getJobChains());
            refresh = false;
          }
        }
      }
     

    });

    cJobChain.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        bApplyNode.setEnabled(isValidNode());
        if (bApplyNode.getEnabled())
          getShell().setDefaultButton(bApplyNode);
      }
    });
    cJobChain.addKeyListener(new KeyAdapter() {
      public void keyPressed(final KeyEvent e) {           
        if (e.keyCode == SWT.CR) {
          applyNode();
        }
      }
    });
    final GridData gridData13 = new GridData(GridData.FILL, GridData.CENTER, true, false);
    gridData13.widthHint = 579;
    cJobChain.setLayoutData(gridData13);

    final Composite composite = new Composite(gNodes, SWT.NONE);
    composite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, false, false));
    final GridLayout gridLayout_2 = new GridLayout();
    gridLayout_2.marginWidth = 0;
    gridLayout_2.marginHeight = 0;
    composite.setLayout(gridLayout_2);

    butBrowse = new Button(composite, SWT.NONE);
    butBrowse.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, 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");

    if(!listener.get_dom().isLifeElement()) {
    }
    label8 = new Label(gNodes, SWT.NONE);
    label8.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, false, false, 2, 1));
    label8.setText("Next State:");

    cNextState = new Combo(gNodes, SWT.BORDER);
    cNextState.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        bApplyNode.setEnabled(isValidNode());
        if (bApplyNode.getEnabled())
          getShell().setDefaultButton(bApplyNode);
      }
    });
    cNextState.addKeyListener(new KeyAdapter() {
      public void keyPressed(final KeyEvent e) {
        if (e.keyCode == SWT.CR) {
          applyNode();
        }
      }
    });
    final GridData gridData14 = new GridData(GridData.FILL, GridData.CENTER, true, false);
    gridData14.widthHint = 80;
    cNextState.setLayoutData(gridData14);

    bNewNode = new Button(gNodes, SWT.NONE);
    bNewNode.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        isInsert = false;
        getShell().setDefaultButton(null);
        tNodes.deselectAll();
        butDetailsJob.setEnabled(false);
        listener.selectNode(null);
        bRemoveNode.setEnabled(false);
        enableNode(true);
        fillNode(true);
        tState.setFocus();
      }
    });
    bNewNode.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false));
    bNewNode.setText("New Chain &Node");

    label9 = new Label(gNodes, SWT.NONE);
    label9.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, false, false, 2, 1));
    label9.setText("Error State:");

    cErrorState = new Combo(gNodes, SWT.BORDER);
    cErrorState.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        bApplyNode.setEnabled(isValidNode());
        if (bApplyNode.getEnabled())
          getShell().setDefaultButton(bApplyNode);
View Full Code Here

        butNew.setText("New");

        final Label eventClassLabel = new Label(group, SWT.NONE);
        eventClassLabel.setText("Event Class");

        cboEventClass = new Combo(group, SWT.BORDER);
       
        cboEventClass.addModifyListener(new ModifyListener() {
          public void modifyText(final ModifyEvent e) {
            butApply.setEnabled(true);
          }
View Full Code Here

    addPredefinedFunctionsLabel = new Label(composite, SWT.NONE);
    addPredefinedFunctionsLabel.setLayoutData(new GridData(GridData.CENTER, GridData.CENTER, false, false));
    addPredefinedFunctionsLabel.setVisible(false);
    addPredefinedFunctionsLabel.setText("Select predefined functions:");

    cboFunctions = new Combo(composite, SWT.NONE);
    cboFunctions.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
    cboFunctions.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        if(cboFunctions.getText().length() > 0) {
          _styledText.append(Options.getProperty(scriptLanguage + cboFunctions.getText()));
View Full Code Here


      final Label lblName = new Label(group, SWT.NONE);
      lblName.setText("Name");

      cboConnectname = new Combo(group, SWT.NONE);
     
      cboConnectname.setItems(listener.getProfileNames());
      cboConnectname.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          setEnabled();

        }
      });
      final GridData gridData_2 = new GridData(GridData.FILL, GridData.CENTER, true, false);
      cboConnectname.setLayoutData(gridData_2);
      cboConnectname.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          initForm();
        }
      });
      cboConnectname.select(0);

      final Label protocolLabel = new Label(group, SWT.NONE);
      protocolLabel.setText("protocol");

      cboProtokol = new Combo(group, SWT.NONE);
      cboProtokol.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
      cboProtokol.setItems(new String[] {"WebDav", "SWebDav"});
     
      cboProtokol.select(0);
View Full Code Here

    jobchainLabel = new Label(jobsAndOrdersGroup, SWT.NONE);
    final GridData gridData_10 = new GridData();
    jobchainLabel.setLayoutData(gridData_10);
    jobchainLabel.setText("Job chain");

    cJobchain = new Combo(jobsAndOrdersGroup, SWT.NONE);
    cJobchain.setEnabled(false);
    cJobchain.setItems(listener.getJobChains());   
    cJobchain.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        if(!event)
          return;

        listener.setJobChain(cJobchain.getText())

        String curstate = Utils.getAttributeValue("state", listener.getCommand());

        tState.setItems(listener.getStates());                   
        tState.setText(curstate);


        String curEndstate =  Utils.getAttributeValue("end_state", listener.getCommand());

        cboEndstate.setItems(listener.getStates());
        cboEndstate.setText(curEndstate);


      }
    });

    final GridData gridData_8 = new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1);
    gridData_8.widthHint = 114;
    cJobchain.setLayoutData(gridData_8);
    lblJob = new Label(jobsAndOrdersGroup, SWT.NONE);
    lblJob.setLayoutData(new GridData(73, SWT.DEFAULT));
    lblJob.setText("Job / Order ID");

    tJob = new Text(jobsAndOrdersGroup, SWT.BORDER);
    tJob.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        tJob.selectAll();
      }
    });
    tJob.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        if(type == Editor.JOB){
          listener.setJob(tJob.getText());
        } else {
          listener.setOrderId(tJob.getText());
        }

      }
    });
    final GridData gridData_3 = new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1);
    tJob.setLayoutData(gridData_3);
    final Label startAtLabel = new Label(jobsAndOrdersGroup, SWT.NONE);
    startAtLabel.setLayoutData(new GridData());
    startAtLabel.setText("Start at");

    final Composite composite = new Composite(jobsAndOrdersGroup, SWT.NONE);
    final GridData gridData = new GridData(GridData.BEGINNING, GridData.FILL, false, false);
    composite.setLayoutData(gridData);
    final GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 11;
    gridLayout.verticalSpacing = 0;
    gridLayout.marginWidth = 0;
    gridLayout.marginHeight = 0;
    gridLayout.horizontalSpacing = 0;
    composite.setLayout(gridLayout);

    txtYear = new Text(composite, SWT.BORDER);
    txtYear.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        if(!event)
          return;
        setTime();
      }
    });
    txtYear.setEnabled(false);
    txtYear.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit = Utils.isOnlyDigits(e.text);
      }
    });
    txtYear.setTextLimit(4);
    final GridData gridData_7 = new GridData(GridData.FILL, GridData.CENTER, false, false);
    gridData_7.widthHint = 40;
    txtYear.setLayoutData(gridData_7);

    final Label label = new Label(composite, SWT.NONE);
    label.setText("-");

    txtMonth = new Text(composite, SWT.BORDER);
    txtMonth.addFocusListener(new FocusAdapter() {
      public void focusLost(final FocusEvent e) {
        txtMonth.setText(Utils.fill(2, txtMonth.getText()));   
      }
    });
    txtMonth.setEnabled(false);
    txtMonth.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) { 
        if(!event)
          return;
        Utils.setBackground(1, 12, txtMonth);
        if(!txtMonth.getBackground().equals(Options.getRequiredColor()))
          setTime();
      }
    });
    txtMonth.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit = Utils.isOnlyDigits(e.text);
      }
    });
    txtMonth.setTextLimit(2);
    final GridData gridData_9 = new GridData(GridData.FILL, GridData.CENTER, false, false);
    gridData_9.widthHint = 20;
    txtMonth.setLayoutData(gridData_9);

    final Label label_1 = new Label(composite, SWT.NONE);
    label_1.setText("-");

    txtDay = new Text(composite, SWT.BORDER);
    txtDay.addFocusListener(new FocusAdapter() {
      public void focusLost(final FocusEvent e) {
        txtDay.setText(Utils.fill(2, txtDay.getText()));
      }
    });
    txtDay.setEnabled(false);
    txtDay.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        if(!event)
          return;
        Utils.setBackground(1, 31, txtDay);
        if(!txtDay.getBackground().equals(Options.getRequiredColor()))
          setTime();
      }
    });
    txtDay.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit = Utils.isOnlyDigits(e.text);
      }
    });
    txtDay.setTextLimit(2);
    final GridData gridData_13 = new GridData(GridData.FILL, GridData.CENTER, false, false);
    gridData_13.widthHint = 20;
    txtDay.setLayoutData(gridData_13);

    final Label label_2 = new Label(composite, SWT.NONE);
    label_2.setText("      ");

    txtHour = new Text(composite, SWT.BORDER);
    txtHour.addFocusListener(new FocusAdapter() {
      public void focusLost(final FocusEvent e) {
        txtHour.setText(Utils.fill(2, txtHour.getText()));
      }
    });
    txtHour.setEnabled(false);
    txtHour.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        if(!event)
          return;
        Utils.setBackground(0, 24, txtHour);
        if(!txtHour.getBackground().equals(Options.getRequiredColor()))
          setTime();
      }
    });
    txtHour.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit = Utils.isOnlyDigits(e.text);
      }
    });
    txtHour.setTextLimit(2);
    final GridData gridData_14 = new GridData(GridData.FILL, GridData.CENTER, false, false);
    gridData_14.widthHint = 20;
    txtHour.setLayoutData(gridData_14);

    final Label label_3 = new Label(composite, SWT.NONE);
    label_3.setText(":");

    txtMin = new Text(composite, SWT.BORDER);
    txtMin.addFocusListener(new FocusAdapter() {
      public void focusLost(final FocusEvent e) {
        txtMin.setText(Utils.fill(2, txtMin.getText()));
      }
    });
    txtMin.setEnabled(false);
    txtMin.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        if(!event)
          return;
        Utils.setBackground(0, 60, txtMin);
        if(!txtMin.getBackground().equals(Options.getRequiredColor()))
          setTime();
      }
    });
    txtMin.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit = Utils.isOnlyDigits(e.text);
      }
    });
    txtMin.setTextLimit(2);
    final GridData gridData_1 = new GridData(GridData.FILL, GridData.CENTER, false, false);
    gridData_1.widthHint = 20;
    txtMin.setLayoutData(gridData_1);

    final Label label_4 = new Label(composite, SWT.NONE);
    label_4.setText(":");

    txtSec = new Text(composite, SWT.BORDER);
    txtSec.addFocusListener(new FocusAdapter() {
      public void focusLost(final FocusEvent e) {
        txtSec.setText(Utils.fill(2, txtSec.getText()));
      }
    });
    txtSec.setEnabled(false);
    txtSec.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        if(!event)
          return;
        Utils.setBackground(0, 60, txtSec);
        if(!txtSec.getBackground().equals(Options.getRequiredColor()))
          setTime();
      }
    });
    txtSec.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit = Utils.isOnlyDigits(e.text);
      }
    });
    txtSec.setTextLimit(2);
    final GridData gridData_6 = new GridData(GridData.FILL, GridData.CENTER, false, false);
    gridData_6.widthHint = 20;
    txtSec.setLayoutData(gridData_6);

    cboTimes = new Combo(jobsAndOrdersGroup, SWT.READ_ONLY);
    cboTimes.setVisibleItemCount(7);

    cboTimes.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        normalized(cboTimes.getText());
        setTime();
        initTimes(listener.getAt());
      }
    });
    cboTimes.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
    priorityLabel = new Label(jobsAndOrdersGroup, SWT.NONE);
    final GridData gridData_11 = new GridData();
    priorityLabel.setLayoutData(gridData_11);
    priorityLabel.setText("Priority");

    tPriority = new Text(jobsAndOrdersGroup, SWT.BORDER);
    tPriority.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        tPriority.selectAll();
      }
    });
    tPriority.setEnabled(false);
    tPriority.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        listener.setPriority(tPriority.getText());

      }
    });
    tPriority.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1));
    titleLabel = new Label(jobsAndOrdersGroup, SWT.NONE);
    titleLabel.setLayoutData(new GridData());
    titleLabel.setText("Title");

    tTitle = new Text(jobsAndOrdersGroup, SWT.BORDER);
    tTitle.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        tTitle.selectAll();
      }
    });
    tTitle.setEnabled(false);
    tTitle.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        listener.setTitle(tTitle.getText());

      }
    });

    final GridData gridData_5 = new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1);
    tTitle.setLayoutData(gridData_5);

    stateLabel = new Label(jobsAndOrdersGroup, SWT.NONE);
    stateLabel.setLayoutData(new GridData());
    stateLabel.setText("State");

    tState = new Combo(jobsAndOrdersGroup, SWT.BORDER);
    tState.setEnabled(false);
    tState.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        if(event)
          listener.setState(tState.getText());

      }
    });
    final GridData gridData_2 = new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1);
    tState.setLayoutData(gridData_2);

    endStateLabel = new Label(jobsAndOrdersGroup, SWT.NONE);
    endStateLabel.setLayoutData(new GridData());
    endStateLabel.setText("End State");

    cboEndstate = new Combo(jobsAndOrdersGroup, SWT.NONE);
    cboEndstate.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        if(event)
          listener.setEndState(cboEndstate.getText());
      }
View Full Code Here

     * This method initializes combo
     */
    private void createCombo() {
        GridData gridData4 = new org.eclipse.swt.layout.GridData(GridData.FILL, GridData.CENTER, true, false, 3, 1);
        gridData4.widthHint = 300;
        cUnusedDays = new Combo(group, SWT.READ_ONLY);
        cUnusedDays.setVisibleItemCount(10);
        cUnusedDays.setLayoutData(gridData4);
    }
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.