com.vaadin.client.

Class MeasuredSize

  • public class MeasuredSize
    extends Object
    • Constructor Detail

      • MeasuredSize

        public MeasuredSize()
    • Method Detail

      • getOuterHeight

        public double getOuterHeight()
      • getOuterWidth

        public double getOuterWidth()
      • addDependent

        public void addDependent​(String pid)
      • removeDependent

        public void removeDependent​(String pid)
      • hasDependents

        public boolean hasDependents()
      • getDependents

        public com.google.gwt.core.client.JsArrayString getDependents()
      • getInnerHeight

        public double getInnerHeight()
      • getInnerWidth

        public double getInnerWidth()
      • setOuterHeight

        public boolean setOuterHeight​(double height)
      • setOuterWidth

        public boolean setOuterWidth​(double width)
      • getBorderHeight

        public int getBorderHeight()
      • getBorderWidth

        public int getBorderWidth()
      • getPaddingHeight

        public int getPaddingHeight()
      • getPaddingWidth

        public int getPaddingWidth()
      • getMarginHeight

        public int getMarginHeight()
      • getMarginWidth

        public int getMarginWidth()
      • getMarginTop

        public int getMarginTop()
      • getMarginRight

        public int getMarginRight()
      • getMarginBottom

        public int getMarginBottom()
      • getMarginLeft

        public int getMarginLeft()
      • getBorderTop

        public int getBorderTop()
      • getBorderRight

        public int getBorderRight()
      • getBorderBottom

        public int getBorderBottom()
      • getBorderLeft

        public int getBorderLeft()
      • getPaddingTop

        public int getPaddingTop()
      • getPaddingRight

        public int getPaddingRight()
      • getPaddingBottom

        public int getPaddingBottom()
      • getPaddingLeft

        public int getPaddingLeft()
      • measure

        public MeasuredSize.MeasureResult measure​(com.google.gwt.dom.client.Element element)

        Measures paddings, margins, border, height, and weight of the given element and stores the results within this MeasuredSize object. The measurements are unreliable if the element or any of its parents are in the middle of a transform animation.

        Parameters:

        element - element to be measured

        Returns:

        data object for whether the width or height of the given element has changed since previous measure

      • measure

        public MeasuredSize.MeasureResult measure​(com.google.gwt.dom.client.Element element,
                                                  boolean thoroughSizeCheck)

        Measures paddings, margins, border, height, and weight of the given element and stores the results within this MeasuredSize object.

        Parameters:

        element - element to be measured

        thoroughSizeCheck - true if the measuring should use the more reliable size check that requires ensuring that the element is still present in the DOM tree, false for the slightly faster check that will give incorrect size information if this method is called while the element or any of its parents are in the middle of a transform animation.

        Returns:

        data object for whether the width or height of the given element has changed since previous measure