diff options
author | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2008-12-18 19:53:52 +0000 |
---|---|---|
committer | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2008-12-18 19:53:52 +0000 |
commit | 3ee11d9a6dd6a9297e9d53468ed3425df3a6a3b8 (patch) | |
tree | 2b2be9003f72f48f98c33a1d9d7dc031bd4af813 /src | |
parent | 1c4d396442b3f8fce41c426e4332499be6684a06 (diff) | |
download | vaadin-framework-3ee11d9a6dd6a9297e9d53468ed3425df3a6a3b8.tar.gz vaadin-framework-3ee11d9a6dd6a9297e9d53468ed3425df3a6a3b8.zip |
Fixed #2379 : FeatureBrowser Table demo does not start
svn changeset:6291/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/com/itmill/toolkit/ui/Table.java | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/com/itmill/toolkit/ui/Table.java b/src/com/itmill/toolkit/ui/Table.java index fe8d7b18bc..29f38ce347 100644 --- a/src/com/itmill/toolkit/ui/Table.java +++ b/src/com/itmill/toolkit/ui/Table.java @@ -3025,19 +3025,22 @@ public class Table extends AbstractSelect implements Action.Container, // Virtually identical to AbstractCompoenentContainer.setEnabled(); public void requestRepaintAll() { requestRepaint(); - for (Iterator childIterator = visibleComponents.iterator(); childIterator - .hasNext();) { - Component c = (Component) childIterator.next(); - if (c instanceof Form) { - // Form has children in layout, but is not ComponentContainer - c.requestRepaint(); - ((Form) c).getLayout().requestRepaintAll(); - } else if (c instanceof Table) { - ((Table) c).requestRepaintAll(); - } else if (c instanceof ComponentContainer) { - ((ComponentContainer) c).requestRepaintAll(); - } else { - c.requestRepaint(); + if (visibleComponents != null) { + for (Iterator childIterator = visibleComponents.iterator(); childIterator + .hasNext();) { + Component c = (Component) childIterator.next(); + if (c instanceof Form) { + // Form has children in layout, but is not + // ComponentContainer + c.requestRepaint(); + ((Form) c).getLayout().requestRepaintAll(); + } else if (c instanceof Table) { + ((Table) c).requestRepaintAll(); + } else if (c instanceof ComponentContainer) { + ((ComponentContainer) c).requestRepaintAll(); + } else { + c.requestRepaint(); + } } } } |