org.geomajas.plugin.geocoder.client
Class GeocoderTextBox
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.FocusWidget
com.google.gwt.user.client.ui.ValueBoxBase<String>
com.google.gwt.user.client.ui.TextBoxBase
com.google.gwt.user.client.ui.TextBox
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
|
Constructor Summary |
GeocoderTextBox(org.geomajas.gwt.client.map.MapPresenter mapPresenter)
|
| 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 |
GeocoderTextBox
public GeocoderTextBox(org.geomajas.gwt.client.map.MapPresenter mapPresenter)
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
Copyright © 2013 Geosparc. All Rights Reserved.