|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
com.cafesoft.core.lifecycle.LifecycleEvent
public final class LifecycleEvent
Notifies listeners of significant changes on a component that implements the Lifecycle interface.
| Field Summary | |
|---|---|
static String |
START_EVENT
The LifecycleEvent type for the "component start" event. |
static String |
STOP_EVENT
The LifecycleEvent type for the "component stop" event. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
LifecycleEvent(Lifecycle lifecycle,
String type)
Construct a new LifecycleEvent with the specified parameters. |
|
LifecycleEvent(Lifecycle lifecycle,
String type,
Object data)
Construct a new LifecycleEvent with the specified parameters. |
|
| Method Summary | |
|---|---|
Object |
getData()
Return the event data of this event. |
Lifecycle |
getLifecycle()
Return the Lifecycle on which this event occurred. |
String |
getType()
Return the event type of this event. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String START_EVENT
public static final String STOP_EVENT
| Constructor Detail |
|---|
public LifecycleEvent(Lifecycle lifecycle,
String type)
lifecycle - component on which this event occurredtype - event type (required)
public LifecycleEvent(Lifecycle lifecycle,
String type,
Object data)
lifecycle - Component on which this event occurredtype - Event type (required)data - Event data (if any)| Method Detail |
|---|
public Object getData()
public Lifecycle getLifecycle()
public String getType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||