diff options
author | Artur Signell <artur@vaadin.com> | 2012-03-14 09:52:50 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-03-14 16:01:09 +0200 |
commit | a2e8f04cdf627d1ec673899289174b954b8766c0 (patch) | |
tree | 9c269266f3d2b962a3e05b3f05e86c215bdc747a /src/com/vaadin/ui/Table.java | |
parent | 97dbd83137d0c11ebef8370ddfb3252b18eec984 (diff) | |
download | vaadin-framework-a2e8f04cdf627d1ec673899289174b954b8766c0.tar.gz vaadin-framework-a2e8f04cdf627d1ec673899289174b954b8766c0.zip |
Separated Component.isEnabled/isVisible from Connector enabled state.
Connector.isConnectorEnabled determines if the Connector can receive
messages from its counter part. Component isEnabled/isVisible only
returns the state of the component. Made Table implement HasComponents.
Diffstat (limited to 'src/com/vaadin/ui/Table.java')
-rw-r--r-- | src/com/vaadin/ui/Table.java | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/com/vaadin/ui/Table.java b/src/com/vaadin/ui/Table.java index c9d4ca63a3..52981b875f 100644 --- a/src/com/vaadin/ui/Table.java +++ b/src/com/vaadin/ui/Table.java @@ -77,7 +77,7 @@ import com.vaadin.terminal.gwt.client.ui.dd.VLazyInitItemIdentifiers; @ClientWidget(TableConnector.class) public class Table extends AbstractSelect implements Action.Container, Container.Ordered, Container.Sortable, ItemClickSource, - ItemClickNotifier, DragSource, DropTarget { + ItemClickNotifier, DragSource, DropTarget, HasComponents { private static final Logger logger = Logger .getLogger(Table.class.getName()); @@ -5288,11 +5288,23 @@ public class Table extends AbstractSelect implements Action.Container, @Override public void setVisible(boolean visible) { - if (!isVisible() && visible) { + if (!isVisibleInContext() && visible) { // We need to ensure that the rows are sent to the client when the // Table is made visible if it has been rendered as invisible. setRowCacheInvalidated(true); } super.setVisible(visible); } + + public Iterator<Component> iterator() { + return getComponentIterator(); + } + + public Iterator<Component> getComponentIterator() { + return visibleComponents.iterator(); + } + + public boolean isComponentVisible(Component childComponent) { + return true; + } } |