|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.gmaps.AbstractMapModel org.zkoss.gmaps.MapModelMap
public class MapModelMap
This is the MapModel
as a Map
to be used
with Maps component such as Gmaps
. Add or remove the contents
of this model as a List would cause the associated Maps to change
accordingly.
MapModel
,
MapModelSet
,
MapModelList
,
Serialized FormField Summary | |
---|---|
protected java.util.Map |
_map
|
Constructor Summary | |
---|---|
MapModelMap()
Constructor. |
|
MapModelMap(int initialCapacity)
Constructor. |
|
MapModelMap(int initialCapacity,
float loadFactor)
Constructor. |
|
MapModelMap(java.util.Map map)
Constructor. |
|
MapModelMap(java.util.Map map,
boolean live)
Constructor. |
Method Summary | |
---|---|
void |
clear()
Clear all items of this model. |
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set |
entrySet()
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
get(java.lang.Object key)
|
java.util.Map |
getInnerMap()
Get the inner real Map. |
java.util.Collection |
getItemsIn(double swlat,
double swlng,
double nelat,
double nelng,
double cenlat,
double cenlng,
int zoom)
Returns the items in the specified bounds (south-west to north-east), center latitude, center longitude, and zoom level. |
int |
hashCode()
|
boolean |
isEmpty()
|
java.util.Set |
keySet()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object o)
|
void |
putAll(java.util.Map c)
|
java.lang.Object |
remove(java.lang.Object key)
|
int |
size()
|
java.lang.String |
toString()
|
java.util.Collection |
values()
|
Methods inherited from class org.zkoss.gmaps.AbstractMapModel |
---|
addMapDataListener, fireEvent, removeMapDataListener |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Map _map
Constructor Detail |
---|
public MapModelMap(java.util.Map map, boolean live)
map
- the map to representlive
- whether to have a 'live' ListModel
on top of
the specified map.
If false, the content of the specified map is copied.
If true, this object is a 'facade' of the specified map,
i.e., when you add or remove items from this ListModelMap
,
the inner "live" map would be changed accordingly.
However, it is not a good idea to modify map
if it is passed to this method with live is true,
since Gmaps
is not smart enough to handle it.
Instead, modify it thru this object.public MapModelMap()
public MapModelMap(java.util.Map map)
public MapModelMap(int initialCapacity)
initialCapacity
- the initial capacity for this MapModelMap.public MapModelMap(int initialCapacity, float loadFactor)
initialCapacity
- the initial capacity for this MapModelMap.loadFactor
- the loadFactor to increase capacity of this MapModelMap.Method Detail |
---|
public java.util.Map getInnerMap()
public void clear()
MapModel
public java.util.Collection getItemsIn(double swlat, double swlng, double nelat, double nelng, double cenlat, double cenlng, int zoom)
MapModel
swlat
- south-west latitudeswlng
- south-west longitudenelat
- north-east latitudenelng
- north-east longitudecenlat
- center latitudecenlng
- center longitudezoom
- current zoom level
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public java.util.Set entrySet()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object get(java.lang.Object key)
public int hashCode()
hashCode
in class java.lang.Object
public boolean isEmpty()
public java.util.Set keySet()
public java.lang.Object put(java.lang.Object key, java.lang.Object o)
public void putAll(java.util.Map c)
public java.lang.Object remove(java.lang.Object key)
public int size()
public java.util.Collection values()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |