org.relayirc.swingui
Class ChatOptions.ServerList

java.lang.Object
  |
  +--org.relayirc.swingui.ChatOptions.ObjectList
        |
        +--org.relayirc.swingui.ChatOptions.ServerList
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ChatOptions

public class ChatOptions.ServerList
extends ChatOptions.ObjectList
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
ChatOptions.ServerList()
          Construct empty server list.
ChatOptions.ServerList(java.io.File file)
          Construct server list from MIRC servers.ini file.
ChatOptions.ServerList(java.util.Vector servers)
          Construct server list from vector of servers.
 
Method Summary
 void addServer(Server svr)
          Add server to user's list of IRC servers.
 void exportMircFile(java.lang.String fileName)
          TODO: Export server list file to MIRC format
 Server getServer(int index)
           
 int getServerCount()
           
 void importMircFile(java.io.File file)
          Import a MIRC format servers file.
 void removeServer(Server svr)
          Remove server from user's list of IRC servers.
 
Methods inherited from class org.relayirc.swingui.ChatOptions.ObjectList
addObject, contains, getObject, getObjectCount, getObjects, insertObjectAt, removeObject, setObjects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatOptions.ServerList

public ChatOptions.ServerList()
Construct empty server list.

ChatOptions.ServerList

public ChatOptions.ServerList(java.util.Vector servers)
Construct server list from vector of servers.

ChatOptions.ServerList

public ChatOptions.ServerList(java.io.File file)
Construct server list from MIRC servers.ini file.
Method Detail

getServerCount

public int getServerCount()

getServer

public Server getServer(int index)

addServer

public void addServer(Server svr)
Add server to user's list of IRC servers.

removeServer

public void removeServer(Server svr)
Remove server from user's list of IRC servers.

importMircFile

public void importMircFile(java.io.File file)
Import a MIRC format servers file.

exportMircFile

public void exportMircFile(java.lang.String fileName)
TODO: Export server list file to MIRC format