I'm not sure precisely how to override in this case though.
I see the onMouseUp event in the class, and I try putting this into my
widget (which extends DialogBox).
@Override
public void onMouseUp(Widget sender, int x, int y) {
dragging = false;
DOM.releaseCapture(getElement());
}
(basicaly an exact copy of whats in the class's over mouseup event).
However;
a) dragging is not visible error
b) It says onMouseUp is depreciated anyway and to use endDragging.
(Looking at enddragging;
protected void endDragging(MouseUpEvent event) {
onMouseUp(caption, event.getX(), event.getY());
}
)
On Apr 15, 10:19 pm, Vitali Lovich <[email protected]> wrote:
> id
> *onMouseDown<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
> *(Widget<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
> sender,
> int x, int y)
> Fired when the user depresses the mouse button over a widget.
> void
> *onMouseEnter<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
> *(Widget<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
> sender)
> Fired when the mouse enters a widget's area. void
> *onMouseLeave<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
> *(Widget<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
> sender)
> Fired when the mouse leaves a widget's area. void
> *onMouseMove<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
> *(Widget<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
> sender,
> int x, int y)
> Fired when the user moves the mouse over a widget.
> You have to override them yourself seeing as how it doesn't have support for
> this.
>
>
>
> On Wed, Apr 15, 2009 at 4:08 PM, darkflame <[email protected]> wrote:
>
> > umm..what the title says ;)
>
> > I just want to trigger some realignment of stuff when the user stops
> > dragging.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---