label.setContents(I18nProvider.getSampleMessages().multipleListenersPortletText() + " = "
+ event.getScreenPosition());
}
};
map.addListener(listener);
portlet.addCloseClickHandler(new CloseClickHandler() {
public void onCloseClick(CloseClientEvent event) {
map.removeListener(listener);
if (map.getListeners() != null) {
SC.say(I18nProvider.getSampleMessages().multipleListenersCount(map.getListeners().size()));