Geomajas, geocoder (PureGWT face) 1.4.0-M1

org.geomajas.plugin.geocoder.client
Class GeocoderTextBox

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.FocusWidget
              extended by com.google.gwt.user.client.ui.ValueBoxBase<String>
                  extended by com.google.gwt.user.client.ui.TextBoxBase
                      extended by com.google.gwt.user.client.ui.TextBox
                          extended by org.geomajas.plugin.geocoder.client.GeocoderTextBox
All Implemented Interfaces:
IsEditor<ValueBoxEditor<String>>, HasAllDragAndDropHandlers, HasAllFocusHandlers, HasAllGestureHandlers, HasAllKeyHandlers, HasAllMouseHandlers, HasAllTouchHandlers, HasBlurHandlers, HasChangeHandlers, HasClickHandlers, HasDoubleClickHandlers, HasDragEndHandlers, HasDragEnterHandlers, HasDragHandlers, HasDragLeaveHandlers, HasDragOverHandlers, HasDragStartHandlers, HasDropHandlers, HasFocusHandlers, HasGestureChangeHandlers, HasGestureEndHandlers, HasGestureStartHandlers, HasKeyDownHandlers, HasKeyPressHandlers, HasKeyUpHandlers, HasMouseDownHandlers, HasMouseMoveHandlers, HasMouseOutHandlers, HasMouseOverHandlers, HasMouseUpHandlers, HasMouseWheelHandlers, HasTouchCancelHandlers, HasTouchEndHandlers, HasTouchMoveHandlers, HasTouchStartHandlers, HasAttachHandlers, HasValueChangeHandlers<String>, HasHandlers, AutoDirectionHandler.Target, HasDirection, HasDirectionEstimator, EventListener, TakesValue<String>, Focusable, HasEnabled, HasFocus, HasName, HasText, HasValue<String>, HasVisibility, IsWidget, SourcesChangeEvents, SourcesClickEvents, SourcesFocusEvents, SourcesKeyboardEvents, SourcesMouseEvents

public class GeocoderTextBox
extends TextBox

Geocoder widget that navigates to a location when "enter" is pressed.

Author:
Pieter De Graef

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.TextBoxBase
TextBoxBase.TextAlignConstant
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.ValueBoxBase
ValueBoxBase.TextAlignment
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.i18n.client.HasDirection
HasDirection.Direction
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.TextBoxBase
ALIGN_CENTER, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_RIGHT
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
GeocoderTextBox(org.geomajas.gwt.client.map.MapPresenter mapPresenter)
           
 
Method Summary
 void fireEvent(GwtEvent<?> event)
           
 String getServicePattern()
          Get the regular expression which is used to select which geocoder services to use.
 void goToLocation()
           
 void goToLocation(String altText)
           
 HandlerRegistration setSelectAlternativeHandler(SelectAlternativeHandler handler)
          Set the select alternative handler.
 HandlerRegistration setSelectLocationHandler(SelectLocationHandler handler)
          Set the select location handler.
 void setServicePattern(String servicePattern)
          Set the regular expression which is used to select which geocoder services to use.
 
Methods inherited from class com.google.gwt.user.client.ui.TextBox
getMaxLength, getVisibleLength, setMaxLength, setVisibleLength, wrap
 
Methods inherited from class com.google.gwt.user.client.ui.TextBoxBase
addChangeListener, getValue, setTextAlignment
 
Methods inherited from class com.google.gwt.user.client.ui.ValueBoxBase
addChangeHandler, addValueChangeHandler, asEditor, cancelKey, getCursorPos, getDirection, getDirectionEstimator, getName, getSelectedText, getSelectionLength, getText, getValueOrThrow, isReadOnly, onBrowserEvent, removeChangeListener, selectAll, setAlignment, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setKey, setName, setReadOnly, setSelectionRange, setText, setValue, setValue
 
Methods inherited from class com.google.gwt.user.client.ui.FocusWidget
addBlurHandler, addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addFocusListener, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, getTabIndex, isEnabled, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener, setAccessKey, setEnabled, setFocus, setTabIndex
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.user.client.ui.SourcesChangeEvents
removeChangeListener
 
Methods inherited from interface com.google.gwt.event.dom.client.HasKeyUpHandlers
addKeyUpHandler
 

Constructor Detail

GeocoderTextBox

public GeocoderTextBox(org.geomajas.gwt.client.map.MapPresenter mapPresenter)
Method Detail

goToLocation

public void goToLocation()

goToLocation

public void goToLocation(String altText)

getServicePattern

public String getServicePattern()
Get the regular expression which is used to select which geocoder services to use.

Returns:
geocoder selection regular expression

setServicePattern

public void setServicePattern(String servicePattern)
Set the regular expression which is used to select which geocoder services to use.

Parameters:
servicePattern - geocoder selection regular expression

setSelectAlternativeHandler

public HandlerRegistration setSelectAlternativeHandler(SelectAlternativeHandler handler)
Set the select alternative handler.

There can only be one handler, the default displays the alternatives in a window on the map widget.

Parameters:
handler - select alternative handler
Returns:
handler registration.

setSelectLocationHandler

public HandlerRegistration setSelectLocationHandler(SelectLocationHandler handler)
Set the select location handler.

There can only be one handler, the default zooms the map widget to the selected location.

Parameters:
handler - select location handler
Returns:
handler registration.

fireEvent

public void fireEvent(GwtEvent<?> event)
Specified by:
fireEvent in interface HasHandlers
Overrides:
fireEvent in class Widget

Geomajas, geocoder (PureGWT face) 1.4.0-M1

Copyright © 2013 Geosparc. All Rights Reserved.