com.google.gwt.maps.client.impl
Interface HierarchicalMapTypeControlImpl
- All Superinterfaces:
- JSFlyweightWrapper
public interface HierarchicalMapTypeControlImpl
- extends JSFlyweightWrapper
The HierarchicalMapTypeControl provides a "nested" map type control for
selecting and switching between supported map types via buttons and nested
checkboxes. Controls will be made available for all map types currently
attached to the map at the time the control is constructed.
Map types added to the map appear as buttons as in the normal
GMapTypeControl. However, map types set as sub-types of other map types (see
the addRelationship() method below) will appear as checkbox sub-menu items
below the parent button. By default, maps support the set of
MapType.getDefaultMapTypes()
though maps
may also add map types explicitly via
MapWidget.addMapType(com.google.gwt.maps.client.MapType)
Controls will be made available for all map types currently attached to the
map at the time the control is constructed. Note that because sub-types
appear as checkboxes, you can toggle their appearance with their parents or
their siblings in the sub-menu.
Method Summary |
void |
addRelationship(com.google.gwt.core.client.JavaScriptObject jsoPeer,
MapType parentType,
MapType childType)
|
void |
addRelationship(com.google.gwt.core.client.JavaScriptObject jsoPeer,
MapType parentType,
MapType childType,
java.lang.String childText)
|
void |
addRelationship(com.google.gwt.core.client.JavaScriptObject jsoPeer,
MapType parentType,
MapType childType,
java.lang.String childText,
boolean isDefault)
|
void |
clearRelationships(com.google.gwt.core.client.JavaScriptObject jsoPeer)
|
com.google.gwt.core.client.JavaScriptObject |
construct()
|
void |
removeRelationship(com.google.gwt.core.client.JavaScriptObject jsoPeer,
MapType mapType)
|
impl
static final HierarchicalMapTypeControlImpl impl
addRelationship
void addRelationship(com.google.gwt.core.client.JavaScriptObject jsoPeer,
MapType parentType,
MapType childType)
addRelationship
void addRelationship(com.google.gwt.core.client.JavaScriptObject jsoPeer,
MapType parentType,
MapType childType,
java.lang.String childText)
addRelationship
void addRelationship(com.google.gwt.core.client.JavaScriptObject jsoPeer,
MapType parentType,
MapType childType,
java.lang.String childText,
boolean isDefault)
clearRelationships
void clearRelationships(com.google.gwt.core.client.JavaScriptObject jsoPeer)
construct
@Constructor(value="$wnd.GHierarchicalMapTypeControl")
com.google.gwt.core.client.JavaScriptObject construct()
removeRelationship
void removeRelationship(com.google.gwt.core.client.JavaScriptObject jsoPeer,
MapType mapType)