code: private void bind() {
  		StopPropagationHandler stopHandler = new StopPropagationHandler();
  		flowPanel.addDomHandler(stopHandler, MouseDownEvent.getType());
  		flowPanel.addDomHandler(stopHandler, MouseUpEvent.getType());
  		flowPanel.addDomHandler(stopHandler, ClickEvent.getType());
  		flowPanel.addDomHandler(stopHandler, DoubleClickEvent.getType());
  
  		// add textBox handlers
  		textBox.addKeyPressHandler(new KeyPressHandler() {
  
  			public void onKeyPress(KeyPressEvent event) {
  				if (event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER) {
  					executeFind();
  				}
  			}
  		});
  		textBox.addClickHandler(new ClickHandler() {
  
  			public void onClick(ClickEvent event) {
  				if (messages.findPlaceOnMap().equals(textBox.getValue())) {
  					setValue(null);
  					flowPanel.removeStyleName(resource.css().geocoderGadgetTip());
  				}
  			}
  		});
  		textBox.addBlurHandler(new BlurHandler() {
  
  			public void onBlur(BlurEvent event) {
  				if (textBox.getValue() == null || "".equals(textBox.getValue())) {
  					setValue(messages.findPlaceOnMap());
  					flowPanel.addStyleName(resource.css().geocoderGadgetTip());
  				}
  			}
  		});
  
  		// add magnifying glass handler
  		glass.addClickHandler(new ClickHandler() {
  
  			public void onClick(ClickEvent event) {
  				executeFind();
  				event.stopPropagation();
  			}
  		});
  	}
docs: Add handlers