Package org.eclipse.swt.widgets

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


        final Text nameField = new Text(composite, SWT.BORDER);
        GridData nameTextData = new GridData(GridData.FILL_HORIZONTAL);
        nameTextData.minimumWidth = 200;
        nameField.setText(name);
        nameField.setLayoutData(nameTextData);
        nameField.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent e) {
                name = nameField.getText().replaceAll(" ", "_");
                updateButtons();
            }
        });
View Full Code Here


        private void addTaskSection(SQLTaskModel taskModel) {
            Label label = new Label(this, SWT.NONE);
            label.setText(Messages.getString("label.DataSourceName"));
            final Text text = new Text(this, SWT.BORDER);
            text.setText(taskModel.dsName);
            text.addModifyListener(new ModifyListener() {
        public void modifyText(ModifyEvent event) {
          model.getFirstTask().dsName = text.getText();
        }
            });
            GridData data = new GridData();
View Full Code Here

            group.setLayout(new GridLayout(2, false));

            final Text text = new Text(group, SWT.BORDER);
            text.setText(queryModel.query);
            text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
            text.addModifyListener(new ModifyListener() {
        public void modifyText(ModifyEvent event) {
          model.getFirstTask().queries.get(queryIndex).query = text.getText();
        }
            });
View Full Code Here

    label.setText(strLabel);

    Text text = new Text(parent, SWT.BORDER | SWT.SINGLE);
    text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    text.setText(strText);
    text.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        dialogChanged();
      }
    });
    text.setEditable(editable);
View Full Code Here

        Text text = new Text(parent, SWT.SINGLE | SWT.BORDER);
        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        text.setLayoutData(data);
        text.setData("hProp", prop);
        text.setText(location.getConfPropValue(prop));
        text.addModifyListener(listener);
        return text;
    }

    /**
     * Create a SWT Checked Button component for the given {@link ConfProp}
View Full Code Here

        Text text = new Text(parent, SWT.SINGLE | SWT.BORDER);
        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        text.setLayoutData(data);
        text.setData("hPropName", propName);
        text.setText(location.getConfPropValue(propName));
        text.addModifyListener(listener);

        return text;
    }

    /**
 
View Full Code Here

    // User ID
    new Label(securityGroup, SWT.NONE).setText("User ID:");
    final Text userIdText = new Text(securityGroup, SWT.BORDER | SWT.SINGLE);
    userIdText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    userIdText.setEnabled(overrideDefaultSecurity);
    userIdText.addModifyListener(new ModifyListener() {
      @Override
      public void modifyText(ModifyEvent e) {
        userId = userIdText.getText();
        if (userId != null && userId.trim().length() < 1)
          userId = null;
View Full Code Here

      label.setText( "&Location name:");
      Text text = new Text(panel, SWT.SINGLE | SWT.BORDER);
      GridData data = new GridData(GridData.FILL_HORIZONTAL);
      text.setLayoutData(data);
      text.setText(location.getConfPropValue(ConfProp.PI_LOCATION_NAME));
      text.addModifyListener(new ModifyListener() {
        @Override
        public void modifyText(ModifyEvent e) {
          final Text text = (Text) e.widget;
          final ConfProp prop = (ConfProp) text.getData("hProp");
          Display.getDefault().syncExec(new Runnable() {
View Full Code Here

    Text text = new Text(parent, SWT.SINGLE | SWT.BORDER);
    GridData data = new GridData(GridData.FILL_HORIZONTAL);
    text.setLayoutData(data);
    text.setData("hProp", prop);
    text.setText(location.getConfPropValue(prop));
    text.addModifyListener(listener);
    return text;
  }

  /**
   * Create a SWT Checked Button component for the given {@link ConfProp}
View Full Code Here

    Text text = new Text(parent, SWT.SINGLE | SWT.BORDER);
    GridData data = new GridData(GridData.FILL_HORIZONTAL);
    text.setLayoutData(data);
    text.setData("hPropName", propName);
    text.setText(location.getConfPropValue(propName));
    text.addModifyListener(listener);

    return text;
  }

  /**
 
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.