summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui
diff options
context:
space:
mode:
authorJohn Alhroos <john.ahlroos@itmill.com>2010-12-22 09:07:23 +0000
committerJohn Alhroos <john.ahlroos@itmill.com>2010-12-22 09:07:23 +0000
commit215e7efbfd0afc3b08b1bd8fc76d5c53c2866474 (patch)
tree156d331233ae77fd5be1677d3f511d89cf474ac8 /src/com/vaadin/ui
parent7b676e2d71a6ac3cb16550aa2c61af092527a840 (diff)
downloadvaadin-framework-215e7efbfd0afc3b08b1bd8fc76d5c53c2866474.tar.gz
vaadin-framework-215e7efbfd0afc3b08b1bd8fc76d5c53c2866474.zip
JavaDoc fix.
svn changeset:16618/svn branch:6.5
Diffstat (limited to 'src/com/vaadin/ui')
-rw-r--r--src/com/vaadin/ui/TabSheet.java13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/com/vaadin/ui/TabSheet.java b/src/com/vaadin/ui/TabSheet.java
index 7d43b374c7..956eb6f97f 100644
--- a/src/com/vaadin/ui/TabSheet.java
+++ b/src/com/vaadin/ui/TabSheet.java
@@ -178,12 +178,7 @@ public class TabSheet extends AbstractComponentContainer {
* the Tab to remove
*/
public void removeTab(Tab tab) {
- for (Component c : tabs.keySet()) {
- if (tabs.get(c).equals(tab)) {
- removeComponent(c);
- break;
- }
- }
+ removeComponent(tab.getComponent());
}
/**
@@ -243,7 +238,7 @@ public class TabSheet extends AbstractComponentContainer {
* the icon to be set for the component and used rendered in tab
* bar
* @param position
- * the index at where the the tab should be added.
+ * the position at where the the tab should be added.
* @return the created {@link Tab}
*/
public Tab addTab(Component c, String caption, Resource icon, int position) {
@@ -293,7 +288,7 @@ public class TabSheet extends AbstractComponentContainer {
* @param c
* the component to be added onto tab - should not be null.
* @param position
- * The index where the tab should be added
+ * The position where the tab should be added
* @return the created {@link Tab}
*/
public Tab addTab(Component c, int position) {
@@ -1125,7 +1120,7 @@ public class TabSheet extends AbstractComponentContainer {
}
/**
- * Sets the poistion of the tab.
+ * Sets the position of the tab.
*
* @param tab
* The tab