oracle.jdeveloper.cm
Class ConnectionEvent
java.lang.Object
|
+--java.util.EventObject
|
+--oracle.jdeveloper.cm.ConnectionEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ConnectionEvent
- extends java.util.EventObject
The ConnectionEvent
class describes the nature of a
connection-related event. They can roughly be broken down into two
separate categories:
Events related to ConnectionDescriptor
objects:
These include CONNECTION_ADDED
,
CONNECITON_MODIFIED
, and
CONNECTION_REMOVED
.
Events related to live ConnectionWrapper
objects:
These include CONNECTION_OPENED
and
CONNECTION_CLOSED
events.
- See Also:
ConnectionDescriptor
,
ConnectionWrapper
, Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
ConnectionEvent(int id,
java.lang.Object source,
java.lang.Object data)
constructs a new ConnectionEvent object. |
Method Summary |
java.lang.Object |
getData()
returns the user data associated with the event. |
int |
getID()
returns the id of the 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 |
CONNECTION_ADDED
public static final int CONNECTION_ADDED
- constant:
CONNECTION_ADDED
identifier.
CONNECTION_MODIFIED
public static final int CONNECTION_MODIFIED
- constant:
CONNECTION_MODIFIED
identifier.
CONNECTION_OPENED
public static final int CONNECTION_OPENED
- constant:
CONNECTION_OPENED
identifier.
CONNECTION_CLOSED
public static final int CONNECTION_CLOSED
- constant:
CONNECTION_CLOSED
identifier.
CONNECTION_REMOVED
public static final int CONNECTION_REMOVED
- constant:
CONNECTION_REMOVED
identifier.
_id
protected int _id
_data
protected java.lang.Object _data
ConnectionEvent
public ConnectionEvent(int id,
java.lang.Object source,
java.lang.Object data)
- constructs a new
ConnectionEvent
object.
- Parameters:
id
- the constant describing the type of event.source
- the object generating the event.data
- any user data the source wants to provide.
getID
public int getID()
- returns the id of the event.
- Returns:
- the id of the event.
getData
public java.lang.Object getData()
- returns the user data associated with the event.
- Returns:
- the user data associated with the event.