Drag & Drop/Resizable per event

2 views
Skip to first unread message

tavaresilva

unread,
Apr 2, 2009, 6:50:04 AM4/2/09
to ftr-gwt-library
Hello all,

I would like the possibility to set drag&drop/resizable individually
for each event.
As far as i can understand this is only possible to set for the whole
calendar/events through the enableDragAndDrop method (resize also??)
in the DateRenderer interface implementation (the provided
implementation of that is DefaultStringPanelRenderer).
I want that so that i can let a user see events other users added but
not allowing him to change them. On the other hand the user should be
able to add their own events and for those, he should be able to
drag&drop/resize them.
I am already able to control if a user can add/view/remove/edit events
on a calendar by just changing the provided default implementation of
the renderer, but if a user can't edit an event he shouldn't be able
to drap&drop/resize and event, or if a user can add events he should
be able to drag&drop/resize. So, setting enableDragAndDrop method
doesn't work for what i need.
For what i can tell there's no way of doing that without changing the
core library, and it would mean changing at least the Day/Week/Month
Panels.
I'm thinking that controlling whether and event is Draggable/Resizable
can be done in the repaintPanel method of DefaultDayField and
DefaultMonthField. I also think that the Day/Month field would need
tho have a reference to the Panel that has it.
Does someone have any suggestion on how to accomplish this?

Thank you very much.

Marteijn Nouwens

unread,
Apr 2, 2009, 9:18:51 AM4/2/09
to ftr-gwt-library
Hi

Try to create a panel that does not extend from the AbstractDayField
futher your panel could implement isDraggable. Ik know that someone
already did this. Just forgot who.

Marteijn
Reply all
Reply to author
Forward
0 new messages