|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.terminal.gwt.client.LayoutManager
public class LayoutManager
| Constructor Summary | |
|---|---|
LayoutManager()
|
|
| Method Summary | |
|---|---|
void |
addElementResizeListener(com.google.gwt.dom.client.Element element,
ElementResizeListener listener)
Adds a listener that will be notified whenever the size of a specific element changes. |
void |
forceLayout()
|
static LayoutManager |
get(ApplicationConnection connection)
Gets the layout manager associated with the given ApplicationConnection. |
int |
getBorderHeight(com.google.gwt.dom.client.Element element)
Gets the border height (top border + bottom border) of the given element, provided that it has been measured. |
int |
getBorderWidth(com.google.gwt.dom.client.Element element)
Gets the border width (left border + right border) of the given element, provided that it has been measured. |
int |
getInnerHeight(com.google.gwt.dom.client.Element element)
Gets the inner height (excluding margins, paddings and borders) of the given element, provided that it has been measured. |
int |
getInnerWidth(com.google.gwt.dom.client.Element element)
Gets the inner width (excluding margins, paddings and borders) of the given element, provided that it has been measured. |
int |
getMarginBottom(com.google.gwt.dom.client.Element element)
Gets the bottom margin of the given element, provided that it has been measured. |
int |
getMarginLeft(com.google.gwt.dom.client.Element element)
Gets the left margin of the given element, provided that it has been measured. |
int |
getMarginRight(com.google.gwt.dom.client.Element element)
Gets the right margin of the given element, provided that it has been measured. |
int |
getMarginTop(com.google.gwt.dom.client.Element element)
Gets the top margin of the given element, provided that it has been measured. |
int |
getOuterHeight(com.google.gwt.dom.client.Element element)
Gets the outer height (including margins, paddings and borders) of the given element, provided that it has been measured. |
int |
getOuterWidth(com.google.gwt.dom.client.Element element)
Gets the outer width (including margins, paddings and borders) of the given element, provided that it has been measured. |
int |
getPaddingBottom(com.google.gwt.dom.client.Element element)
Gets the bottom padding of the given element, provided that it has been measured. |
int |
getPaddingHeight(com.google.gwt.dom.client.Element element)
Gets the padding height (top padding + bottom padding) of the given element, provided that it has been measured. |
int |
getPaddingLeft(com.google.gwt.dom.client.Element element)
Gets the left padding of the given element, provided that it has been measured. |
int |
getPaddingRight(com.google.gwt.dom.client.Element element)
Gets the right padding of the given element, provided that it has been measured. |
int |
getPaddingTop(com.google.gwt.dom.client.Element element)
Gets the top padding of the given element, provided that it has been measured. |
int |
getPaddingWidth(com.google.gwt.dom.client.Element element)
Gets the padding width (left padding + right padding) of the given element, provided that it has been measured. |
boolean |
isLayoutRunning()
|
void |
layoutNow()
|
void |
registerDependency(ManagedLayout owner,
com.google.gwt.dom.client.Element element)
Registers that a ManagedLayout is depending on the size of an Element. |
void |
removeElementResizeListener(com.google.gwt.dom.client.Element element,
ElementResizeListener listener)
Removes an element resize listener from the provided element. |
void |
reportHeightAssignedToRelative(ComponentConnector component,
int assignedHeight)
Registers the height reserved for a relatively sized component. |
void |
reportOuterHeight(ComponentConnector component,
int outerHeight)
Registers the outer height (including margins, borders and paddings) of a component. |
void |
reportOuterWidth(ComponentConnector component,
int outerWidth)
Registers the outer width (including margins, borders and paddings) of a component. |
void |
reportWidthAssignedToRelative(ComponentConnector component,
int assignedWidth)
Registers the width reserved for a relatively sized component. |
void |
setConnection(ApplicationConnection connection)
|
void |
setEverythingNeedsMeasure()
|
protected void |
setMeasuredSize(com.google.gwt.dom.client.Element element,
MeasuredSize measuredSize)
Assigns a measured size to an element. |
void |
setNeedsHorizontalLayout(ManagedLayout layout)
Marks that a ManagedLayout should be layouted horizontally in the next layout phase even if none of the elements managed by the layout have been resized horizontally. |
void |
setNeedsLayout(ManagedLayout layout)
Marks that a ManagedLayout should be layouted in the next layout phase even if none of the elements managed by the layout have been resized. |
void |
setNeedsMeasure(ComponentConnector component)
Informs this LayoutManager that the size of a component might have changed. |
void |
setNeedsVerticalLayout(ManagedLayout layout)
Marks that a ManagedLayout should be layouted vertically in the next layout phase even if none of the elements managed by the layout have been resized vertically. |
void |
unregisterDependency(ManagedLayout owner,
com.google.gwt.dom.client.Element element)
Registers that a ManagedLayout is no longer depending on the size of an Element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutManager()
| Method Detail |
|---|
public void setConnection(ApplicationConnection connection)
public static LayoutManager get(ApplicationConnection connection)
ApplicationConnection.
connection - the application connection to get a layout manager for
public void registerDependency(ManagedLayout owner,
com.google.gwt.dom.client.Element element)
owner - the ManagedLayout that depends on an elementelement - the Element that should be measured
protected void setMeasuredSize(com.google.gwt.dom.client.Element element,
MeasuredSize measuredSize)
element - the dom element to attach the measured size tomeasuredSize - the measured size to attach to the element. If
null, any previous measured size is removed.
public void unregisterDependency(ManagedLayout owner,
com.google.gwt.dom.client.Element element)
owner - the ManagedLayout no longer depends on an elementelement - the Element that that no longer needs to be measuredregisterDependency(ManagedLayout, Element)public boolean isLayoutRunning()
public void layoutNow()
public void forceLayout()
public final void setNeedsLayout(ManagedLayout layout)
layout - the managed layout that should be layoutedpublic final void setNeedsHorizontalLayout(ManagedLayout layout)
setNeedsLayout(ManagedLayout).
layout - the managed layout that should be layoutedpublic final void setNeedsVerticalLayout(ManagedLayout layout)
setNeedsLayout(ManagedLayout).
layout - the managed layout that should be layoutedpublic final int getOuterHeight(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public final int getOuterWidth(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public final int getInnerHeight(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public final int getInnerWidth(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public final int getBorderHeight(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public int getPaddingHeight(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public int getBorderWidth(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public int getPaddingWidth(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public int getPaddingTop(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public int getPaddingLeft(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public int getPaddingBottom(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public int getPaddingRight(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public int getMarginTop(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public int getMarginRight(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public int getMarginBottom(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public int getMarginLeft(com.google.gwt.dom.client.Element element)
element - the element to get the measured size for
public void reportOuterHeight(ComponentConnector component,
int outerHeight)
component - the component for which the size is reportedouterHeight - the new outer height (including margins, borders and paddings)
of the component in pixels
public void reportHeightAssignedToRelative(ComponentConnector component,
int assignedHeight)
component - the relatively sized component for which the size is reportedassignedHeight - the inner height of the relatively sized component's parent
element in pixels
public void reportWidthAssignedToRelative(ComponentConnector component,
int assignedWidth)
component - the relatively sized component for which the size is reportedassignedWidth - the inner width of the relatively sized component's parent
element in pixels
public void reportOuterWidth(ComponentConnector component,
int outerWidth)
component - the component for which the size is reportedouterWidth - the new outer width (including margins, borders and paddings)
of the component in pixels
public void addElementResizeListener(com.google.gwt.dom.client.Element element,
ElementResizeListener listener)
element - the element that should be checked for size changeslistener - an ElementResizeListener that will be informed whenever the
size of the target element has changed
public void removeElementResizeListener(com.google.gwt.dom.client.Element element,
ElementResizeListener listener)
element - the element to which the element resize listener was
previously addedlistener - the ElementResizeListener that should no longer get informed
about size changes to the target element.public void setNeedsMeasure(ComponentConnector component)
component - the component whose size might have changed.public void setEverythingNeedsMeasure()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||