Attach multiple MouseHandlers to the same component via UiBinder?

17 views
Skip to first unread message

membersound

unread,
Dec 28, 2012, 10:07:03 AM12/28/12
to google-we...@googlegroups.com
Is there something to attach multiple Handlers to the same component? Similar to the following (which is not valid of course, but you get it):

@UiHandler("myComponent")
void onMouseDown(MouseDownEvent ev | MouseOutEvent ev) {
    //...
}

Or do I necessarily have to create 2 different handler methods?

@UiHandler("myComponent")
void onMouseDown(MouseDownEvent ev) {
    //...
}

@UiHandler("myComponent")
void onMouseDown(MouseOutEvent ev) {
    //...
}
Reply all
Reply to author
Forward
0 new messages