Package org.eclipse.swt.widgets

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


        gavPanel.setLayoutData(gridData);
       
        Label groupLabel = new Label(gavPanel, SWT.NONE);
        groupLabel.setText("GroupId: ");
        final Text groupField = new Text(gavPanel, SWT.BORDER);
        groupField.addListener(SWT.Modify, new Listener() {
          public void handleEvent(Event event) {
            groupId = groupField.getText();
            setComplete();
          }        
        });
View Full Code Here


          }        
        });
        Label artifactLabel = new Label(gavPanel, SWT.NONE);
        artifactLabel.setText("ArtifactId: ");
        final Text artifactField = new Text(gavPanel, SWT.BORDER);
        artifactField.addListener(SWT.Modify, new Listener() {
          public void handleEvent(Event event) {
            artifactId = artifactField.getText();
            setComplete();
          }        
        });
View Full Code Here

          }        
        });
        Label versionLabel = new Label(gavPanel, SWT.NONE);
        versionLabel.setText("Version: ");
        final Text versionField = new Text(gavPanel, SWT.BORDER);
        versionField.addListener(SWT.Modify, new Listener() {
          public void handleEvent(Event event) {
            version = versionField.getText();
            setComplete();
          }        
        });
View Full Code Here

        Listener listener = new Listener() {
            public void handleEvent(Event e) {
                fFilteredList.setFilter(fFilterText.getText());
            }
        };
        text.addListener(SWT.Modify, listener);

        text.addKeyListener(new KeyListener() {
            public void keyPressed(KeyEvent e) {
                if (e.keyCode == SWT.ARROW_DOWN) {
          fFilteredList.setFocus();
View Full Code Here

                    }
                    break;
                  }
                }
              };
              text.addListener(SWT.FocusOut, textListener);
              text.addListener(SWT.Traverse, textListener);
              editor.setEditor(text, item, i);
              text.setText(item.getText(i));
              text.selectAll();
              text.setFocus();
View Full Code Here

                    break;
                  }
                }
              };
              text.addListener(SWT.FocusOut, textListener);
              text.addListener(SWT.Traverse, textListener);
              editor.setEditor(text, item, i);
              text.setText(item.getText(i));
              text.selectAll();
              text.setFocus();
              return;
View Full Code Here

                      }
                      break;
                    }
                  }
                };
                text.addListener(SWT.FocusOut, textListener);
                text.addListener(SWT.Traverse, textListener);
                editor.setEditor(text, item, i);
                text.setText(item.getText(i));
                text.selectAll();
                text.setFocus();
View Full Code Here

                      break;
                    }
                  }
                };
                text.addListener(SWT.FocusOut, textListener);
                text.addListener(SWT.Traverse, textListener);
                editor.setEditor(text, item, i);
                text.setText(item.getText(i));
                text.selectAll();
                text.setFocus();
                return;
View Full Code Here

  protected Text newText(Composite parent, int style, String tip) {
    Text t = new Text(parent, style | SWT.BORDER);
    t.setToolTipText(tip);
    t.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    t.addListener(SWT.KeyUp, this);
    t.addListener(SWT.MouseUp, this); // for paste operation
    return t;
  }

  protected Text newLabeledText(Composite parent, int style, String label, String tip) {
View Full Code Here

  protected Text newText(Composite parent, int style, String tip) {
    Text t = new Text(parent, style | SWT.BORDER);
    t.setToolTipText(tip);
    t.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    t.addListener(SWT.KeyUp, this);
    t.addListener(SWT.MouseUp, this); // for paste operation
    return t;
  }

  protected Text newLabeledText(Composite parent, int style, String label, String tip) {
    setTextAndTip(new Label(parent, SWT.NONE), label, tip);
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.