code: private void processLabelClicked(final String name, final ClickType clickType) {
              if (logger.isTraceEnabled()) {
                  logger.trace("JS reports label {} clicked {}", name, clickType);
              }
              synchronized (mapCoordinateElements) {
                  if (mapCoordinateElements.containsKey(name)) {
                      final MapCoordinateElement mapCoordinateElement = mapCoordinateElements.get(name).get();
                      if (mapCoordinateElement instanceof MapLabel) {
                          EventType<MapLabelEvent> eventType = null;
                          switch (clickType) {
                              case LEFT:
                                  eventType = MapLabelEvent.MAPLABEL_CLICKED;
                                  break;
                              case DOUBLE:
                                  eventType = MapLabelEvent.MAPLABEL_DOUBLECLICKED;
                                  break;
                              case RIGHT:
                                  eventType = MapLabelEvent.MAPLABEL_RIGHTCLICKED;
                                  break;
                              case MOUSEDOWN:
                                  eventType = MapLabelEvent.MAPLABEL_MOUSEDOWN;
                                  break;
                              case MOUSEUP:
                                  eventType = MapLabelEvent.MAPLABEL_MOUSEUP;
                                  break;
                              case ENTERED:
                                  eventType = MapLabelEvent.MAPLABEL_ENTERED;
                                  break;
                              case EXITED:
                                  eventType = MapLabelEvent.MAPLABEL_EXITED;
                                  break;
                          }
                          fireEvent(new MapLabelEvent(eventType, (MapLabel) mapCoordinateElement));
                      }
                  }
              }
          }
docs: called when a label was clicked.
  
  @param name
  name of the lael
  @param clickType
  the type of click