|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.ocap.shared.dvr.RecordingChangedEvent
public class RecordingChangedEvent
Event used to notify listeners of changes in the list of recording requests maintained by the RecordingManager. This event is not generated for changes other than those for which constants are defined in this class.
Field Summary | |
---|---|
static int |
ENTRY_ADDED
A new RecordingRequest was added. |
static int |
ENTRY_DELETED
A RecordingRequest was deleted. |
static int |
ENTRY_STATE_CHANGED
The state of a RecordingRequest changed |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
RecordingChangedEvent(RecordingRequest source,
int newState,
int oldState)
Constructs the event. |
|
RecordingChangedEvent(RecordingRequest source,
int newState,
int oldState,
int type)
Constructs the event. |
Method Summary | |
---|---|
int |
getChange()
Returns the change to the RecordingRequest . |
int |
getOldState()
Returns the old state for the RecordingRequest . |
RecordingRequest |
getRecordingRequest()
Returns the RecordingRequest that caused the event. |
int |
getState()
Returns the new state for the RecordingRequest . |
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 int ENTRY_ADDED
RecordingRequest
was added.
public static final int ENTRY_DELETED
RecordingRequest
was deleted.
public static final int ENTRY_STATE_CHANGED
RecordingRequest
changed
Constructor Detail |
---|
public RecordingChangedEvent(RecordingRequest source, int newState, int oldState)
source
- The RecordingRequest
that
caused the event.newState
- the state the RecordingRequest
is now in.oldState
- the state the RecordingRequest
was in before the state change.public RecordingChangedEvent(RecordingRequest source, int newState, int oldState, int type)
source
- The RecordingRequest
that
caused the event.newState
- the state the RecordingRequest
is now in.oldState
- the state the RecordingRequest
was in before the state change.type
- the type of change which caused this event to be generatedMethod Detail |
---|
public RecordingRequest getRecordingRequest()
RecordingRequest
that caused the event.
RecordingRequest
that caused the event.public int getChange()
RecordingRequest
.
public int getState()
RecordingRequest
.
public int getOldState()
RecordingRequest
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |