public class LayoutDependencyTree extends Object
| Constructor and Description |
|---|
LayoutDependencyTree(ApplicationConnection connection)
Constructs a layout dependency helper class.
|
| Modifier and Type | Method and Description |
|---|---|
ManagedLayout[] |
getHorizontalLayoutTargets()
Deprecated.
As of 7.0.1, use
getHorizontalLayoutTargetsJsArray()
for improved performance. |
com.google.gwt.core.client.JsArrayString |
getHorizontalLayoutTargetsJsArray()
Returns a JsArrayString array of connectorIds for managed layouts that
are waiting for horizontal layouting.
|
Collection<ComponentConnector> |
getMeasureTargets()
Deprecated.
As of 7.0.1, use
getMeasureTargetsJsArray() for
improved performance. |
com.google.gwt.core.client.JsArrayString |
getMeasureTargetsJsArray()
Returns a JsArrayString array of connectorIds for components that are
waiting for either horizontal or vertical measuring.
|
ComponentConnector |
getScrollingBoundary(ComponentConnector connector)
Returns the scrolling boundary for this component.
|
ManagedLayout[] |
getVerticalLayoutTargets()
Deprecated.
As of 7.0.1, use
getVerticalLayoutTargetsJsArray()
for improved performance. |
com.google.gwt.core.client.JsArrayString |
getVerticalLayoutTargetsJsArray()
Returns a JsArrayString array of connectorIds for managed layouts that
are waiting for vertical layouting.
|
boolean |
hasConnectorsToMeasure()
Returns whether there are any components waiting for either horizontal or
vertical measuring.
|
boolean |
hasHorizontalConnectorToLayout()
Returns whether there are any managed layouts waiting for horizontal
layouting.
|
boolean |
hasVerticaConnectorToLayout()
Returns whether there are any managed layouts waiting for vertical
layouting.
|
void |
logDependencyStatus(ComponentConnector connector)
Logs horizontal and vertical
LayoutDependency state for the given
connector. |
void |
markAsHorizontallyLayouted(ManagedLayout layout)
Marks the managed layout as layouted horizontally and propagates the need
of horizontal measuring for any components that might have got their size
changed as a result.
|
void |
markAsVerticallyLayouted(ManagedLayout layout)
Marks the managed layout as layouted vertically and propagates the need
of vertical measuring for any components that might have got their size
changed as a result.
|
void |
markHeightAsChanged(ComponentConnector connector)
Marks the component's height as changed.
|
void |
markWidthAsChanged(ComponentConnector connector)
Marks the component's width as changed.
|
boolean |
noMoreChangesExpected(ComponentConnector connector)
Returns whether all required layouting and measuring has been done for
this component to both directions and there are no more blockers waiting
for handling.
|
void |
setNeedsHorizontalLayout(ManagedLayout layout,
boolean needsLayout)
Deprecated.
As of 7.0.1, use
setNeedsHorizontalLayout(String, boolean) for
improved performance. |
void |
setNeedsHorizontalLayout(String connectorId,
boolean needsLayout)
Informs this LayoutDependencyTree that the horizontal size of a managed
layout might have changed and it needs layouting, or that the layouting
is no longer necessary.
|
void |
setNeedsHorizontalMeasure(ComponentConnector connector,
boolean needsMeasure)
Informs this LayoutDependencyTree that the horizontal size of a component
might have changed and it needs measuring, or that the measuring is no
longer necessary.
|
void |
setNeedsHorizontalMeasure(String connectorId,
boolean needsMeasure)
Deprecated.
Use
setNeedsHorizontalMeasure(ComponentConnector, boolean)
for improved performance. |
void |
setNeedsMeasure(ComponentConnector connector,
boolean needsMeasure)
Informs this LayoutDependencyTree that the size of a component might have
changed and it needs measuring in both directions, or that the measuring
is no longer necessary.
|
void |
setNeedsMeasure(String connectorId,
boolean needsMeasure)
Deprecated.
As of 7.4.2, use
setNeedsMeasure(ComponentConnector, boolean) for
improved performance. |
void |
setNeedsVerticalLayout(ManagedLayout layout,
boolean needsLayout)
Deprecated.
As of 7.0.1, use
setNeedsVerticalLayout(String, boolean) for improved
performance. |
void |
setNeedsVerticalLayout(String connectorId,
boolean needsLayout)
Informs this LayoutDependencyTree that the vertical size of a managed
layout might have changed and it needs layouting, or that the layouting
is no longer necessary.
|
void |
setNeedsVerticalMeasure(ComponentConnector connector,
boolean needsMeasure)
Informs this LayoutDependencyTree that the vertical size of a component
might have changed and it needs measuring, or that the measuring is no
longer necessary.
|
void |
setNeedsVerticalMeasure(String connectorId,
boolean needsMeasure)
Deprecated.
Use
setNeedsVerticalMeasure(ComponentConnector, boolean)
for improved performance. |
public LayoutDependencyTree(ApplicationConnection connection)
connection - the current application connection instance, should not be
nullLayoutDependencyTreepublic void setNeedsMeasure(ComponentConnector connector, boolean needsMeasure)
connector - the connector of the component whose size might have changed,
should not be nullneedsMeasure - true if measuring should be enabled, false if
measuring should be disabled (disabling is only effective if
there are no blockers)@Deprecated public void setNeedsMeasure(String connectorId, boolean needsMeasure)
setNeedsMeasure(ComponentConnector, boolean) for
improved performance.connectorId - the connector id of the component whose size might have
changedneedsMeasure - true if measuring should be enabled, false if
measuring should be disabled (disabling is only effective if
there are no blockers)public void setNeedsHorizontalMeasure(ComponentConnector connector, boolean needsMeasure)
connector - the connector of the component whose horizontal size might
have changed, should not be nullneedsMeasure - true if measuring should be enabled, false if
measuring should be disabled (disabling is only effective if
there are no blockers)@Deprecated public void setNeedsHorizontalMeasure(String connectorId, boolean needsMeasure)
setNeedsHorizontalMeasure(ComponentConnector, boolean)
for improved performance.connectorId - the connector id of the component whose horizontal size might
have changedneedsMeasure - true if measuring should be enabled, false if
measuring should be disabled (disabling is only effective if
there are no blockers)public void setNeedsVerticalMeasure(ComponentConnector connector, boolean needsMeasure)
connector - the connector of the component whose vertical size might have
changed, should not be nullneedsMeasure - true if measuring should be enabled, false if
measuring should be disabled (disabling is only effective if
there are no blockers)@Deprecated public void setNeedsVerticalMeasure(String connectorId, boolean needsMeasure)
setNeedsVerticalMeasure(ComponentConnector, boolean)
for improved performance.connectorId - the connector id of the component whose vertical size might
have changedneedsMeasure - true if measuring should be enabled, false if
measuring should be disabled (disabling is only effective if
there are no blockers)@Deprecated public void setNeedsHorizontalLayout(ManagedLayout layout, boolean needsLayout)
setNeedsHorizontalLayout(String, boolean) for
improved performance.layout - the managed layout whose horizontal size might have changed,
should not be nullneedsLayout - true if layouting should be enabled, false if
layouting should be disabled (disabling is only effective if
there are no blockers)public void setNeedsHorizontalLayout(String connectorId, boolean needsLayout)
connectorId - the connector id of the managed layout whose horizontal size
might have changedneedsLayout - true if layouting should be enabled, false if
layouting should be disabled (disabling is only effective if
there are no blockers)@Deprecated public void setNeedsVerticalLayout(ManagedLayout layout, boolean needsLayout)
setNeedsVerticalLayout(String, boolean) for improved
performance.layout - the managed layout whose vertical size might have changed,
should not be nullneedsLayout - true if layouting should be enabled, false if
layouting should be disabled (disabling is only effective if
there are no blockers)public void setNeedsVerticalLayout(String connectorId, boolean needsLayout)
connectorId - the connector id of the managed layout whose vertical size
might have changedneedsLayout - true if layouting should be enabled, false if
layouting should be disabled (disabling is only effective if
there are no blockers)public void markAsHorizontallyLayouted(ManagedLayout layout)
layout - the managed layout whose horizontal layouting has been done,
should not be nullpublic void markAsVerticallyLayouted(ManagedLayout layout)
layout - the managed layout whose vertical layouting has been done,
should not be nullpublic void markHeightAsChanged(ComponentConnector connector)
connector - the connector of the component whose height has changed,
should not be nullpublic void markWidthAsChanged(ComponentConnector connector)
connector - the connector of the component whose width has changed, should
not be nullpublic boolean hasConnectorsToMeasure()
true if either measure queue contains anything,
false otherwisepublic boolean hasHorizontalConnectorToLayout()
true if horizontal layouting queue is not empty,
false otherwisepublic boolean hasVerticaConnectorToLayout()
true if vertical layouting queue is not empty,
false otherwise@Deprecated public ManagedLayout[] getHorizontalLayoutTargets()
getHorizontalLayoutTargetsJsArray()
for improved performance.@Deprecated public ManagedLayout[] getVerticalLayoutTargets()
getVerticalLayoutTargetsJsArray()
for improved performance.public com.google.gwt.core.client.JsArrayString getHorizontalLayoutTargetsJsArray()
public com.google.gwt.core.client.JsArrayString getVerticalLayoutTargetsJsArray()
@Deprecated public Collection<ComponentConnector> getMeasureTargets()
getMeasureTargetsJsArray() for
improved performance.public com.google.gwt.core.client.JsArrayString getMeasureTargetsJsArray()
public void logDependencyStatus(ComponentConnector connector)
LayoutDependency state for the given
connector.connector - the connector whose state to log, should not be nullpublic boolean noMoreChangesExpected(ComponentConnector connector)
connector - the connector to check, should not be nulltrue if nothing is pending, false otherwisepublic ComponentConnector getScrollingBoundary(ComponentConnector connector)
MayScrollChildren has been found.connector - the connector to check, should not be nullnull if not foundCopyright © 2023 Vaadin Ltd. All rights reserved.