diff options
author | Marc Englund <marc.englund@itmill.com> | 2008-01-30 14:36:23 +0000 |
---|---|---|
committer | Marc Englund <marc.englund@itmill.com> | 2008-01-30 14:36:23 +0000 |
commit | 597630487829207a5427d0a90cd78844dac2d862 (patch) | |
tree | d2b151dc9cac68e1ca5f9d318a065e67140d8b6d /src/com/itmill/toolkit/ui/Table.java | |
parent | 4f9601c5b7d5d56b690289b5fe09647283c46fd4 (diff) | |
download | vaadin-framework-597630487829207a5427d0a90cd78844dac2d862.tar.gz vaadin-framework-597630487829207a5427d0a90cd78844dac2d862.zip |
Selects now listen for changes to item/property as appropriate. Version 1. Table still needs work (might 'leak' listeners as it is now)
svn changeset:3671/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/ui/Table.java')
-rw-r--r-- | src/com/itmill/toolkit/ui/Table.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/ui/Table.java b/src/com/itmill/toolkit/ui/Table.java index 12e24c3b1a..9539653b3c 100644 --- a/src/com/itmill/toolkit/ui/Table.java +++ b/src/com/itmill/toolkit/ui/Table.java @@ -1681,7 +1681,8 @@ public class Table extends AbstractSelect implements Action.Container, // Stops listening the old properties and initialise the list if (listenedProperties == null) { listenedProperties = new LinkedList(); - } else { + } else if (reqRowsToPaint < 0) { + // TODO the above if is not perfect - should be fixed properly for (final Iterator i = listenedProperties.iterator(); i.hasNext();) { ((Property.ValueChangeNotifier) i.next()).removeListener(this); } @@ -1690,7 +1691,8 @@ public class Table extends AbstractSelect implements Action.Container, // Detach old visible component from the table if (visibleComponents == null) { visibleComponents = new LinkedList(); - } else { + } else if (reqRowsToPaint < 0) { + // TODO the above if is not perfect - should be fixed properly for (final Iterator i = visibleComponents.iterator(); i.hasNext();) { ((Component) i.next()).setParent(null); } |