org.zkoss.gmaps
Class AbstractMapModel

java.lang.Object
  extended by org.zkoss.gmaps.AbstractMapModel
All Implemented Interfaces:
java.io.Serializable, MapModel
Direct Known Subclasses:
MapModelList, MapModelMap, MapModelSet

public abstract class AbstractMapModel
extends java.lang.Object
implements MapModel, java.io.Serializable

A skeletal implementation for MapModel.

Since:
2.0_9
Author:
henrichen
See Also:
Serialized Form

Constructor Summary
AbstractMapModel()
           
 
Method Summary
 void addMapDataListener(MapDataListener listener)
          Adds a listener to the Maps that's notified each time a change to the data model occurs.
protected  void fireEvent(int type, java.util.Collection items)
          Fires a MapDataEvent for all registered listener (thru addMapDataListener(org.zkoss.gmaps.event.MapDataListener).
 void removeMapDataListener(MapDataListener listener)
          Remove a listener from the list that's notified each time a change to the the data model occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zkoss.gmaps.MapModel
clear, getItemsIn
 

Constructor Detail

AbstractMapModel

public AbstractMapModel()
Method Detail

fireEvent

protected void fireEvent(int type,
                         java.util.Collection items)
Fires a MapDataEvent for all registered listener (thru addMapDataListener(org.zkoss.gmaps.event.MapDataListener).

Note: you can invoke this method only in an event listener.

Parameters:
type - the MapDataEvent type
items - the items to be processed

addMapDataListener

public void addMapDataListener(MapDataListener listener)
Description copied from interface: MapModel
Adds a listener to the Maps that's notified each time a change to the data model occurs.

Specified by:
addMapDataListener in interface MapModel

removeMapDataListener

public void removeMapDataListener(MapDataListener listener)
Description copied from interface: MapModel
Remove a listener from the list that's notified each time a change to the the data model occurs.

Specified by:
removeMapDataListener in interface MapModel


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.