*/
package com.vaadin.terminal.gwt.client.ui;
-import java.util.HashSet;
import java.util.Iterator;
+import java.util.List;
import com.google.gwt.dom.client.Node;
import com.google.gwt.dom.client.Style;
public abstract class AbstractOrderedLayoutConnector extends
AbstractComponentContainerConnector implements DirectionalManagedLayout {
+ private List<ComponentConnector> previousChildren;
+
@Override
public void init() {
getLayoutManager().registerDependency(this,
return;
}
- HashSet<ComponentConnector> previousChildren = new HashSet<ComponentConnector>(
- getChildren());
-
VMeasuringOrderedLayout layout = getWidget();
ValueMap expandRatios = uidl.getMapAttribute("expandRatios");
int currentIndex = 0;
// TODO Support reordering elements!
+ // FIXME: move to connectorHierarchyChanged!!
for (final Iterator<Object> it = uidl.getChildIterator(); it.hasNext();) {
final UIDL childUIDL = (UIDL) it.next();
final ComponentConnector child = client.getPaintable(childUIDL);
}
}
+ @Override
+ public void connectorHierarchyChanged(
+ com.vaadin.terminal.gwt.client.ConnectorHierarchyChangedEvent event) {
+ previousChildren = event.getOldChildren();
+ };
+
}