public void registerDependency(ManagedLayout owner, Element element) {
MeasuredSize measuredSize = ensureMeasured(element);
- setNeedsUpdate(owner);
+ setNeedsLayout(owner);
measuredSize.addDependent(owner.getConnectorId());
}
.getComponentConnectors();
for (ComponentConnector connector : paintableWidgets) {
if (connector instanceof ManagedLayout) {
- setNeedsUpdate((ManagedLayout) connector);
+ setNeedsLayout((ManagedLayout) connector);
}
}
setEverythingNeedsMeasure();
}
// TODO Rename to setNeedsLayout
- public final void setNeedsUpdate(ManagedLayout layout) {
- setWidthNeedsUpdate(layout);
- setHeightNeedsUpdate(layout);
+ public final void setNeedsLayout(ManagedLayout layout) {
+ setNeedsHorizontalLayout(layout);
+ setNeedsVerticalLayout(layout);
}
- public final void setWidthNeedsUpdate(ManagedLayout layout) {
+ public final void setNeedsHorizontalLayout(ManagedLayout layout) {
needsHorizontalLayout.add(layout);
}
- public final void setHeightNeedsUpdate(ManagedLayout layout) {
+ public final void setNeedsVerticalLayout(ManagedLayout layout) {
needsVerticalLayout.add(layout);
}
if (newWidth.endsWith("%") != lastKnownWidth.endsWith("%")) {
ComponentContainerConnector parent = getParent();
if (parent instanceof ManagedLayout) {
- getLayoutManager().setWidthNeedsUpdate((ManagedLayout) parent);
+ getLayoutManager().setNeedsHorizontalLayout((ManagedLayout) parent);
}
}
if (newHeight.endsWith("%") != lastKnownHeight.endsWith("%")) {
ComponentContainerConnector parent = getParent();
if (parent instanceof ManagedLayout) {
- getLayoutManager().setHeightNeedsUpdate((ManagedLayout) parent);
+ getLayoutManager().setNeedsVerticalLayout((ManagedLayout) parent);
}
}
updateCaption(child);
}
}
- getLayoutManager().setNeedsUpdate(this);
+ getLayoutManager().setNeedsLayout(this);
}
@Override
}
}// while
- getLayoutManager().setWidthNeedsUpdate(this);
+ getLayoutManager().setNeedsHorizontalLayout(this);
}// updateFromUIDL
caption.updateCaption();
} else {
layout.setCaption(component.getWidget(), null);
- getLayoutManager().setNeedsUpdate(this);
+ getLayoutManager().setNeedsLayout(this);
}
}
layout.updateSpacingStyleName(getState().isSpacing());
- getLayoutManager().setNeedsUpdate(this);
+ getLayoutManager().setNeedsLayout(this);
}
private int getSizeForInnerSize(int size, boolean isVertical) {
// appearing/disappearing scrollbars into account.
getConnection().runDescendentsLayout(getWidget());
- getLayoutManager().setNeedsUpdate(this);
+ getLayoutManager().setNeedsLayout(this);
}
getLayoutManager().setNeedsMeasure(
TableConnector.this.getParent());
getLayoutManager()
- .setHeightNeedsUpdate(TableConnector.this);
+ .setNeedsVerticalLayout(TableConnector.this);
getLayoutManager().layoutNow();
}
});
// correctly
if (isRealUpdate(uidl)) {
getWidget().updateCaptions(uidl);
- getLayoutManager().setWidthNeedsUpdate(this);
+ getLayoutManager().setNeedsHorizontalLayout(this);
}
super.updateFromUIDL(uidl, client);