question: public boolean fireMapMouseClicked ( MouseEvent evt ) { if ( DEBUG ) { logger . fine ( "MapMouseSupport: fireMapMouseClicked" ) ; } clickHappened = true ; boolean consumed = false ; evt = new MapMouseEvent ( getParentMode ( ) , evt ) ; if ( priorityListener != null && evt . getClickCount ( ) > 1 ) { priorityListener . mouseClicked ( evt ) ; consumed = true ; } priorityListener = null ; if ( proxy == null || evt . isShiftDown ( ) || ( proxyDistributionMask & PROXY_DISTRIB_MOUSE_CLICKED ) > 0 ) { Iterator < MapMouseListener > it = iterator ( ) ; while ( it . hasNext ( ) && ! consumed ) { MapMouseListener target = it . next ( ) ; consumed = target . mouseClicked ( evt ) && consumeEvents ; if ( consumed ) { priorityListener = target ; } } } boolean ignoreConsumed = ! consumed || ( consumed && ( ( proxyDistributionMask & PROXY_ACK_CONSUMED_MOUSE_CLICKED ) == 0 ) ) ; if ( proxy != null && ignoreConsumed && ! evt . isShiftDown ( ) ) { proxy . mouseClicked ( evt ) ; consumed = true ; } return consumed ; }
target:  Handle a mouseClicked MouseListener event. If the priorityListener is set, it automatically gets the clicked event. If it is not set, the other listeners get a shot at the event according to the consumeEvent mode.