org.relayirc.chatengine
Class ChannelAdapter

java.lang.Object
  extended by org.relayirc.chatengine.ChannelAdapter
All Implemented Interfaces:
ChannelListener

public class ChannelAdapter
extends java.lang.Object
implements ChannelListener

Provides a default do-nothing implementation of ChannelListener.

Version:
$Revision: 1.1.2.2 $

The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/

Original Code: Relay IRC Chat Engine
Initial Developer: David M. Johnson
Contributor(s): No contributors to this file
Copyright (C) 1997-2000 by David M. Johnson
All Rights Reserved.

Constructor Summary
ChannelAdapter()
           
 
Method Summary
 void onAction(ChannelEvent event)
          User has acted.
 void onActivation(ChannelEvent event)
          Channel has been activated, given focus or brought-to-front.
 void onBan(ChannelEvent event)
          An operator has banned a user from the channel.
 void onConnect(ChannelEvent event)
          Server has connected/joined the channel.
 void onDeOp(ChannelEvent event)
          An operator has taken away a users operator rights.
 void onDisconnect(ChannelEvent event)
          Server has disconnected/parted the channel.
 void onJoin(ChannelEvent event)
          A user has joined the channel.
 void onKick(ChannelEvent event)
          An operator has kicked a user from the channel.
 void onMessage(ChannelEvent event)
          A user has spoken.
 void onNames(ChannelEvent event)
          Received users who joined the channel.
 void onNick(ChannelEvent event)
          A user has changed nick names.
 void onNotice(ChannelEvent event)
          A user has spoken.
 void onOp(ChannelEvent event)
          An operator has given a user operator rights.
 void onPart(ChannelEvent event)
          A user has parted/left the channel.
 void onQuit(ChannelEvent event)
          A user has quit/disconnected from the chat server.
 void onTopicChange(ChannelEvent event)
          Channel topic has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelAdapter

public ChannelAdapter()
Method Detail

onActivation

public void onActivation(ChannelEvent event)
Description copied from interface: ChannelListener
Channel has been activated, given focus or brought-to-front. Event includes no originating user, subject user or value.

Specified by:
onActivation in interface ChannelListener

onAction

public void onAction(ChannelEvent event)
Description copied from interface: ChannelListener
User has acted. Event includes origin nick, origin address and the value is a string containing the text of the user's action.

Specified by:
onAction in interface ChannelListener

onConnect

public void onConnect(ChannelEvent event)
Description copied from interface: ChannelListener
Server has connected/joined the channel. Event includes no originating user, subject user or value.

Specified by:
onConnect in interface ChannelListener

onDisconnect

public void onDisconnect(ChannelEvent event)
Description copied from interface: ChannelListener
Server has disconnected/parted the channel. Event includes no originating user, subject user or value.

Specified by:
onDisconnect in interface ChannelListener

onMessage

public void onMessage(ChannelEvent event)
Description copied from interface: ChannelListener
A user has spoken. Event includes origin nick, origin address and the value is a string containing the text of the user's message.

Specified by:
onMessage in interface ChannelListener

onJoin

public void onJoin(ChannelEvent event)
Description copied from interface: ChannelListener
A user has joined the channel. Event includes origin nick, origin address and the value is a string containing the text of the user's message.

Specified by:
onJoin in interface ChannelListener

onNames

public void onNames(ChannelEvent event)
Description copied from interface: ChannelListener
Received users who joined the channel. Event's value is a List<User> containing a list of users who are currently on a channel you just joined. The users have operator status and voice status.

Specified by:
onNames in interface ChannelListener

onPart

public void onPart(ChannelEvent event)
Description copied from interface: ChannelListener
A user has parted/left the channel. Event includes origin nick, origin address.

Specified by:
onPart in interface ChannelListener

onBan

public void onBan(ChannelEvent event)
Description copied from interface: ChannelListener
An operator has banned a user from the channel. Event includes origin nick, origin address, subject nick, subject nick and subject address. The origin is the operator and the subject is the banned.

Specified by:
onBan in interface ChannelListener

onKick

public void onKick(ChannelEvent event)
Description copied from interface: ChannelListener
An operator has kicked a user from the channel. Event includes origin nick, origin address, subject nick, subject nick and subject address. The origin is the operator and the subject is the kicked.

Specified by:
onKick in interface ChannelListener

onNick

public void onNick(ChannelEvent event)
Description copied from interface: ChannelListener
A user has changed nick names. Event includes origin nick, origin address and the value is the origin's new nick name.

Specified by:
onNick in interface ChannelListener

onNotice

public void onNotice(ChannelEvent event)
Description copied from interface: ChannelListener
A user has spoken. Event includes origin nick, origin address and the value is a string containing the text of the user's message.

Specified by:
onNotice in interface ChannelListener

onOp

public void onOp(ChannelEvent event)
Description copied from interface: ChannelListener
An operator has given a user operator rights. Event includes origin nick, origin address, subject nick, subject nick and subject address. The origin is the operator and the subject is the reciever of rights.

Specified by:
onOp in interface ChannelListener

onDeOp

public void onDeOp(ChannelEvent event)
Description copied from interface: ChannelListener
An operator has taken away a users operator rights. Event includes origin nick, origin address, subject nick, subject nick and subject address. The origin is the operator and the subject is the reciever of rights.

Specified by:
onDeOp in interface ChannelListener

onQuit

public void onQuit(ChannelEvent event)
Description copied from interface: ChannelListener
A user has quit/disconnected from the chat server. Event includes origin nick, origin address and the value is the origin's new nick name.

Specified by:
onQuit in interface ChannelListener

onTopicChange

public void onTopicChange(ChannelEvent event)
Description copied from interface: ChannelListener
Channel topic has changed. The event's value is a sting containing the new topic.

Specified by:
onTopicChange in interface ChannelListener