public class DefaultInternalEventHandler extends java.lang.Object implements IRCEventListener
DefaultInternalEventHandler#addEventHandler(Type, IRCEventListener)
,
DefaultInternalEventHandler#removeEventHandler(Type)
,
IRCEventListener
Constructor and Description |
---|
DefaultInternalEventHandler(ConnectionManager manager)
Creates a new DefaultInternalEventHandler associated with
the given ConnectionManager
|
Modifier and Type | Method and Description |
---|---|
void |
addEventHandler(IRCEvent.Type type,
IRCEventListener listener)
Adds an IRCEventListener to handle a given event Type.
|
void |
connectionComplete(IRCEvent e)
Called when ConnectionComplete event is received.
|
IRCEventListener |
getEventHandler(IRCEvent.Type type)
Returns the event handler registerd to the Type given.
|
void |
join(IRCEvent e)
Called when a JoinEvent is received.
|
void |
joinComplete(IRCEvent e)
Called when a JoinCompleteEvent is received
|
void |
kick(IRCEvent e)
Called when a KickEvent is received
|
void |
mode(IRCEvent event)
Called when a ModeEvent is received
|
void |
nick(IRCEvent e)
Called when a NickChangeEvent is received
|
void |
nickInUse(IRCEvent e)
Called when a NickInUseEvent is received
|
void |
part(IRCEvent e)
Called when a PartEvent is received.
|
void |
quit(IRCEvent e)
Called when a QuitEvent is received.
|
void |
receiveEvent(IRCEvent event)
recieveEvent() - receive IRCEvents
|
boolean |
removeEventHandler(IRCEvent.Type type)
Removes any internal IRCEventListeners registered
to handle the Type passed in.
|
public DefaultInternalEventHandler(ConnectionManager manager)
manager
- public void addEventHandler(IRCEvent.Type type, IRCEventListener listener)
type
- listener
- public boolean removeEventHandler(IRCEvent.Type type)
type
- public IRCEventListener getEventHandler(IRCEvent.Type type)
type
- public void receiveEvent(IRCEvent event)
IRCEventListener
receiveEvent
in interface IRCEventListener
event
- IRCEvent the event
public void joinComplete(IRCEvent e)
e
- the eventpublic void join(IRCEvent e)
e
- the eventpublic void quit(IRCEvent e)
e
- the eventpublic void part(IRCEvent e)
e
- the eventpublic void nick(IRCEvent e)
e
- the eventpublic void nickInUse(IRCEvent e)
e
- the eventpublic void kick(IRCEvent e)
e
- the eventpublic void connectionComplete(IRCEvent e)
e
- the eventpublic void mode(IRCEvent event)
event
-