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 class
MeasuredSize.MeasureResult
-
Constructor Summary
Constructors Constructor Description MeasuredSize()
-
Method Summary
All Methods Modifier and Type Method Description void
addDependent(String pid)
int
getBorderBottom()
int
getBorderHeight()
int
getBorderLeft()
int
getBorderRight()
int
getBorderTop()
int
getBorderWidth()
com.google.gwt.core.client.JsArrayString
getDependents()
double
getInnerHeight()
double
getInnerWidth()
int
getMarginBottom()
int
getMarginHeight()
int
getMarginLeft()
int
getMarginRight()
int
getMarginTop()
int
getMarginWidth()
double
getOuterHeight()
double
getOuterWidth()
int
getPaddingBottom()
int
getPaddingHeight()
int
getPaddingLeft()
int
getPaddingRight()
int
getPaddingTop()
int
getPaddingWidth()
boolean
hasDependents()
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.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.void
removeDependent(String pid)
boolean
setOuterHeight(double height)
boolean
setOuterWidth(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 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 measuredReturns:
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 measuredthoroughSizeCheck
-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
-
-