|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--irc.IRCObject | +--irc.Source
The root source.
Field Summary | |
protected Interpretor |
_in
The interpretor. |
protected Server |
_server
The server. |
Fields inherited from class irc.IRCObject |
_ircConfiguration |
Constructor Summary | |
Source(IRCConfiguration config,
Server s)
Create a new Source. |
Method Summary | |
void |
action(java.lang.String nick,
java.lang.String msg)
Notify this source a new action message has arrived. |
void |
activate()
Activate this source. |
void |
addSourceListener(SourceListener lis)
Add a new SourceListener. |
void |
clear()
Request this source to clear all the history it could have. |
Interpretor |
getInterpretor()
Get this source's interpretor. |
abstract java.lang.String |
getName()
Get this source name. |
Server |
getServer()
Get the source server. |
abstract java.lang.String |
getType()
Get this source type. |
boolean |
isActive()
Test wether this source is active. |
abstract void |
leave()
Request to leave (close) this source. |
boolean |
mayDefault()
Test whether this source may be used as a default source for system event output. |
void |
messageReceived(java.lang.String source,
java.lang.String msg)
Notify this source a new message has arrived. |
void |
noticeReceived(java.lang.String source,
java.lang.String msg)
Notify this source a new notice message has arrived. |
void |
release()
Release this object. |
void |
removeSourceListener(SourceListener lis)
Remove a SourceListener. |
void |
report(java.lang.String msg)
Notify this source a new report has arrived. |
void |
sendString(java.lang.String str)
Send a string from user input to this source. |
void |
setCTCPFilter(CTCPFilter filter)
Set this source's CTCPFilter. |
void |
setInterpretor(Interpretor in)
Set this source's interpretor. |
abstract boolean |
talkable()
Test wether this source can accept messages from user. |
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 |
Field Detail |
protected Server _server
protected Interpretor _in
Constructor Detail |
public Source(IRCConfiguration config, Server s)
config
- the global configuration.s
- the bound server.Method Detail |
public void release()
IRCObject
release
in class IRCObject
public abstract java.lang.String getName()
public abstract java.lang.String getType()
public abstract boolean talkable()
public abstract void leave()
public void setInterpretor(Interpretor in)
in
- new interpretor.public void setCTCPFilter(CTCPFilter filter)
filter
- new CTCPFilter.public void sendString(java.lang.String str)
str
- user input.public Interpretor getInterpretor()
public void clear()
public void messageReceived(java.lang.String source, java.lang.String msg)
source
- the source of the message. It can be a user nickname or a channel name.msg
- the message.public void noticeReceived(java.lang.String source, java.lang.String msg)
source
- the source of the message. It can be a user nickname or a channel name.msg
- the message.public void action(java.lang.String nick, java.lang.String msg)
nick
- the user who sent the action.msg
- the message.public void report(java.lang.String msg)
msg
- the report message.public void addSourceListener(SourceListener lis)
lis
- listener to add.public void removeSourceListener(SourceListener lis)
lis
- the listener to remove.public void activate()
public boolean isActive()
public Server getServer()
public boolean mayDefault()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |