|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that represents a connection to a back-end system. Provides support for managing the status of the connection, and for listeners to receive notification about changes in the status.
Field Summary | |
static int |
CONNECTED
There is a connection to the back-end. |
static int |
CONNECTING
A connection to the back-end is being established. |
static int |
CONNECTION_FAILED
There was a failure while trying to establish a connection to the back-end. |
static String |
CONNECTION_STATUS_PROPERTY
|
static int |
DISCONNECTING
The connection to the back-end is being broken. |
static int |
NOT_CONNECTED
There is no connection to the back-end. |
Method Summary | |
abstract void |
addPropertyChangeListener(PropertyChangeListener l)
Adds a listener for property-change events. |
abstract void |
addPropertyChangeListener(String propName,
PropertyChangeListener l)
Adds a listener for specific property-change events. |
abstract int |
getConnectionStatus()
Accesses the status of the connection. |
abstract void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a listener for all property-change events. |
abstract void |
removePropertyChangeListener(String propName,
PropertyChangeListener l)
Removes a listener for all property-change events. |
Field Detail |
public static final int NOT_CONNECTED
public static final int CONNECTING
public static final int CONNECTED
public static final int DISCONNECTING
public static final int CONNECTION_FAILED
public static final String CONNECTION_STATUS_PROPERTY
Method Detail |
public void addPropertyChangeListener(PropertyChangeListener l)
IlConnection
interface is
CONNECTION_STATUS_PROPERTY
.l
- The listenerpublic void addPropertyChangeListener(String propName, PropertyChangeListener l)
IlConnection
interface is
CONNECTION_STATUS_PROPERTY
.propName
- The property namel
- The listenerpublic void removePropertyChangeListener(PropertyChangeListener l)
l
- The listenerpublic void removePropertyChangeListener(String propName, PropertyChangeListener l)
propName
- The property namel
- The listenerpublic int getConnectionStatus()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |