Disable Calendar Movement - Vaadin

I want to disable event wrapping from Vaadin Calendar

All these handlers are automatically installed when you create a new Calendar. If you want to disable some functions by default, you can simply set the corresponding handler to null. This will prevent functionality from appearing in the user interface. For example, if you set EventMoveHandler to null, the user will not be able to move events in the browser. Book of Vaadin

I tried:

calendar.setHandler(null);

calendar.setHandler((EventMoveHandler) null);
calendar.setHandler((BaseEventMoveHandler) null);

EventMoveHandler handler = null;
calendar.setHandler(handler);

BaseEventMoveHandler baseHandler = null;
calendar.setHandler(baseHandler );

But nothing works. Any suggestion....?

+4
source share
2 answers

This really works for me with Vaadin 7.4.5:

calendar.setHandler((EventMoveHandler)null);
calendar.setHandler((EventResizeHandler)null);
+7

, .

calendar.setReadOnly(true);

EDIT1: . , , , asmellado:

calendar.setReadOnly(true);
calendar.setHandler((EventMoveHandler)null);
calendar.setHandler((EventResizeHandler)null);

, setReadOnly, , .

0

All Articles