|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.chat.AbstractChannel
public abstract class AbstractChannel
Field Summary | |
---|---|
protected ChannelSupport |
cs
|
Fields inherited from interface org.xnap.chat.Channel |
---|
AWAY_MESSAGE_INTERVAL |
Constructor Summary | |
---|---|
AbstractChannel(java.lang.String name)
|
Method Summary | |
---|---|
void |
actionMessageReceived(Peer sender,
java.lang.String message)
|
void |
add(Peer peer)
|
void |
addChannelListener(ChannelListener l)
Adds listener to the channel. |
void |
errorReceived(java.lang.String message)
|
Command[] |
getCommands()
Returns null. |
javax.swing.Icon |
getIcon()
Returns null. |
java.lang.String |
getName()
Returns the name of the channel. |
int |
getPeerCount()
Returns the number of peers that have joined this channel. |
Peer[] |
getPeers()
Returns an array of peers that have joined this channel. |
java.lang.String |
getPrefix(Peer peer)
Returns the empty string. |
java.lang.String |
getTopic()
Returns the topic of this channel. |
void |
infoReceived(java.lang.String message)
|
void |
joined()
|
void |
messageReceived(Peer sender,
java.lang.String message)
|
void |
parted(java.lang.String reason)
|
void |
peerChanged(Peer peer)
|
void |
remove(Peer peer)
|
void |
removeChannelListener(ChannelListener l)
Removes listener from the channel. |
void |
setTopic(java.lang.String newValue)
|
void |
topicChanged(java.lang.String newTopic)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xnap.chat.Channel |
---|
close, getActions, getPeerActions, getProvider, isJoined, isLocal, sendMessage |
Field Detail |
---|
protected ChannelSupport cs
Constructor Detail |
---|
public AbstractChannel(java.lang.String name)
Method Detail |
---|
public void actionMessageReceived(Peer sender, java.lang.String message)
public void add(Peer peer)
public Peer[] getPeers()
Channel
getPeers
in interface Channel
public void remove(Peer peer)
public void addChannelListener(ChannelListener l)
Channel
listener
to the channel.
addChannelListener
in interface Channel
public void removeChannelListener(ChannelListener l)
Channel
listener
from the channel.
removeChannelListener
in interface Channel
public Command[] getCommands()
getCommands
in interface Channel
public javax.swing.Icon getIcon()
getIcon
in interface Channel
public java.lang.String getName()
ChannelInfo
getName
in interface ChannelInfo
public int getPeerCount()
ChannelInfo
getPeerCount
in interface ChannelInfo
public java.lang.String getPrefix(Peer peer)
getPrefix
in interface Channel
public java.lang.String getTopic()
ChannelInfo
getTopic
in interface ChannelInfo
public void setTopic(java.lang.String newValue)
public void joined()
public void parted(java.lang.String reason)
public void errorReceived(java.lang.String message)
public void infoReceived(java.lang.String message)
public void messageReceived(Peer sender, java.lang.String message)
public void peerChanged(Peer peer)
public void topicChanged(java.lang.String newTopic)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |