public class BasemapGallery
extends com.google.gwt.user.client.ui.Composite
Modifier and Type | Class and Description |
---|---|
static class |
BasemapGallery.Parameters |
Constructor and Description |
---|
BasemapGallery(BasemapGallery.Parameters params)
Creates a new BasemapGallery dijit.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Basemap basemap)
Add a new basemap to the BasemapGallery's list of basemaps.
|
void |
addAddHandler(BasemapAddHandler handler)
Fires when a basemap is added to the BasemapGallery's list of basemaps.
|
void |
addErrorHandler(ErrorHandler handler)
Fires when an error occurs while switching basemaps.
|
void |
addLoadHandler(BasemapLoadHandler handler)
Fires when the BasemapGallery retrieves the ArcGIS.com basemaps.
|
void |
addRemoveHandler(BasemapRemoveHandler handler)
Fires when a basemap is removed from the BasemapGallery's list of basemaps.
|
void |
addSelectionHandler(BasemapSelectionHandler handler)
Fires after the map is updated with a new basemap.
|
static boolean |
assertLoaded()
Check that the esri.dijit.BasemapGallery has been loaded
|
void |
destroy()
Destroys the basemap gallery.
|
Basemap |
get(java.lang.String id)
Return the basemap with the specified id.
|
com.google.gwt.core.client.JsArray<Basemap> |
getBasemaps()
List of basemaps displayed in the BasemapGallery.
|
Basemap |
getSelected()
Gets the currently selected basemap.
|
boolean |
isLoaded()
This value is true after the BasemapGallery retrieves the ArcGIS.com basemaps.
|
Basemap |
remove(java.lang.String id)
Remove a basemap from the BasemapGallery's list of basemaps.
|
Basemap |
select(java.lang.String id)
Select a new basemap for the map.
|
void |
startup()
Finalizes the creation of the basemap gallery.
|
claimElement, initializeClaimedElement, isAttached, onBrowserEvent, render, render
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
public BasemapGallery(BasemapGallery.Parameters params)
params
- - Parameters used to configure the widgit. See the list below for details.public static boolean assertLoaded()
public com.google.gwt.core.client.JsArray<Basemap> getBasemaps()
public boolean isLoaded()
public boolean add(Basemap basemap)
basemap
- - The basemap to add to the map.public void destroy()
public final Basemap get(java.lang.String id)
id
- - The basemap id.public final Basemap getSelected()
public final Basemap remove(java.lang.String id)
id
- - The basemap id.public final Basemap select(java.lang.String id)
id
- - The basemap id.public final void startup()
public final void addAddHandler(BasemapAddHandler handler)
handler
- - handler to fire when basemap is addedpublic final void addErrorHandler(ErrorHandler handler)
handler
- - error handler to firepublic final void addLoadHandler(BasemapLoadHandler handler)
handler
- - handler to be firedpublic final void addRemoveHandler(BasemapRemoveHandler handler)
handler
- - handler to be fired.public final void addSelectionHandler(BasemapSelectionHandler handler)
handler
- - handler to be fired.