Package gwt.mosaic.client.ui

Examples of gwt.mosaic.client.ui.Insets


  }

  public Insets getMargin() {
    if (margin == Insets.NONE && widget.isAttached()) {
      Element elem = widget.getElement();
      margin = new Insets(ComputedStyle.getMarginTop(elem),
          ComputedStyle.getMarginLeft(elem),
          ComputedStyle.getMarginBottom(elem),
          ComputedStyle.getMarginRight(elem));
      if (Insets.NONE.equals(margin)) {
        WidgetHelper.invalidate(widget);
View Full Code Here


  }

  public Insets getBorder() {
    if (border == Insets.NONE && widget.isAttached()) {
      Element elem = widget.getElement();
      border = new Insets(ComputedStyle.getBorderTopWidth(elem),
          ComputedStyle.getBorderLeftWidth(elem),
          ComputedStyle.getBorderBottomWidth(elem),
          ComputedStyle.getBorderRightWidth(elem));
      if (!Insets.NONE.equals(border)) {
        WidgetHelper.invalidate(widget);
View Full Code Here

  }

  public Insets getPadding() {
    if (padding == Insets.NONE && widget.isAttached()) {
      Element elem = widget.getElement();
      padding = new Insets(ComputedStyle.getPaddingTop(elem),
          ComputedStyle.getPaddingLeft(elem),
          ComputedStyle.getPaddingBottom(elem),
          ComputedStyle.getPaddingRight(elem));
      if (Insets.NONE.equals(padding)) {
        WidgetHelper.invalidate(widget);
View Full Code Here

    }
    return padding;
  }

  public int getWidthContribution() {
    Insets margin = getMargin();
    Insets border = getBorder();
    Insets padding = getPadding();
    return (margin.left + margin.right) + (border.left + border.right)
        + (padding.left + padding.right);
  }
View Full Code Here

    return (margin.left + margin.right) + (border.left + border.right)
        + (padding.left + padding.right);
  }

  public int getHeightContribution() {
    Insets margin = getMargin();
    Insets border = getBorder();
    Insets padding = getPadding();
    return (margin.top + margin.bottom) + (border.top + border.bottom)
        + (padding.top + padding.bottom);
  }
View Full Code Here

    return (margin.top + margin.bottom) + (border.top + border.bottom)
        + (padding.top + padding.bottom);
  }

  public int getMarginWidthContribution() {
    Insets margin = getMargin();
    return (margin.left + margin.right);
  }
View Full Code Here

    Insets margin = getMargin();
    return (margin.left + margin.right);
  }

  public int getMarginHeightContribution() {
    Insets margin = getMargin();
    return (margin.top + margin.bottom);
  }
View Full Code Here

    Insets margin = getMargin();
    return (margin.top + margin.bottom);
  }

  public int getBorderWidthContribution() {
    Insets border = getBorder();
    return (border.left + border.right);
  }
View Full Code Here

    Insets border = getBorder();
    return (border.left + border.right);
  }

  public int getBorderHeightContribution() {
    Insets border = getBorder();
    return (border.top + border.bottom);
  }
View Full Code Here

    Insets border = getBorder();
    return (border.top + border.bottom);
  }

  public int getPaddingWidthContribution() {
    Insets padding = getPadding();
    return (padding.left + padding.right);
  }
View Full Code Here

TOP

Related Classes of gwt.mosaic.client.ui.Insets

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.