Package org.eclipse.swt.layout

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


            + 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

            + 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

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

    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

            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

        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

        }
        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

    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

    so2nd = skinObject.getSkin().getSkinObject("global-toolbar-2nd");

    soGap = skinObject.getSkin().getSkinObject("toolbar-gap");
    if (soGap != null) {
      Control cGap = soGap.getControl();
      FormData fd = (FormData) cGap.getLayoutData();
      if (fd.width == SWT.DEFAULT) {
        cGap.getParent().addListener(SWT.Resize, new Listener() {
          public void handleEvent(Event event) {
            resizeGap();
          }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.layout.FormData

Copyright © 2018 www.massapicom. 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.