|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--flatscape.FConnection
Configurable class, which handles the connection to the server.
Example of configuration:
<COMPONENT class="flatscape.FConnection"> <FACTORY class="disciple.connections.TcpConnectionFactory" host="127.0.0.1" port="4000" /> </COMPONENT>
Copyright © 2002 Rutgers, The State University of New Jersey
| Field Summary | |
protected Connection |
connection_
|
protected ConnectionFactory |
connectionFactory_
|
protected int |
state_
|
protected AbstractViewer |
viewer_
|
| Constructor Summary | |
FConnection()
|
|
| Method Summary | |
java.lang.Object |
config(java.lang.Object parent,
org.w3c.dom.Element config)
Called upon loading of the XML configuation files. |
void |
connectionAdded(Connection connection,
org.w3c.dom.Element status)
|
void |
connectionChanged(Connection connection,
org.w3c.dom.Element status)
|
void |
connectionRemoved(Connection connection)
|
int |
getState()
|
void |
login()
Logon to the server. |
void |
logoff()
Logoff from the server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int state_
protected AbstractViewer viewer_
protected Connection connection_
protected ConnectionFactory connectionFactory_
| Constructor Detail |
public FConnection()
| Method Detail |
public void login()
public void logoff()
public int getState()
disciple.core.Connection)
public java.lang.Object config(java.lang.Object parent,
org.w3c.dom.Element config)
throws java.lang.Exception
config in interface Configurableparent - The argument passed into the Config.getList methodconfig - The DOM element representing the XML element that
loaded this class.
java.lang.Exception - Thrown if there is any problem configuring this class.
public void connectionChanged(Connection connection,
org.w3c.dom.Element status)
connectionChanged in interface ConnectionListenerstatus -
public void connectionAdded(Connection connection,
org.w3c.dom.Element status)
connectionAdded in interface ConnectionListenerstatus - connection - public void connectionRemoved(Connection connection)
connectionRemoved in interface ConnectionListenerconnection -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||