How can i add mouse listeners/click listeners to connectors
(arrows) .......i'm using GWT Connectors......my requirement is that
on clicking(right click) the connector(arrow), a dialog box opens.
But if you found any solution I would love to know it :)
************************************************************************************************
@Override
public HandlerRegistration addDoubleClickHandler(DoubleClickHandler
handler) {
return ensureHandlers().addHandler(DoubleClickEvent.getType(),
handler);
}
@Override
public void fireEvent(GwtEvent<?> event) {
if (handlerManager != null) {
handlerManager.fireEvent(event);
}
}
/**
* Ensures the existence of the handler manager.
*
* @return the handler manager
* */
HandlerManager ensureHandlers() {
return handlerManager == null ? handlerManager = new
HandlerManager(this)
: handlerManager;
}
************************************************************************************************
Maybe I will try or ask the creator.
On 5 mar, 17:27, KenJi_getpowered <mikael.k...@gmail.com> wrote:
> I tried to extend the connector class and implements the
> HasDoubleClickHandlers interface with this code but it didn't work,
> the connector class somehow intercept the doubleclickevent. You can
> see it when you join two corner points and doubleclickon the
> > Maybe it is better that when youclickon the object then it is loaded
> > into an handler then you can do what you want (even open a dialog box)
>
> > But if you found any solution I would love to know it :)
>
> > On 7 jan, 06:12, IT-networking <deepti0...@gmail.com> wrote:
>
> > > Hi.,
>
> > > How can i add mouse listeners/clicklisteners to connectors
> > > (arrows) .......i'm using GWT Connectors......my requirement is that
> > > on clicking(rightclick) the connector(arrow), a dialog box opens.
I don't know.