org.gwtopenmaps.openlayers.client
Class MapWidget

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by org.gwtopenmaps.openlayers.client.MapWidget
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget

public class MapWidget
extends com.google.gwt.user.client.ui.Widget

See Map.

Author:
Erdem Gunay, Edwin Commandeur

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
MapWidget(String width, String height)
          Programmatically creates the element that will contain the map, with the given width and height.
MapWidget(String width, String height, MapOptions options)
          Programmatically creates the element that will contain the map, with the given width and height.
 
Method Summary
 Map getMap()
          Gets the map associated with a MapWidget instance.
protected  void onAttach()
           
protected  void onLoad()
           
 void setHeight(String height)
           
 void setWidth(String width)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapWidget

public MapWidget(String width,
                 String height)
Programmatically creates the element that will contain the map, with the given width and height. The map itself is instantiated upon calling getMap().

Parameters:
width - - a String with the width of the element that will contain the map in CSS units.
height - - a String with the height of the element that will contain the map in CSS units.
Since:
GWT-OL 0.2

MapWidget

public MapWidget(String width,
                 String height,
                 MapOptions options)
Programmatically creates the element that will contain the map, with the given width and height. The map itself is instantiated upon calling getMap().

Parameters:
width - - a String with the width of the element that will contain the map in CSS units.
height - - a String with the height of the element that will contain the map in CSS units.
options - - null if no options should be set upon map instantiation or a MapOptions object that is passed to the map upon instantiation.
Since:
GWT-OL 0.2
Method Detail

getMap

public Map getMap()
Gets the map associated with a MapWidget instance. The map is instantiated when this method is called for the first time.

Returns:
Map - see Map.

setHeight

public void setHeight(String height)
Overrides:
setHeight in class com.google.gwt.user.client.ui.UIObject

setWidth

public void setWidth(String width)
Overrides:
setWidth in class com.google.gwt.user.client.ui.UIObject

onAttach

protected void onAttach()
Overrides:
onAttach in class com.google.gwt.user.client.ui.Widget

onLoad

protected void onLoad()
Overrides:
onLoad in class com.google.gwt.user.client.ui.Widget


Copyright © 2011 sourceforge. All Rights Reserved.