summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorDenis Anisimov <denis@vaadin.com>2014-08-16 18:04:51 +0300
committerVaadin Code Review <review@vaadin.com>2014-08-20 11:09:12 +0000
commitaf0b89f04bd530f2ca48a73c93ad7dca908a7bf2 (patch)
tree9b7e1e71292733662dc8e3e2791bdbde479b9fbd /client
parent3d2102aba27308f3d7131c53c08a5182a4f767d9 (diff)
downloadvaadin-framework-af0b89f04bd530f2ca48a73c93ad7dca908a7bf2.tar.gz
vaadin-framework-af0b89f04bd530f2ca48a73c93ad7dca908a7bf2.zip
VTabsheetBase should implement HasEnabled (#14114).
Change-Id: I31ebc1b4c0698f10c145c6e59d5c951918c5fdbe
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/VTabsheetBase.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/VTabsheetBase.java b/client/src/com/vaadin/client/ui/VTabsheetBase.java
index 59f0bc565c..d3c9bf9e10 100644
--- a/client/src/com/vaadin/client/ui/VTabsheetBase.java
+++ b/client/src/com/vaadin/client/ui/VTabsheetBase.java
@@ -22,13 +22,14 @@ import java.util.Set;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.ComplexPanel;
+import com.google.gwt.user.client.ui.HasEnabled;
import com.google.gwt.user.client.ui.Widget;
import com.vaadin.client.ApplicationConnection;
import com.vaadin.client.ComponentConnector;
import com.vaadin.client.ConnectorMap;
import com.vaadin.shared.ui.tabsheet.TabState;
-public abstract class VTabsheetBase extends ComplexPanel {
+public abstract class VTabsheetBase extends ComplexPanel implements HasEnabled {
/** For internal use only. May be removed or replaced in the future. */
protected ApplicationConnection client;
@@ -145,6 +146,7 @@ public abstract class VTabsheetBase extends ComplexPanel {
}
/** For internal use only. May be removed or replaced in the future. */
+ @Override
public void setEnabled(boolean enabled) {
disabled = !enabled;
}
@@ -161,4 +163,9 @@ public abstract class VTabsheetBase extends ComplexPanel {
/** For internal use only. May be removed or replaced in the future. */
public abstract void selectTab(int index);
+
+ @Override
+ public boolean isEnabled() {
+ return !disabled;
+ }
}