|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface specifies an activity which might be provided by a service.
An activity has three states: "idle", "active" and "invalid".
The initial state is "idle" and here the listeners should be registered.
It performs in the "active" state.
It enters the "invalid" state when it has fulfilled its task or a fatal
error occured.
In special cases state transition from "idle" to "invalid" is possible.
Field Summary | |
static int |
ACTIVE_STATE
This constant value represents the "idle" state. |
static int |
IDLE_STATE
This constant value represents the "active" state. |
static int |
INVALID_STATE
This constant value represents the "invalid" state. |
Method Summary | |
void |
addActivityStateChangeListener(org.csapi.jr.se.ActivityStateChangeListener activityStateChangeListener)
Add listener to receive notification when the activity object changes state |
int |
getState()
Gets the state attribute of the Activity object |
void |
removeActivityStateChangeListener(org.csapi.jr.se.ActivityStateChangeListener activityStateChangeListener)
Remove listener for activity state changes |
Field Detail |
public static final int IDLE_STATE
public static final int ACTIVE_STATE
public static final int INVALID_STATE
Method Detail |
public int getState()
public void addActivityStateChangeListener(org.csapi.jr.se.ActivityStateChangeListener activityStateChangeListener)
activityStateChangeListener
- object implementing the ActivityStateChangeListener interfacepublic void removeActivityStateChangeListener(org.csapi.jr.se.ActivityStateChangeListener activityStateChangeListener)
activityStateChangeListener
- object implementing the ActivityStateChangeListener interface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |