|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.chat.AbstractChannel org.xnap.plugin.opennap.net.OpenNapAbstractChannel org.xnap.plugin.opennap.net.OpenNapChannel
public class OpenNapChannel
Represents a single channel on a server.
Field Summary |
---|
Fields inherited from class org.xnap.plugin.opennap.net.OpenNapAbstractChannel |
---|
server |
Fields inherited from class org.xnap.chat.AbstractChannel |
---|
cs |
Fields inherited from interface org.xnap.chat.Channel |
---|
AWAY_MESSAGE_INTERVAL |
Constructor Summary | |
---|---|
OpenNapChannel(OpenNapServer server,
java.lang.String name)
|
Method Summary | |
---|---|
void |
add(Peer peer)
|
void |
changeTopic(java.lang.String newValue)
|
void |
close()
Invoked by the ChatManager when the channel is removed. |
boolean |
equals(java.lang.Object o)
|
javax.swing.Action[] |
getActions()
Returns an array of actions that can be performed on the channel. |
Command[] |
getCommands()
Returns null. |
javax.swing.Icon |
getIcon()
Returns null. |
javax.swing.Action[] |
getPeerActions(Peer peer)
Returns an array of peer specific actions. |
int |
getPeerCount()
Returns the number of peers that have joined this channel. |
ChatProvider |
getProvider()
Returns a reference to the chat provider. |
boolean |
isJoined()
Returns true, if the channel is joined. |
void |
join()
|
void |
messageReceived(ServerMessage msg)
|
void |
sendMessage(java.lang.String message)
Sends a message to this channel. |
void |
setJoined(boolean joined,
java.lang.String reason)
|
void |
setUserCount(int userCount)
|
Methods inherited from class org.xnap.plugin.opennap.net.OpenNapAbstractChannel |
---|
exceptionThrown, getServer, isLocal, println |
Methods inherited from class org.xnap.chat.AbstractChannel |
---|
actionMessageReceived, addChannelListener, errorReceived, getName, getPeers, getPrefix, getTopic, infoReceived, joined, messageReceived, parted, peerChanged, remove, removeChannelListener, setTopic, topicChanged |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpenNapChannel(OpenNapServer server, java.lang.String name)
Method Detail |
---|
public void add(Peer peer)
add
in class AbstractChannel
public void changeTopic(java.lang.String newValue) throws java.io.IOException
java.io.IOException
public void close()
Channel
ChatManager
when the channel is removed.
close
in interface Channel
public javax.swing.Action[] getActions()
Channel
getActions
in interface Channel
public Command[] getCommands()
AbstractChannel
getCommands
in interface Channel
getCommands
in class AbstractChannel
public javax.swing.Icon getIcon()
AbstractChannel
getIcon
in interface Channel
getIcon
in class AbstractChannel
OpenNapPlugin.ICON_16.
public javax.swing.Action[] getPeerActions(Peer peer)
Channel
This can be used to implement channel operations like "op".
getPeerActions
in interface Channel
public int getPeerCount()
ChannelInfo
getPeerCount
in interface ChannelInfo
getPeerCount
in class AbstractChannel
public ChatProvider getProvider()
Channel
getProvider
in interface Channel
getProvider
in class OpenNapAbstractChannel
public boolean isJoined()
Channel
isJoined
in interface Channel
public void join()
public void messageReceived(ServerMessage msg)
messageReceived
in interface MessageListener
public void sendMessage(java.lang.String message)
Channel
sendMessage
in interface Channel
public void setJoined(boolean joined, java.lang.String reason)
public void setUserCount(int userCount)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |