aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Calendar.java
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2014-10-16 13:48:15 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2014-10-16 13:48:47 +0300
commit9e769462bd09483c1ccfde452bc679ea54a5d85e (patch)
treeddca2585fefccf6ab7382503465ca5aa2bcfa48f /server/src/com/vaadin/ui/Calendar.java
parent6290daf788d6a96afaae4d6db058762b713af291 (diff)
parente157228948d4583951cad358b77e8ab27990e5e5 (diff)
downloadvaadin-framework-9e769462bd09483c1ccfde452bc679ea54a5d85e.tar.gz
vaadin-framework-9e769462bd09483c1ccfde452bc679ea54a5d85e.zip
Merge remote-tracking branch 'origin/master' into grid
Change-Id: I7462e5a6a902eb0c4396bc14216a6f323dd33b76
Diffstat (limited to 'server/src/com/vaadin/ui/Calendar.java')
-rw-r--r--server/src/com/vaadin/ui/Calendar.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/Calendar.java b/server/src/com/vaadin/ui/Calendar.java
index 59dfceec9b..63ac9fe35c 100644
--- a/server/src/com/vaadin/ui/Calendar.java
+++ b/server/src/com/vaadin/ui/Calendar.java
@@ -890,17 +890,21 @@ public class Calendar extends AbstractComponent implements
* @see #isEventClickAllowed()
*/
protected boolean isClientChangeAllowed() {
- return !isReadOnly() && isEnabled();
+ return !isReadOnly();
}
/**
- * Is the user allowed to trigger click events
+ * Is the user allowed to trigger click events. Returns {@code true} by
+ * default. Subclass can override this method to disallow firing event
+ * clicks got from the client side.
*
* @return true if the client is allowed to click events
* @see #isClientChangeAllowed()
+ * @deprecated Override {@link #fireEventClick(Integer)} instead.
*/
+ @Deprecated
protected boolean isEventClickAllowed() {
- return isEnabled();
+ return true;
}
/**