|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.echomine.net.Connection
public abstract class Connection
Base class for all network connection related services. Specifies necessary methods to be implemented by subclasses plus add the foundation for dispatching connection events.
Field Summary | |
---|---|
protected javax.swing.event.EventListenerList |
listenerList
|
Constructor Summary | |
---|---|
Connection()
|
Method Summary | |
---|---|
void |
addConnectionListener(ConnectionListener l)
adds a subscriber to listen for connection events |
protected void |
fireConnectionClosed(ConnectionEvent event)
|
protected void |
fireConnectionEstablished(ConnectionEvent event)
|
protected void |
fireConnectionStarting(ConnectionEvent event,
ConnectionEvent vetoEvent)
convenience method to fire off connection starting events. |
protected void |
fireConnectionStartingWithoutVeto(ConnectionEvent event)
this method is specially designed to fire off the event without capturing the veto exception. |
void |
removeConnectionListener(ConnectionListener l)
remove from listening to connection events |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.event.EventListenerList listenerList
Constructor Detail |
---|
public Connection()
Method Detail |
---|
public void addConnectionListener(ConnectionListener l)
public void removeConnectionListener(ConnectionListener l)
protected void fireConnectionStarting(ConnectionEvent event, ConnectionEvent vetoEvent) throws ConnectionVetoException
ConnectionVetoException
protected void fireConnectionStartingWithoutVeto(ConnectionEvent event) throws ConnectionVetoException
ConnectionVetoException
protected void fireConnectionEstablished(ConnectionEvent event)
protected void fireConnectionClosed(ConnectionEvent event)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |