diff options
author | Henri Sara <henri.sara@itmill.com> | 2010-10-26 14:58:06 +0000 |
---|---|---|
committer | Henri Sara <henri.sara@itmill.com> | 2010-10-26 14:58:06 +0000 |
commit | 089f43092d7bf6f99e5abca56415d8cf6fcc3cf2 (patch) | |
tree | bfb23494c862d7072ffbdf127ca9518e149507cd /src/com/vaadin/ui/TabSheet.java | |
parent | a98ecb2b8d2949eec1b32a66eb8e1f5cddb5910d (diff) | |
download | vaadin-framework-089f43092d7bf6f99e5abca56415d8cf6fcc3cf2.tar.gz vaadin-framework-089f43092d7bf6f99e5abca56415d8cf6fcc3cf2.zip |
#4611 add getComponentCount() method for ComponentContainer implementations
svn changeset:15724/svn branch:6.5
Diffstat (limited to 'src/com/vaadin/ui/TabSheet.java')
-rw-r--r-- | src/com/vaadin/ui/TabSheet.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/TabSheet.java b/src/com/vaadin/ui/TabSheet.java index ffbacefce1..89a35ce69f 100644 --- a/src/com/vaadin/ui/TabSheet.java +++ b/src/com/vaadin/ui/TabSheet.java @@ -124,6 +124,16 @@ public class TabSheet extends AbstractComponentContainer { } /** + * Gets the number of contained components (tabs). Consistent with the + * iterator returned by {@link #getComponentIterator()}. + * + * @return the number of contained components + */ + public int getComponentCount() { + return components.size(); + } + + /** * Removes a component and its corresponding tab. * * If the tab was selected, the first eligible (visible and enabled) |