wyvern.lib.event
Class MapLifecycleAdapter

java.lang.Object
  extended bywyvern.lib.event.MapLifecycleAdapter
All Implemented Interfaces:
java.util.EventListener, MapLifecycleListener

public class MapLifecycleAdapter
extends java.lang.Object
implements MapLifecycleListener

An abstract adapter class for receiving map lifecycle events. The methods in this class are empty. This class exists as a convenience for creating listener objects.

Extend this class to create a MapLifecycleEvent listener, and override the methods for the events of interest. (If you implement the MapLifecycleListener interface, you have to define all of the methods in it. This abstract class defines null methods for them all, so you only have to define methods for events you care about.)

Create a listener object using the extended class and then register it with a map using the map's addMapLifecycleListener method. When the map is loaded, suspended, resumed, or unloaded, the relevant method in the listener object is invoked, and the MapLifecycleEvent is passed to it.

Version:
1.0, Oct 28, 2003
Author:
Steve Yegge

Constructor Summary
MapLifecycleAdapter()
           
 
Method Summary
 void mapLoaded(MapLifecycleEvent event)
          Invoked when a map is loaded.
 void mapResumed(MapLifecycleEvent event)
          Invoked when a map is resumed.
 void mapSuspended(MapLifecycleEvent event)
          Invoked when a map is suspended.
 void mapUnloaded(MapLifecycleEvent event)
          Invoked when a map is unloaded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapLifecycleAdapter

public MapLifecycleAdapter()
Method Detail

mapLoaded

public void mapLoaded(MapLifecycleEvent event)
Invoked when a map is loaded.

Specified by:
mapLoaded in interface MapLifecycleListener

mapUnloaded

public void mapUnloaded(MapLifecycleEvent event)
Invoked when a map is unloaded.

Specified by:
mapUnloaded in interface MapLifecycleListener

mapSuspended

public void mapSuspended(MapLifecycleEvent event)
Invoked when a map is suspended.

Specified by:
mapSuspended in interface MapLifecycleListener

mapResumed

public void mapResumed(MapLifecycleEvent event)
Invoked when a map is resumed.

Specified by:
mapResumed in interface MapLifecycleListener