public class MeasuredSize extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MeasuredSize.MeasureResult |
| Constructor and Description |
|---|
MeasuredSize() |
| Modifier and Type | Method and 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) |
public double getOuterHeight()
public double getOuterWidth()
public void addDependent(String pid)
public void removeDependent(String pid)
public boolean hasDependents()
public com.google.gwt.core.client.JsArrayString getDependents()
public double getInnerHeight()
public double getInnerWidth()
public boolean setOuterHeight(double height)
public boolean setOuterWidth(double width)
public int getBorderHeight()
public int getBorderWidth()
public int getPaddingHeight()
public int getPaddingWidth()
public int getMarginHeight()
public int getMarginWidth()
public int getMarginTop()
public int getMarginRight()
public int getMarginBottom()
public int getMarginLeft()
public int getBorderTop()
public int getBorderRight()
public int getBorderBottom()
public int getBorderLeft()
public int getPaddingTop()
public int getPaddingRight()
public int getPaddingBottom()
public int getPaddingLeft()
public MeasuredSize.MeasureResult measure(com.google.gwt.dom.client.Element element)
MeasuredSize object.
The measurements are unreliable if the element or any of its parents are
in the middle of a transform animation.element - element to be measured#measure(Element, boolean)}public MeasuredSize.MeasureResult measure(com.google.gwt.dom.client.Element element, boolean thoroughSizeCheck)
MeasuredSize object.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.Copyright © 2021 Vaadin Ltd. All rights reserved.