Examples of addControlListener()


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

    createConditionControls(topSashContent);

    /* Create Center Sash */
    Composite centerSash = new Composite(fSashForm, SWT.NONE);
    centerSash.setLayout(LayoutUtils.createGridLayout(1, 0, 0, 0, 0, false));
    centerSash.addControlListener(new ControlAdapter() {

      @Override
      public void controlResized(ControlEvent e) {
        fCachedWeights = fSashForm.getWeights();
      }
View Full Code Here

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

    final Composite titleCircle = new Composite(outerCircle, SWT.NO_FOCUS);
    titleCircle.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
    titleCircle.setBackgroundMode(SWT.INHERIT_FORCE);
    titleCircle.setLayout(LayoutUtils.createGridLayout(2, 3, 0, 5, 3, false));
    titleCircle.addMouseTrackListener(fMouseTrackListner);
    titleCircle.addControlListener(new ControlAdapter() {
      @Override
      public void controlResized(ControlEvent e) {
        Rectangle clArea = titleCircle.getClientArea();
        Image oldBgImage = fTitleBgImage;
        fTitleBgImage = new Image(titleCircle.getDisplay(), clArea.width, clArea.height);
View Full Code Here

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

    final Composite footerCircle = new Composite(outerCircle, SWT.NO_FOCUS);
    footerCircle.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
    footerCircle.setBackgroundMode(SWT.INHERIT_FORCE);
    footerCircle.setLayout(LayoutUtils.createGridLayout(3, 3, 0, 5, 3, false));
    footerCircle.addMouseTrackListener(fMouseTrackListner);
    footerCircle.addControlListener(new ControlAdapter() {
      @Override
      public void controlResized(ControlEvent e) {
        Rectangle clArea = footerCircle.getClientArea();
        Image oldBgImage = fFooterBgImage;
        fFooterBgImage = new Image(footerCircle.getDisplay(), clArea.width, clArea.height);
View Full Code Here

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

    /* Table-Viewer to display headlines */
    NewsTableViewer tableViewer;
    {
      Composite container = new Composite(fSashForm, SWT.None);
      container.setLayout(LayoutUtils.createGridLayout(2, 0, 0, 0, 0, false));
      container.addControlListener(new ControlAdapter() {
        @Override
        public void controlResized(ControlEvent e) {
          fCacheWeights = fSashForm.getWeights();
        }
      });
View Full Code Here

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

    new Label(topSashContent, SWT.SEPARATOR | SWT.HORIZONTAL).setLayoutData(new GridData(SWT.FILL, SWT.END, true, false));

    /* Create Center Sash */
    Composite centerSash = new Composite(fSashForm, SWT.NONE);
    centerSash.setLayout(LayoutUtils.createGridLayout(1, 0, 0, 0, 0, false));
    centerSash.addControlListener(new ControlAdapter() {

      @Override
      public void controlResized(ControlEvent e) {
        fCachedWeights = fSashForm.getWeights();
      }
View Full Code Here

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

    label6 = new Label(group, SWT.NONE);
    label6.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
    label6.setText("Value: ");

    final Composite composite = new Composite(group, SWT.NONE);
    composite.addControlListener(new ControlAdapter() {
      public void controlResized(final ControlEvent e) {
        cSource.setBounds(0, 2, composite.getBounds().width, tParaName.getBounds().height);
        tParaValue.setBounds(0, 2,composite.getBounds().width, tParaName.getBounds().height);
      }
    });
View Full Code Here

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

    label6 = new Label(group, SWT.NONE);
    label6.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
    label6.setText("Value: ");

    final Composite composite = new Composite(group, SWT.NONE);
    composite.addControlListener(new ControlAdapter() {
      public void controlResized(final ControlEvent e) {
        cSource.setBounds(0, 2, composite.getBounds().width, tParaName.getBounds().height);
        tParaValue.setBounds(0, 2,composite.getBounds().width, tParaName.getBounds().height);
      }
    });
View Full Code Here

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

        .getSystemColor(SWT.COLOR_DARK_BLUE));
    banner.setRight(bannerRight);

    // If the right banner control changes size it's because
    // the 'swoop' moved.
    bannerRight.addControlListener(new ControlListener() {
      public void controlMoved(ControlEvent e) {
      }

      public void controlResized(ControlEvent e) {
        Composite leftComp = (Composite) e.widget;
View Full Code Here

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

    Label lMotto = new Label(textComposite, SWT.WRAP);
    final GridData data = LayoutUtilities.createGridData(-1, 2, 1, -1, -1);
    lMotto.setLayoutData(data);
    lMotto.setText("Develop with Java 1.5, deploy native binaries for Windows and Linux!");

    textComposite.addControlListener(new ControlAdapter()
      {
        public void controlResized(ControlEvent e)
        {
          data.widthHint = textComposite.getClientArea().width;
          textComposite.getParent().layout(true);
View Full Code Here

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();
        lastUsedBgImage = new Image(outerCircle.getDisplay(), clArea.width, clArea.height);
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.