Package org.eclipse.swt.widgets

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


    label.setText(RedisClient.i18nFile.getText(I18nFile.CHANNEL));
   
    final Text channel = new Text(composite_5, SWT.BORDER);
    channel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
    channel.setBounds(0, 0, 73, 21);
    channel.addControlListener(new ControlAdapter() {
      @Override
      public void controlResized(ControlEvent e) {
        channel.setFocus();
      }
    });
View Full Code Here


    lblNewLabel.setText(RedisClient.i18nFile.getText(I18nFile.CHANNEL));
   
    final Text channel = new Text(composite_4, SWT.BORDER);
    channel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
    channel.setBounds(0, 0, 88, 23);
    channel.addControlListener(new ControlAdapter() {
      @Override
      public void controlResized(ControlEvent e) {
        channel.setFocus();
      }
    });
View Full Code Here

  @Override
  protected Control createControl(Composite parent) {
    Text textControl = (Text) super.createControl(parent);
    if ("carbon".equals(SWT.getPlatform()) || "cocoa".equals(SWT.getPlatform())) {
      textControl.addControlListener(new ControlListener() {
        private boolean _moving;

        private boolean _resizing;

        public void controlMoved(ControlEvent e) {
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.