Examples of addModifyListener()


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

          if (item == null) return;
     
          // The control that will be the editor must be a child of the Table
          Text newEditor = new Text(namespace2packageTable, SWT.NONE);
          newEditor.setText(item.getText(EDITABLECOLUMN));
          newEditor.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent me) {
              Text text = (Text)editor.getEditor();
              editor.getItem().setText(EDITABLECOLUMN, text.getText());
            }
          });
View Full Code Here

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

  }

  private void addModifyTextListener() {
    Text editor = listener.getText();
    if(!editor.isDisposed()){
      editor.addModifyListener(new ModifyListener() {
        public void modifyText(ModifyEvent e) {
          switch(currentStatus){
          case Normal:
            break;
          case Add:
View Full Code Here

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

    btnCancel = new Button(composite, SWT.NONE);
    btnCancel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    btnCancel.setEnabled(false);
    btnCancel.setText(RedisClient.i18nFile.getText(I18nFile.CANCEL));

    text_value.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        String newValue = text_value.getText() == null ? "" : text_value.getText();
        if (newValue.equals(value)) {
          setApply(false);
          btnCancel.setEnabled(false);
View Full Code Here

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

            return;

        // The control that will be the editor must be a child of the Table
        Text newEditor = new Text( aliasesTable, SWT.NONE );
        newEditor.setText( item.getText() );
        newEditor.addModifyListener( new ModifyListener()
        {
            public void modifyText( ModifyEvent e )
            {
                saveTableEditorText();
            }
View Full Code Here

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

  @Override
  public void createUi(Composite parentArea) {
    new Label(parentArea, SWT.NONE).setText("Dynasty name:"); //$NON-NLS-1$
    final Text textWidget = new Text(parentArea, SWT.BORDER);
    textWidget.addModifyListener(new ModifyListener() {

      @Override
      public void modifyText(ModifyEvent e) {
        text = textWidget.getText();
      }
View Full Code Here

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

    new Label(area, SWT.NONE)
        .setText(Messages.CreateAccountDialog_UserName);
    final Text usernameText = new Text(area, SWT.BORDER);
    usernameText
        .setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, false));
    usernameText.addModifyListener(new ModifyListener() {

      @Override
      public void modifyText(ModifyEvent e) {
        username = usernameText.getText();
      }
View Full Code Here

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

    new Label(area, SWT.NONE)
        .setText(Messages.CreateAccountDialog_Password);
    final Text passwordText = new Text(area, SWT.BORDER | SWT.PASSWORD);
    passwordText
        .setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, false));
    passwordText.addModifyListener(new ModifyListener() {

      @Override
      public void modifyText(ModifyEvent e) {
        password = passwordText.getText();
      }
View Full Code Here

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

    final Text languageText = new Text(importOptions, SWT.BORDER);
    languageText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    language = store.getString(
            CasEditorIdePreferenceConstants.CAS_IMPORT_WIZARD_LAST_USED_LANG);
    languageText.setText(language);
    languageText.addModifyListener(new ModifyListener() {
     
      public void modifyText(ModifyEvent e) {
        language = languageText.getText();
        store.setValue(CasEditorIdePreferenceConstants.CAS_IMPORT_WIZARD_LAST_USED_LANG, language);
      }
View Full Code Here

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

 
  private Text wideTextInput(Composite tc, String tip, DialogModifyListener listener) {
    Text t = newText(tc, SWT.BORDER, tip);
    t.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
    if (listener != null) {
      t.addModifyListener(listener);
    } else {
      t.setEnabled(false);
    }
    return t;
  }
View Full Code Here

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

    final Text editorColumnX = new Text(coordinatesTable, SWT.NONE);
    if (mark != null && !(mark.getXCoord().equals(Double.NaN))) {

      editorColumnX.setText(String.valueOf(mark.getXCoord()));
    }
    editorColumnX.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {

        Text text = (Text) editorX.getEditor();
        String newText = text.getText();
        if (mark != null) {
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.