diff options
author | Marco Collovati <mcollovati@gmail.com> | 2015-09-19 22:54:48 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-10-19 04:52:44 +0000 |
commit | 2333da589320f216cf77b0e1562403c1e72c4222 (patch) | |
tree | d5a3b80ed7ae3b0f6a686d9915d77acadd7e391a /client | |
parent | 24921e5f77629b4553bd1460f4e78b2296af5c94 (diff) | |
download | vaadin-framework-2333da589320f216cf77b0e1562403c1e72c4222.tar.gz vaadin-framework-2333da589320f216cf77b0e1562403c1e72c4222.zip |
Implemented HasEnabled on VLink (#18530)
Method setWidgetEnabled in AbstractComponentConnector,
called from updateEnabledState, sets enable state only for widgets
implementing HasEnabled interface.
Change-Id: Idc700d0c28efd13b9a9470333b19a1509cca4a51
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/VLink.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/VLink.java b/client/src/com/vaadin/client/ui/VLink.java index baad9bd955..de99a8617f 100644 --- a/client/src/com/vaadin/client/ui/VLink.java +++ b/client/src/com/vaadin/client/ui/VLink.java @@ -23,10 +23,11 @@ import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.HTML; +import com.google.gwt.user.client.ui.HasEnabled; import com.vaadin.client.Util; import com.vaadin.shared.ui.BorderStyle; -public class VLink extends HTML implements ClickHandler { +public class VLink extends HTML implements ClickHandler, HasEnabled { public static final String CLASSNAME = "v-link"; @@ -134,4 +135,14 @@ public class VLink extends HTML implements ClickHandler { } + @Override + public boolean isEnabled() { + return enabled; + } + + @Override + public void setEnabled(boolean enabled) { + this.enabled = enabled; + } + } |