diff options
Diffstat (limited to 'server/src/com/vaadin/ui/Calendar.java')
-rw-r--r-- | server/src/com/vaadin/ui/Calendar.java | 10 |
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; } /** |