Package org.eclipse.swt.widgets

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


      }
    });
    shellWidth = shell.getSize().x;
   
    resizeListener = new ResizeListener(data, shell);
    shell.addControlListener (resizeListener);
      
    this.tray = tray;
  }
 
  /**
 
View Full Code Here


      fControl= control;
      if (Helper.okToUse(control)) {

        Shell shell= control.getShell();
        fShell= shell;
        shell.addControlListener(this);

        control.addMouseListener(this);
        control.addFocusListener(this);

        /*
 
View Full Code Here

      Control w= fViewer.getTextWidget();
      if (Helper2.okToUse(w)) {

        Shell shell= w.getShell();
        fShell= shell;
        shell.addControlListener(this);

        w.addMouseListener(this);
        w.addFocusListener(this);

        /*
 
View Full Code Here

      fControl= control;
      if (Helper.okToUse(control)) {

        Shell shell= control.getShell();
        fShell= shell;
        shell.addControlListener(this);

        control.addMouseListener(this);
        control.addFocusListener(this);

        /*
 
View Full Code Here

                assert awtHandler != null;
                awtHandler.postHidePopups();
            }
        };
        final Shell shell = composite.getShell();
        shell.addControlListener(controlAdapter);
       
        // Cleanup listeners on dispose
        composite.addDisposeListener(new DisposeListener() {
            public void widgetDisposed(DisposeEvent e) {
                shell.removeControlListener(controlAdapter);
View Full Code Here

  public Shell open(Display display) {
    final Shell shell = new Shell(display);
    final Label label = new Label(shell, SWT.CENTER);
    label.setText(HelloWorld3.resHello.getString("Hello_world"));
    label.pack();
    shell.addControlListener(new ControlAdapter() {
      public void controlResized(ControlEvent e) {
        label.setBounds(shell.getClientArea());
      }
    });
    shell.pack();
View Full Code Here

      fControl= control;
      if (Helper.okToUse(control)) {

        Shell shell= control.getShell();
        fShell= shell;
        shell.addControlListener(this);

        control.addMouseListener(this);
        control.addFocusListener(this);

        /*
 
View Full Code Here

      Control w= fViewer.getTextWidget();
      if (Helper2.okToUse(w)) {

        Shell shell= w.getShell();
        fShell= shell;
        shell.addControlListener(this);

        w.addMouseListener(this);
        w.addFocusListener(this);

        /*
 
View Full Code Here

    int         width = 0;
    int         height = 0;

    final Shell s = getShell();
    if(s != null) {
      s.addControlListener(new ControlListener() {
          public void controlMoved(ControlEvent arg) {
            fNewBounds = s.getBounds();
          }

          public void controlResized(ControlEvent arg) {
View Full Code Here

      ObjectRegistry controlRegistry = SWTNativeComponent.getControlRegistry();
      synchronized(controlRegistry) {
        final int componentID = (Integer)args[0];
        Object canvasHandle = args[1];
        final Shell shell = createShell(canvasHandle);
        shell.addControlListener(new ControlAdapter() {
          private boolean isAdjusting;
          @Override
          public void controlMoved(ControlEvent e) {
            if(isAdjusting) {
              return;
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.