Extension SDK

oracle.jdeveloper.cm
Class ConnectionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byoracle.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

Field Summary
protected  java.lang.Object _data
           
protected  int _id
           
static int CONNECTION_ADDED
          constant: CONNECTION_ADDED identifier.
static int CONNECTION_CLOSED
          constant: CONNECTION_CLOSED identifier.
static int CONNECTION_MODIFIED
          constant: CONNECTION_MODIFIED identifier.
static int CONNECTION_OPENED
          constant: CONNECTION_OPENED identifier.
static int CONNECTION_REMOVED
          constant: CONNECTION_REMOVED identifier.
 
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
 

Field Detail

CONNECTION_ADDED

public static final int CONNECTION_ADDED
constant: CONNECTION_ADDED identifier.

See Also:
Constant Field Values

CONNECTION_MODIFIED

public static final int CONNECTION_MODIFIED
constant: CONNECTION_MODIFIED identifier.

See Also:
Constant Field Values

CONNECTION_OPENED

public static final int CONNECTION_OPENED
constant: CONNECTION_OPENED identifier.

See Also:
Constant Field Values

CONNECTION_CLOSED

public static final int CONNECTION_CLOSED
constant: CONNECTION_CLOSED identifier.

See Also:
Constant Field Values

CONNECTION_REMOVED

public static final int CONNECTION_REMOVED
constant: CONNECTION_REMOVED identifier.

See Also:
Constant Field Values

_id

protected int _id

_data

protected java.lang.Object _data
Constructor Detail

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.
Method Detail

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.

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.