Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Combo.addModifyListener()


        // create the drop down that will call the displayElement method
        // on the StyleValueComposite whenever an item is selected
        createLabel(container, "Display Element Type: ");
        final Combo combo = createDiplayElememntSelection(container,
                                                          valueTypes);
        combo.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent event) {
                StyleValueType type = StyleValueType.get(combo.getText());
                Element element = (Element) elements.get(type);
                styleValueComposite.displayElement(element);
            }
View Full Code Here


            @Override
            public void widgetSelected(SelectionEvent event) {
                subprocessName = namesCombo.getText();
            }
        });
        namesCombo.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent e) {
                subprocessName = namesCombo.getText();
            }
        });
        Label label1 = new Label(area, SWT.NO_BACKGROUND);
View Full Code Here

        GridData processVariableTextData = new GridData(GridData.FILL_HORIZONTAL);
        processVariableTextData.minimumWidth = 200;
        processVariableField.setItems(processVariables.toArray(new String[processVariables.size()]));
        processVariableField.setLayoutData(processVariableTextData);
        processVariableField.setText(getProcessVariable());
        processVariableField.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent e) {
                processVariable = processVariableField.getText();
            }
        });
        Label labelSubprocessVariable = new Label(composite, SWT.NONE);
View Full Code Here

        GridData subprocessVariableTextData = new GridData(GridData.FILL_HORIZONTAL);
        subprocessVariableTextData.minimumWidth = 200;
        subprocessVariableField.setItems(subprocessVariables.toArray(new String[subprocessVariables.size()]));
        subprocessVariableField.setLayoutData(subprocessVariableTextData);
        subprocessVariableField.setText(getSubprocessVariable());
        subprocessVariableField.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent e) {
                subprocessVariable = subprocessVariableField.getText();
            }
        });
       
View Full Code Here

    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    // gd.grabExcessHorizontalSpace = true;
    gd.widthHint = 100;
    text.setLayoutData(gd);

    text.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        dialogChanged();
      }
    });
    return text;
View Full Code Here

        combo.select(DEFAULT_INDEX);
       
        _refreshTask = new RefreshTask(INTERVALS[DEFAULT_INDEX]);
        _display.timerExec(1000 * INTERVALS[DEFAULT_INDEX], _refreshTask);
       
        combo.addModifyListener(
                new ModifyListener()
                {
                    public void modifyText(final ModifyEvent e)
                    {
                        _display.timerExec(-1, _refreshTask); //cancels existing refresh runnable
View Full Code Here

          text.setBackground(bgColor);
          text.setLayoutData(summGridData2);
          new TXmlText(CreateFirstOrGetTextChild(t, true), text); // 110516
          Button removeTerm = new Button(composite, SWT.PUSH);
          removeTerm.setText("x");
          combo.addModifyListener(new TXmlTextYearRangeExtension(composite,
              combo, t, removeTerm));
          removeTerm.addSelectionListener(new SelectionListener() {
            @Override
            public void widgetSelected(SelectionEvent e) {
              SetWasEdited();
View Full Code Here

            if ( !found && c.getValue() != null ) {
                combo.add( c.getValue() );
                combo.select( combo.getItemCount() - 1 );
            }

            combo.addModifyListener( new ModifyListener() {

                public void modifyText(ModifyEvent e) {
                    String item = combo.getItem( combo.getSelectionIndex() );
                    if ( combo.getData( item ) != null ) {
                        item = (String) combo.getData( item );
View Full Code Here

            combo.add( var );
        }

        combo.select( idx );

        combo.addModifyListener( new ModifyListener() {
            public void modifyText(ModifyEvent e) {
                c.setValue(combo.getText());
            }
        } );
View Full Code Here

                }
                if ( selected >= 0 ) list.select( selected );
            }

            list.addModifyListener( new ModifyListener() {

                public void modifyText(ModifyEvent e) {
                    updateSentence();
                    getModeller().setDirty( true );
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.