aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/TabSheet.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/ui/TabSheet.java')
-rw-r--r--src/com/vaadin/ui/TabSheet.java10
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)