public interface HasClickHandlers extends HasHandlers
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addClickHandler(ClickHandler handler)
Notification fired when the user clicks on this DrawItem.
|
fireEvent
HandlerRegistration addClickHandler(ClickHandler handler)
Note that if this item is part of a DrawGroup
, then the group's useGroupRect
setting affects whether this item receives
the notification. If useGroupRect is true, then this item will not receive the notification. Otherwise, the
item receives the notification and notification bubbles up to the group.
handler
- the click handlerHandlerRegistration
used to remove this handler