|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.maps.client.control.Control
com.google.gwt.maps.client.control.HierarchicalMapTypeControl
public final class HierarchicalMapTypeControl
Creates a control with buttons to pan in four directions, and zoom in and zoom out, and a zoom slider.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.maps.client.control.Control |
---|
Control.CustomControl |
Field Summary |
---|
Fields inherited from class com.google.gwt.maps.client.control.Control |
---|
jsoPeer |
Constructor Summary | |
---|---|
HierarchicalMapTypeControl()
Constructs the control. |
Method Summary | |
---|---|
void |
addRelationship(MapType parentType,
MapType childType)
Registers a parent/child relationship between map types with the control. |
void |
addRelationship(MapType parentType,
MapType childType,
java.lang.String childText)
Registers a parent/child relationship between map types with the control. |
void |
addRelationship(MapType parentType,
MapType childType,
java.lang.String childText,
boolean isDefault)
Registers a parent/child relationship between map types with the control. |
void |
clearRelationships()
Removes all relationships from the control. |
void |
removeRelationship(MapType mapType)
Removes all relationships involving a map type from the control. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HierarchicalMapTypeControl()
MapType.getSatelliteMap()
map type. If this is not
desired, the relationship can be removed by calling the
clearRelationships()
method.
Method Detail |
---|
public void addRelationship(MapType parentType, MapType childType)
parentType
- the parent MapType in the menuchildType
- the child MapType to add to the menu.public void addRelationship(MapType parentType, MapType childType, java.lang.String childText)
parentType
- the parent MapType in the menuchildType
- the child MapType to add to the menu.childText
- will be displayed next to the checkbox for the child map
type instead of its namepublic void addRelationship(MapType parentType, MapType childType, java.lang.String childText, boolean isDefault)
parentType
- the parent MapType in the menuchildType
- the child MapType to add to the menu.childText
- the text to display in the menu (instead of the default)isDefault
- Set to true
to make this map type the
default selection when the map is loaded.public void clearRelationships()
public void removeRelationship(MapType mapType)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |