ggeorg / gwt-mosaic

Automatically exported from code.google.com/p/gwt-mosaic
1 stars 0 forks source link

dragHandle must implement HasMouseDownHandlers and HasMouseOutHandlers to be draggable #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
When I create a MessageBox.info(string, string) i get :
{{{
2009-04-21 10:48:11,919 [FATAL] Uncaught Exception:
java.lang.RuntimeException: dragHandle must implement HasMouseDownHandlers
and HasMouseOutHandlers to be draggable at
com.allen_sauer.gwt.dnd.client.MouseDragHandler.makeDraggable(MouseDragHandler.j
ava:272)
at
com.allen_sauer.gwt.dnd.client.AbstractDragController.makeDraggable(AbstractDrag
Controller.java:211)
at org.gwt.mosaic.ui.client.WindowPanel.<init>(WindowPanel.java:734) at
org.gwt.mosaic.ui.client.WindowPanel.<init>(WindowPanel.java:759) at
org.gwt.mosaic.ui.client.MessageBox.<init>(MessageBox.java:340) at
org.gwt.mosaic.ui.client.MessageBox.<init>(MessageBox.java:336) at
org.gwt.mosaic.ui.client.MessageBox$1.<init>(MessageBox.java:73) at
org.gwt.mosaic.ui.client.MessageBox.alert(MessageBox.java:73) at
org.gwt.mosaic.ui.client.MessageBox.info(MessageBox.java:162) at
com.objetdirect.gwt.umlapi.client.webinterface.HelpManager.bringHelpPopup(HelpMa
nager.java:42)
at
com.objetdirect.gwt.umlapi.client.webinterface.ContextMenu$3.execute(ContextMenu
.java:30)
at
com.google.gwt.user.client.CommandExecutor.doExecuteCommands(CommandExecutor.jav
a:310)
at
com.google.gwt.user.client.CommandExecutor$2.run(CommandExecutor.java:205)
at com.google.gwt.user.client.Timer.fireImpl(Timer.java:160) at
com.google.gwt.user.client.Timer.fireAndCatch(Timer.java:146) at
com.google.gwt.user.client.Timer.fire(Timer.java:138) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:67) at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:146
)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1235
)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:152)
at java.lang.Thread.run(Thread.java:619) Caused by:
java.lang.ClassCastException: org.gwt.mosaic.ui.client.Caption cannot be
cast to com.google.gwt.event.dom.client.HasMouseDownHandlers at
com.allen_sauer.gwt.dnd.client.MouseDragHandler.makeDraggable(MouseDragHandler.j
ava:268)
at
com.allen_sauer.gwt.dnd.client.AbstractDragController.makeDraggable(AbstractDrag
Controller.java:211)
at org.gwt.mosaic.ui.client.WindowPanel.<init>(WindowPanel.java:734) at
org.gwt.mosaic.ui.client.WindowPanel.<init>(WindowPanel.java:759) at
org.gwt.mosaic.ui.client.MessageBox.<init>(MessageBox.java:340) at
org.gwt.mosaic.ui.client.MessageBox.<init>(MessageBox.java:336) at
org.gwt.mosaic.ui.client.MessageBox$1.<init>(MessageBox.java:73) at
org.gwt.mosaic.ui.client.MessageBox.alert(MessageBox.java:73) at
org.gwt.mosaic.ui.client.MessageBox.info(MessageBox.java:162) at
com.objetdirect.gwt.umlapi.client.webinterface.HelpManager.bringHelpPopup(HelpMa
nager.java:42)
at
com.objetdirect.gwt.umlapi.client.webinterface.ContextMenu$3.execute(ContextMenu
.java:30)
at
com.google.gwt.user.client.CommandExecutor.doExecuteCommands(CommandExecutor.jav
a:310)
at
com.google.gwt.user.client.CommandExecutor$2.run(CommandExecutor.java:205)
at com.google.gwt.user.client.Timer.fireImpl(Timer.java:160) at
com.google.gwt.user.client.Timer.fireAndCatch(Timer.java:146) at
com.google.gwt.user.client.Timer.fire(Timer.java:138) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:67) at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:146
)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1235
)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:152)
at java.lang.Thread.run(Thread.java:619) 
}}}

What version of the product are you using? On what operating system?
gwt : Trunk
gwt-mosaic : 0.2.0-rc2
gwt-dnd : 2.6.0

Original issue reported on code.google.com by PaRaDoXX...@gmail.com on 21 Apr 2009 at 8:49

GoogleCodeExporter commented 9 years ago
gwt-dnd : 2.6.0 support was added today, please use the SVN version:

http://gwt-mosaic.googlecode.com/svn/branches/GWT-1.6/

or 0.2.0-rc2 with the included gwt-dnd.jar

(at the end of this week I will make another release, maybe 0.2.0 final)

Kind Regards,
George.

Original comment by georgopo...@gmail.com on 21 Apr 2009 at 5:37

GoogleCodeExporter commented 9 years ago
Ok thanks a lot

Original comment by PaRaDoXX...@gmail.com on 22 Apr 2009 at 12:16

GoogleCodeExporter commented 9 years ago
Well i dont know wat u guys are discussing in this thread but i get this error 
while
trying to make a composite widget draggable... wat is this.... pls help me..

Original comment by karana...@gmail.com on 28 Apr 2009 at 12:56

GoogleCodeExporter commented 9 years ago
Hi,

mosaic-0.2.0-rc2 is not compatible with with gwt-dnd 2.6.0 

gwt-dnd 2.6.0 is supported only in the SVN version:

http://gwt-mosaic.googlecode.com/svn/branches/GWT-1.6/

and soon in 0.2.0 final this week (I still do testing).

If you can't use SVN let me know.

Kind Regards,
George.

Original comment by georgopo...@gmail.com on 28 Apr 2009 at 9:10