Package com.vaadin.client
Class MeasuredSize
- java.lang.Object
-
- com.vaadin.client.MeasuredSize
-
public class MeasuredSize extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMeasuredSize.MeasureResult
-
Constructor Summary
Constructors Constructor Description MeasuredSize()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDependent(String pid)intgetBorderBottom()intgetBorderHeight()intgetBorderLeft()intgetBorderRight()intgetBorderTop()intgetBorderWidth()com.google.gwt.core.client.JsArrayStringgetDependents()doublegetInnerHeight()doublegetInnerWidth()intgetMarginBottom()intgetMarginHeight()intgetMarginLeft()intgetMarginRight()intgetMarginTop()intgetMarginWidth()doublegetOuterHeight()doublegetOuterWidth()intgetPaddingBottom()intgetPaddingHeight()intgetPaddingLeft()intgetPaddingRight()intgetPaddingTop()intgetPaddingWidth()booleanhasDependents()MeasuredSize.MeasureResultmeasure(com.google.gwt.dom.client.Element element)Measures paddings, margins, border, height, and weight of the given element and stores the results within thisMeasuredSizeobject.MeasuredSize.MeasureResultmeasure(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 thisMeasuredSizeobject.voidremoveDependent(String pid)booleansetOuterHeight(double height)booleansetOuterWidth(double width)
-
-
-
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 thisMeasuredSizeobject. 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 thisMeasuredSizeobject.- Parameters:
element- element to be measuredthoroughSizeCheck-trueif the measuring should use the more reliable size check that requires ensuring that the element is still present in the DOM tree,falsefor 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
-
-