Examples of addControlListener()


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

        /* Outer Composite holding the controls */
        final Composite outerCircle = new Composite(parent, SWT.NO_FOCUS);
        outerCircle.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
        outerCircle.setBackgroundMode(SWT.INHERIT_FORCE);

        outerCircle.addControlListener(new ControlAdapter() {

            @Override
            public void controlResized(ControlEvent e) {
                Rectangle clArea = outerCircle.getClientArea();
                Popup.this.lastUsedBgImage = new Image(outerCircle.getDisplay(), clArea.width, clArea.height);
View Full Code Here

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

        // widgets we need to hardcode the combined widget's
        // size, otherwise it will open too small
        SIZING_SELECTION_WIDGET_WIDTH, SIZING_SELECTION_WIDGET_HEIGHT,
        allowMultiselection);

    composite.addControlListener(new ControlListener() {
      public void controlMoved(ControlEvent e) {
      }

      public void controlResized(ControlEvent e) {
        // Also try and reset the size of the columns as appropriate
View Full Code Here

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

        comment.setText(text);
        comment.setForeground(Color.COMMENT.getSWTColor());
        comment.setLayoutData(new GridData(GridData.FILL_BOTH));
        // Workaround fuer Windows, weil dort mehrzeilige
        // Labels nicht korrekt umgebrochen werden.
        comment.addControlListener(new ControlAdapter() {
          public void controlResized(ControlEvent e)
          {
            comment.setSize(comment.computeSize(comment.getSize().x,SWT.DEFAULT));
          }
        });
View Full Code Here

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

          gc.setBackground(oldBg);
        }

      });
     
      newSash.addControlListener(new ControlListener() {
        /**
         * @see org.eclipse.swt.events.ControlAdapter#controlMoved(ControlEvent)
         */
        public void controlMoved(ControlEvent e) {
          recomputeSashInfo();
View Full Code Here

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

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

      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

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

      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

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

      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

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

                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

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

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