Examples of FormData


Examples of org.eclipse.swt.layout.FormData

   *
   */
  protected void setPercent(double pctAbove, Control sash, Composite above,
      Composite below, boolean bVertical, Control parentComposite,
      int minAbove, int belowMin) {
    FormData aboveData = (FormData) above.getLayoutData();
    if (aboveData == null) {
      return;
    }
    boolean layoutNeeded = false;
    if (bVertical) {
View Full Code Here

Examples of org.eclipse.swt.layout.FormData

      control.getShell().removeListener(SWT.Show, this);
    }

    control.removeListener(SWT.Dispose, this);
    control.setBackgroundImage(null);
    FormData formData = (FormData) control.getLayoutData();
    formData.width = SWT.DEFAULT;
    formData.height = SWT.DEFAULT;
    control.setData("BGPainter", null);
  }
View Full Code Here

Examples of org.eclipse.swt.layout.FormData

            + imgSrcRightBounds.width;
      }
      if (tileMode == SWTSkinUtils.TILE_X || tileMode == SWTSkinUtils.TILE_NONE) {
        height = imgSrcBounds.height;
      }
      FormData fd = (FormData) control.getLayoutData();
      if (fd == null) {
        fd = new FormData();
      }

      if (fd.width == fdWidth || fd.height == fdHeight) {

        if (fd.width == fdWidth) {
View Full Code Here

Examples of org.eclipse.swt.layout.FormData

            + imgSrcRightBounds.width;
      }
      if (tileMode == SWTSkinUtils.TILE_X || tileMode == SWTSkinUtils.TILE_NONE) {
        height = imgSrcBounds.height;
      }
      FormData fd = (FormData) control.getLayoutData();
      if (fd == null) {
        fd = new FormData();
      }

      if (fd.width == fdWidth || fd.height == fdHeight) {

        if (fd.width == fdWidth) {
View Full Code Here

Examples of org.eclipse.swt.layout.FormData

        //canvas.setData("image", image);

        if (drawMode == DRAW_TILE || drawMode == DRAW_NORMAL || drawMode == DRAW_LEFT
            || drawMode == DRAW_ANIMATE) {
          // XXX Huh? A tile of one? :)
          FormData fd = (FormData) canvas.getLayoutData();
          if (fd == null) {
            fd = new FormData(imgBounds.width  + hpadding, imgBounds.height);
          } else {
            fd.width = imgBounds.width + hpadding;
            fd.height = imgBounds.height;
          }
          canvas.setData("oldSize", new Point(fd.width, fd.height));
View Full Code Here

Examples of org.eclipse.swt.layout.FormData

    if (imageExists) {
      setCanvasImage(currentImageID, null);
    } else {
      Utils.execSWTThread(new AERunnable() {
        public void runSupport() {
          FormData fd = (FormData) canvas.getLayoutData();
          if (fd == null) {
            fd = new FormData(0, 0);
          } else {
            fd.width = 0;
            fd.height = 0;
          }
          canvas.setLayoutData(fd);
View Full Code Here

Examples of org.eclipse.swt.layout.FormData

            null);
        search.setData("execAfterLoad", execAfterLoad);

        search.setUrl(url);

        FormData gd = (FormData) controlBottom.getLayoutData();
        gd.top = new FormAttachment(controlTop, 0);
        gd.height = SWT.DEFAULT;
        controlBottom.setLayoutData(gd);

        gd = (FormData) controlTop.getLayoutData();
View Full Code Here

Examples of org.eclipse.swt.layout.FormData

        Control controlBottom = soSearchResults.getControl();
        Browser search = ((SWTSkinObjectBrowser) soSearchResults).getBrowser();

        soSearchResults.setVisible(false);

        FormData gd = (FormData) controlBottom.getLayoutData();
        if (gd == null) {
          return;
        }
        gd.top = null;
        gd.height = 0;
View Full Code Here

Examples of org.eclipse.swt.layout.FormData

        }
        if (soSash.isAboveVisible()) {
          if (soSideBarPopout != null) {
            Object ld = soSideBarPopout.getControl().getLayoutData();
            if (ld instanceof FormData) {
              FormData fd = (FormData) ld;
              fd.width = 0;
            }
            soSideBarPopout.setVisible(false);

            Utils.relayout(soSideBarPopout.getControl());
          }
        } else {
          if (soSideBarPopout != null) {
            Object ld = soSideBarPopout.getControl().getLayoutData();
            if (ld instanceof FormData) {
              FormData fd = (FormData) ld;
              fd.width = 24;
            }
            soSideBarPopout.setVisible(true);
            soSideBarPopout.getControl().moveAbove(null);
            Utils.relayout(soSideBarPopout.getControl());
View Full Code Here

Examples of org.eclipse.swt.layout.FormData

    if (cBubble == null) {
      textWidget = new Text(createOn, style);
    } else {
      textWidget = new Text(cBubble, style & ~(SWT.BORDER | SWT.SEARCH));
     
      FormData fd = new FormData();
      fd.top = new FormAttachment(0, 2);
      fd.bottom = new FormAttachment(100, -2);
      fd.left = new FormAttachment(0, 17);
      fd.right = new FormAttachment(100, -14);
      textWidget.setLayoutData(fd);
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.