Examples of addModifyListener()


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

      }

      /* Text */
      else if (c instanceof Text) {
        Text text = (Text) c;
        text.addModifyListener(new ModifyListener() {
          public void modifyText(ModifyEvent e) {
            run.run();
          }
        });
      }
View Full Code Here

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

      final GridData gridData_7 = new GridData(GridData.FILL, GridData.CENTER, false, false);
      gridData_7.widthHint = 36;
      butoIncludeSave.setLayoutData(gridData_7);
      butoIncludeSave.setText("Save");     

      txtIncludeParameterValue.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
        public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
          butoIncludeSave.setEnabled(!txtIncludeParameter.getText().equals(""));
        }
      });
      txtIncludeParameter.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
View Full Code Here

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

                    text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

                    if (value != null)
                        text.setText(value);

                    text.addModifyListener(new ModifyListener() {
                        public void modifyText(ModifyEvent e) {
                            String value = text.getText();
                            if (value == null || value.length() == 0)
                                properties.remove(name);
                            else
View Full Code Here

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

    nameText.setEditable(true);
    if (name != null) {
      nameText.setText(name);
    }
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).applyTo(nameText);
    nameText.addModifyListener(new ModifyListener() {
     
      public void modifyText(ModifyEvent e) {
        name = nameText.getText();
        update();
      }
View Full Code Here

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

    urlText.setEditable(true);
    if (url != null) {
      urlText.setText(url);
    }
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).applyTo(urlText);
    urlText.addModifyListener(new ModifyListener() {
     
      public void modifyText(ModifyEvent e) {
        url = urlText.getText();
        update();
      }
View Full Code Here

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

    serverLabel.setText(variable + ": "); //$NON-NLS-1$

    final Text text = new Text(parent, SWT.BORDER);
    GridDataFactory.fillDefaults().grab(true, false).applyTo(text);

    text.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent event) {
        valueVariables.put(variable, text.getText());
        validate(true);
      }
    });
View Full Code Here

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

    nameText.setEditable(true);
    if (name != null) {
      nameText.setText(name);
    }
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).applyTo(nameText);
    nameText.addModifyListener(new ModifyListener() {

      public void modifyText(ModifyEvent e) {
        name = nameText.getText();
        update();
      }
View Full Code Here

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

    urlText.setEditable(true);
    if (url != null) {
      urlText.setText(url);
    }
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).applyTo(urlText);
    urlText.addModifyListener(new ModifyListener() {

      public void modifyText(ModifyEvent e) {
        url = urlText.getText();
        // remove leading and trailing whitespaces
        if (url != null) {
View Full Code Here

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

    newPasswordLabel.setText(Messages.UpdatePasswordDialog_TEXT_NEW_PW_LABEL);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).applyTo(newPasswordLabel);
   
    final Text newPasswordText = new Text(composite, SWT.PASSWORD | SWT.BORDER);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).hint(250, SWT.DEFAULT).applyTo(newPasswordText);
    newPasswordText.addModifyListener(new ModifyListener() {
     
      public void modifyText(ModifyEvent e) {
        password = newPasswordText.getText();
        update();
      }
View Full Code Here

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

    verifyPasswordLabel.setText(Messages.UpdatePasswordDialog_TEXT_VERIFY_PW_LABEL);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).applyTo(verifyPasswordLabel);
   
    final Text verifyPasswordText = new Text(composite, SWT.PASSWORD | SWT.BORDER);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).applyTo(verifyPasswordText);
    verifyPasswordText.addModifyListener(new ModifyListener() {
     
      public void modifyText(ModifyEvent e) {
        verifyPassword = verifyPasswordText.getText();
        update();
      }
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.