[OpenMap Users] OMGraphicHandlerLayer's mouseModes issue

From: Stéphane Wasserhardt <swasserhardt_at_cls.fr>
Date: Fri, 08 Sep 2006 15:19:31 +0200

Hello !

I think there's an issue with the "setMouseModeIDsForEvents" method in

Here is what I understood :

This method is called in OMGraphicHandlerLayer.setProperty(...), that is to
say BEFORE the layer is added to the beanContext.
When the layer is added to the beanContext, an event is fired. This event
reaches the mouseDelegator which calls its "setupMouseModeWithLayers"
method. Then the mouseDelegator will forward any mouse events to the layer
if the current mouse mode id is one of the ids given in
The same thing also happens when a new mouseMode is added to the beanContext.

Here is the issue I found :

I put all mouseModes and all layers I need in the beanContext. AFTER that,
I change the mouseModeIDs of one of the OMGraphicsHandlerLayers, using
No more layers and no more mouseModes will be added the the beanContext
after that, so no event will ever reach the mouseDelegator.
The mouseDelegator's setupMouseModeWithLayers method will never be called
again, that's why the layer will not recieve any awaited mouse events :-(

Maybe I'm missing something here...
If this is a real bug, I don't know how to properly correct it, because I'm
not used enough to this mechanism.
I think I will use some kind of workaround for the moment, until I recieve
some answer from this list...
So, any comments would be really appreciated! Thanks in advance!!


[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Sep 08 2006 - 09:25:05 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT