From af0b89f04bd530f2ca48a73c93ad7dca908a7bf2 Mon Sep 17 00:00:00 2001 From: Denis Anisimov Date: Sat, 16 Aug 2014 18:04:51 +0300 Subject: VTabsheetBase should implement HasEnabled (#14114). Change-Id: I31ebc1b4c0698f10c145c6e59d5c951918c5fdbe --- client/src/com/vaadin/client/ui/VTabsheetBase.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'client') 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; + } } -- cgit v1.2.3