|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.event.MapLifecycleAdapter
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.
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 |
public MapLifecycleAdapter()
Method Detail |
public void mapLoaded(MapLifecycleEvent event)
mapLoaded
in interface MapLifecycleListener
public void mapUnloaded(MapLifecycleEvent event)
mapUnloaded
in interface MapLifecycleListener
public void mapSuspended(MapLifecycleEvent event)
mapSuspended
in interface MapLifecycleListener
public void mapResumed(MapLifecycleEvent event)
mapResumed
in interface MapLifecycleListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |