Drag&drop event creation

51 views
Skip to first unread message

Jakub Grabowski

unread,
May 17, 2011, 3:36:12 AM5/17/11
to gwt-cal
Hi,

What's the current status of drag&drop event creation (I mean you
click and drag to select period for event creation)? I saw some issues
filed for it, but nothing confirmed.

Regards,
Jakub.

Manvel Saroyan

unread,
Jul 15, 2011, 6:49:18 AM7/15/11
to gwt...@googlegroups.com
Yes I think it's a very important feature.
Please tell are you going to add that feature in new version of gwt-cal ? Or maybe there is a way to implement that functionality,

Best Regards,
Manvel Saroyan

Manvel Saroyan

unread,
Jul 15, 2011, 6:31:28 AM7/15/11
to gwt-cal
Yeah I think it's very important part.
Please tell will It be supported in new version and when that new
version will be released, or maybe the way we could implement that
functionality.

Best Regards,
Manvel Saroyan

Carlos Tasada

unread,
Jul 18, 2011, 3:35:17 AM7/18/11
to gwt...@googlegroups.com
It's doable, but requires quite a lot of hacking in the gwt-cal code. I've a patch with the needed changes that seems to work well enough. Take a look to the patch attached to issue 75. If you have any problem don't hesitate to contact me.

Regards,

--
You received this message because you are subscribed to the Google Groups "gwt-cal" group.
To post to this group, send email to gwt...@googlegroups.com.
To unsubscribe from this group, send email to gwt-cal+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-cal?hl=en.


Manvel Saroyan

unread,
Jul 18, 2011, 4:05:47 AM7/18/11
to gwt...@googlegroups.com
Hi, 
Thanks for reply, I Tried to Apply that patch but without success. I've downloaded -> gwt-cal-0.9.2.jar, created a new project in eclipse, imported that jar's src to my project than I tried to apply patch via Team->attach patch , but it show me errors. And I weren't able to apply that patch. 
Please Tell me how can I use that patch.

thanks in advance.

Carlos Tasada

unread,
Jul 18, 2011, 4:12:29 AM7/18/11
to gwt...@googlegroups.com
Tonight I'll try to reapply the patch and upload an updated version.

--
You received this message because you are subscribed to the Google Groups "gwt-cal" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gwt-cal/-/Y_7gN0VQvEUJ.

Manvel Saroyan

unread,
Jul 18, 2011, 4:43:43 AM7/18/11
to gwt...@googlegroups.com
Great! 

Carlos Tasada

unread,
Jul 18, 2011, 3:08:12 PM7/18/11
to gwt...@googlegroups.com
Hi Manvel,

I've updated the issue 75 with the missing explanations about how to use it:

How to use it:

// Enable the Drag&Drop
settings.setENableDragDrop(true);
// Enable the Drag&Drop Creation
settings.setEnableDragDropCreation(true)
// And the "magic setting"
settings.setTimeBlockClickNumber(Click.None);

The last setting is doing the 'magic' (see the DayView.java) to avoid the event creation with Single or Double-Click. The setting could be automatically enabled with the setEnableDragDropCreation, but I wanted to avoid the obscure modification

I hope it helps.

On Mon, Jul 18, 2011 at 10:43 AM, Manvel Saroyan <saro...@gmail.com> wrote:
Great! 

--
You received this message because you are subscribed to the Google Groups "gwt-cal" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gwt-cal/-/8Tp9KcVjHGoJ.

Manvel Saroyan

unread,
Jul 19, 2011, 4:20:07 AM7/19/11
to gwt...@googlegroups.com
Hi,
It's great that you added the instructions, but what about upload a Patched updated version ?
Or Maybe you can tell me how can I patch it ?
I can't patch the jar file. 

thanks in advance.

Carlos Tasada

unread,
Jul 19, 2011, 4:40:26 AM7/19/11
to gwt...@googlegroups.com
You need to get the code from the SVN repository and apply the patch. It's the better way. Of course I could do it myself and send you a patched jar, but I really thing it's better that you do it yourself. Remember that's a completely unofficial patch, so it could contain unexpected bugs ;) As a note I'll say that I was using this code in a real project without known problems.

--
You received this message because you are subscribed to the Google Groups "gwt-cal" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gwt-cal/-/cOLZngf090MJ.

Manvel Saroyan

unread,
Jul 19, 2011, 10:36:59 AM7/19/11
to gwt...@googlegroups.com
Whole day I was trying to make That thing but without a success:
I've created a GWT project imported your project added gwt-dnd and was getting Error in theme package every class in that package showing me Errors. It would be great if someone could help me with it, but I trying whole day without success. Just if there is someone who Patched the calendar successfully could tell me the steps how he made that patching with success I will be very thankful to him.
Just tell me what am I doing wrong, I know that it must be simple.. but I'm stuck.



thanks in advance.

Carlos Tasada

unread,
Jul 19, 2011, 11:01:40 AM7/19/11
to gwt...@googlegroups.com
Hi Manvel,

Dummy question. Can you execute the gwt-cal-demo with the code you checkout from SVN? That's the first basic step.

Also, do you have any warning while patching the code? Which tool do you use to apply the patch?




thanks in advance.

--
You received this message because you are subscribed to the Google Groups "gwt-cal" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gwt-cal/-/cAlRj9Flxy8J.

Manvel Saroyan

unread,
Jul 19, 2011, 3:14:04 PM7/19/11
to gwt...@googlegroups.com
Yeah I understand that it's a dummy question, but I didn't used SVN yet and any gwt widget, your widget is the only one I use. I'm using Eclipse. At first I've tried just to import the project and then patch it using eclipse Team->Apply patch, It has patched successfully, but then I wasn't able to convert it into jar using Export - Jar file, it couldn't convert It back to jar because there wasn't any GWT library and errors exist. And so I'm stucked.
I can execute gwt-cal-demo using Jar file downloaded from http://code.google.com/p/gwt-cal/downloads/list by adding it to classpath then copying files from  gwt-cal-demo. 

thanks in advance.

bradr

unread,
Jul 19, 2011, 3:18:10 PM7/19/11
to gwt-cal
Hey Carlos, i've added you as a committer to the project. How about
creating a separate branch in our repo that includes gwt-cal with your
patch, that way it is easier for others to use? At some point we'll
figure out how to merge this back into the main branch.

Carlos Tasada

unread,
Jul 19, 2011, 4:08:55 PM7/19/11
to gwt...@googlegroups.com
Hey Brad, that's great :) I'll try to create the branch, based in the current stable code and apply the patch there. 

Then we can discuss the details about the patch and the other patches that I've on the side ;)

Cheers.

Carlos Tasada

unread,
Jul 19, 2011, 5:34:25 PM7/19/11
to gwt...@googlegroups.com
Hi Manvel,

You'll find a new jar file in the downloads section with the "Appointment Drag&Drop Creation" enabled. Take a look to the demo project to see a really simple example about how to use it.

By the way, exporting a GWT project to a jar file is not really the best option. I would recommend you to take a look to the GWT documentation and generate the jar (or the war) files that you need using Maven (or an ANT script)

Regards,
Carlos.


thanks in advance.

--
You received this message because you are subscribed to the Google Groups "gwt-cal" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gwt-cal/-/FFovXAuucB0J.

Manvel Saroyan

unread,
Jul 19, 2011, 6:38:53 PM7/19/11
to gwt...@googlegroups.com
Great Carlos, Now It's more like an event calendar :)
Thanks for advise I haven't use them yet (because I begin learning java programming around 5 month ago just for GWT And GAE) and I'll necessarily look at them and wont ask anymore such simple questions. But in other hand I think many people will be thankful to you for your update. 

P.S. Only thing - I couldn't find a way how I can Handle dragNDrop Event creation in month view, please leave a comment about ? 

Regards,
Manvel Saroyan

Carlos Tasada

unread,
Jul 20, 2011, 2:06:37 AM7/20/11
to gwt...@googlegroups.com
Sorry my fault. It's only supported in the DayView. In the MonthView I think is enough with the Click/DoubleClick creation, but maybe I'm wrong

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "gwt-cal" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gwt-cal/-/47FY5FVYabkJ.

Manvel Saroyan

unread,
Jul 20, 2011, 3:11:17 AM7/20/11
to gwt...@googlegroups.com
it's so pity :(
Hope to see that feature in next version.
Reply all
Reply to author
Forward
0 new messages