google-code-export / rocket-gwt

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

API is not well designed #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to intercept event "drop outside DropTarget"

What version of the product are you using? On what operating system?
Rocket: 0.56 DragNDrop module 
Os: GNU/Linux Debian

Please provide any additional information below.
When DraggablePanel is dropped outside DropTargetPanel "onDrop" Event of
DragNDropListener is not beeing invoked.

I have tried to extend DraggablePanel (because it's not final!) and
override onDropped method (it is not final either) *but* DraggedPanel (one
of the parameters) is non-public internal class and man can do nothing!

Could you please do something about it?
Regards

Original issue reported on code.google.com by eximius...@gmail.com on 29 Oct 2008 at 12:33

GoogleCodeExporter commented 9 years ago
Another thing:
DragMoveEvent as well as other event classes have stop() method. 
Unfortunatelly when you call stop() method while moving panel - whole move is 
cancelled.
There should be some "prevent()" method to prevent just *this* event (for 
example we
don't want panel to be moved outside some boundary) not whole movement!

Original comment by eximius...@gmail.com on 29 Oct 2008 at 1:22

GoogleCodeExporter commented 9 years ago
One more:
While dragging DraggablePanel - Rocket always creates copy of Widget wrapped by
DraggablePanel which is not always desired effect.
For example:
- we just want to move whole widget not just it's proxy 
- or because copy of the button have different look and we want to create it 
manually.
If DraggablePanel has already "proxy" functionality - it's ok, but you should 
also
provide some property that one could set depends if he/she wants to create 
proxy or not.

Original comment by eximius...@gmail.com on 29 Oct 2008 at 1:27