See on Tõrva Gümnaasiumi vana veebilehe arhiiv. Uus veebileht: https://torva.edu.ee/

ChanList (PJIRC project)

Lisamaterjalide loend

Algne fail: vana_veeb/pjirc/doc/javadoc/irc/ChanList.html.

========== START OF NAVBAR ==========
=========== END OF NAVBAR ===========
======== START OF CLASS DATA ========

irc
Class ChanList

java.lang.Object
  |
  +--irc.IRCObject
        |
        +--irc.ChanList

public class ChanList
extends IRCObject

A channel list handler.


Field Summary
 
Fields inherited from class irc.IRCObject
_ircConfiguration
 
Constructor Summary
ChanList(IRCConfiguration config, IRCServer server, java.lang.String name)
          Create a new ChanList.
 
Method Summary
 void addChanListListener(ChanListListener lis)
          Add a ChanListListener.
 void addChannel(ChannelInfo nfo)
          Add a channel in the channel list.
 void begin()
          Begin a new channel listing.
 void end()
          End the channel listing.
 ChannelInfo[] getChannels()
          Get the channels.
 java.lang.String getName()
          Get the chanlist name.
 IRCServer getServer()
          Get the IRCServer.
 void leave()
          Request the destruction of this chanlist.
 void removeChanListListeners(ChanListListener lis)
          Remove a chanListListener.
 
Methods inherited from class irc.IRCObject
getColor, getIRCConfiguration, getText, getText, getText, getText, getTimeStamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChanList

public ChanList(IRCConfiguration config,
                IRCServer server,
                java.lang.String name)
Create a new ChanList.

Parameters:
config - the global configuration.
server - the IRCServer from where to retreive channel list.
name - the chanlist name.

Method Detail

getName

public java.lang.String getName()
Get the chanlist name.


getChannels

public ChannelInfo[] getChannels()
Get the channels.

Returns:
array of all channels.


addChannel

public void addChannel(ChannelInfo nfo)
Add a channel in the channel list.

Parameters:
nfo - new channel to add.


begin

public void begin()
Begin a new channel listing. The channel list is cleared.


end

public void end()
End the channel listing.


getServer

public IRCServer getServer()
Get the IRCServer.

Returns:
the irc server.


addChanListListener

public void addChanListListener(ChanListListener lis)
Add a ChanListListener.

Parameters:
lis - listener to add.


removeChanListListeners

public void removeChanListListeners(ChanListListener lis)
Remove a chanListListener.

Parameters:
lis - listener to remove.


leave

public void leave()
Request the destruction of this chanlist.