public class ModuleEvent
extends java.util.EventObject
This is an event class that is used by the ModuleManager to indicate when modules are added, removed, or reset. To receive these events, a ModuleListener must be added to the ModuleManager instance.
ModuleManager
,
Module
,
ModuleListener
,
Serialized FormConstructor and Description |
---|
ModuleEvent(ModuleManager mgr,
Module module)
Constructs a module event with the specified ModuleManager
as the event source and the specified module as the subject of
the event.
|
public ModuleEvent(ModuleManager mgr, Module module)
Constructs a module event with the specified ModuleManager as the event source and the specified module as the subject of the event.
mgr
- the source of the event.module
- the subject of the event.public Module getModule()
Returns the module that is the subject of the event.