|
||||||||||
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.MapModelList
public class MapModelList
This is the MapModel
as a List
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
,
MapModelMap
,
Serialized FormField Summary | |
---|---|
protected java.util.List |
_list
|
Constructor Summary | |
---|---|
MapModelList()
Constructor. |
|
MapModelList(java.util.Collection c)
Constructor. |
|
MapModelList(int initialCapacity)
Constructor. |
|
MapModelList(java.util.List list,
boolean live)
Constructor |
|
MapModelList(java.lang.Object[] array)
Constructor. |
Method Summary | |
---|---|
void |
add(int index,
java.lang.Object element)
|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
boolean |
addAll(int index,
java.util.Collection c)
|
void |
clear()
Clear all items of this model. |
boolean |
contains(java.lang.Object elem)
|
boolean |
containsAll(java.util.Collection c)
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
get(int index)
|
java.util.List |
getInnerList()
Get the inner real List. |
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()
|
int |
indexOf(java.lang.Object elem)
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
int |
lastIndexOf(java.lang.Object elem)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
void |
removeRange(int fromIndex,
int toIndex)
Remove from fromIndex(inclusive) to toIndex(exclusive). |
boolean |
retainAll(java.util.Collection c)
|
java.lang.Object |
set(int index,
java.lang.Object element)
|
int |
size()
|
java.util.List |
subList(int fromIndex,
int toIndex)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
java.lang.String |
toString()
|
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.List _list
Constructor Detail |
---|
public MapModelList(java.util.List list, boolean live)
list
- the list to representlive
- whether to have a 'live' ListModel
on top of
the specified list.
If false, the content of the specified list is copied.
If true, this object is a 'facade' of the specified list,
i.e., when you add or remove items from this ListModelList,
the inner "live" list would be changed accordingly.
However, it is not a good idea to modify list
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 MapModelList()
public MapModelList(java.util.Collection c)
public MapModelList(java.lang.Object[] array)
public MapModelList(int initialCapacity)
initialCapacity
- the initial capacity for this MapModelList.Method Detail |
---|
public void removeRange(int fromIndex, int toIndex)
fromIndex
- the begin index (inclusive) to be removed.toIndex
- the end index (exclusive) to be removed.public java.util.List getInnerList()
public void clear()
MapModel
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in interface MapModel
public java.util.Collection getItemsIn(double swlat, double swlng, double nelat, double nelng, double cenlat, double cenlng, int zoom)
MapModel
getItemsIn
in interface MapModel
swlat
- south-west latitudeswlng
- south-west longitudenelat
- north-east latitudenelng
- north-east longitudecenlat
- center latitudecenlng
- center longitudezoom
- current zoom level
public void add(int index, java.lang.Object element)
add
in interface java.util.List
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.List
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
public boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List
public boolean contains(java.lang.Object elem)
contains
in interface java.util.Collection
contains
in interface java.util.List
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.List
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection
equals
in interface java.util.List
equals
in class java.lang.Object
public java.lang.Object get(int index)
get
in interface java.util.List
public int hashCode()
hashCode
in interface java.util.Collection
hashCode
in interface java.util.List
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int indexOf(java.lang.Object elem)
indexOf
in interface java.util.List
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.List
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
public int lastIndexOf(java.lang.Object elem)
lastIndexOf
in interface java.util.List
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
public java.lang.Object remove(int index)
remove
in interface java.util.List
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.List
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.List
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
toArray
in interface java.util.List
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |