com.google.gwt.maps.client.control
Class Control.CustomControl
java.lang.Object
com.google.gwt.maps.client.control.Control
com.google.gwt.maps.client.control.Control.CustomControl
- Enclosing class:
- Control
public abstract static class Control.CustomControl
- extends Control
This class should be extended to create a custom control type.
Fields inherited from class com.google.gwt.maps.client.control.Control |
jsoPeer |
Method Summary |
protected ControlPosition |
getDefaultPosition()
Gets the default position of this control. |
protected abstract com.google.gwt.user.client.ui.Widget |
initialize(MapWidget map)
Initializes this control with the given map. |
abstract boolean |
isSelectable()
Returns to the map if the control contains selectable text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Control.CustomControl
protected Control.CustomControl(ControlPosition defaultPosition)
- Create a new CustomControl which is not printable or selectable.
- Parameters:
defaultPosition
- location of the controls on the map.
Control.CustomControl
protected Control.CustomControl(ControlPosition defaultPosition,
boolean printable,
boolean selectable)
- Create a new CustomControl which can be either printable, selectable or
both.
- Parameters:
defaultPosition
- printable
- indicates that the control should be visible in the
print output of the mapselectable
- indicates that the control will contain text that
should be selectable.
isSelectable
public abstract boolean isSelectable()
- Returns to the map if the control contains selectable text.
- Returns:
true
if the control contains selectable text.
getDefaultPosition
@Exported
protected final ControlPosition getDefaultPosition()
- Gets the default position of this control.
The default position is used with the one argument
MapWidget.addControl(Control)
method.
- Returns:
- the default position of this control
initialize
protected abstract com.google.gwt.user.client.ui.Widget initialize(MapWidget map)
- Initializes this control with the given map.
This method should instantiate and return the control's widget.
- Parameters:
map
- the Google map
- Returns:
- the widget that should be attached to the map