|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xnap.chat.AbstractChannel
org.xnap.plugin.pircbot.PircBotChannel
public class PircBotChannel
| Field Summary |
|---|
| Fields inherited from class org.xnap.chat.AbstractChannel |
|---|
cs |
| Fields inherited from interface org.xnap.chat.Channel |
|---|
AWAY_MESSAGE_INTERVAL |
| Constructor Summary | |
|---|---|
PircBotChannel(PircBotServer server,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
changeTopic(java.lang.String topic)
Invoked when the topic is requested to change. |
void |
close()
Invoked by the ChatManager when the channel is removed. |
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. |
java.lang.String |
getPrefix(Peer peer)
Returns the empty string. |
ChatProvider |
getProvider()
Returns a reference to the chat provider. |
PircBotServer |
getServer()
|
boolean |
isJoined()
Returns true, if the channel is joined. |
boolean |
isLocal(Peer peer)
Returns true, if peer is the local peer. |
void |
sendMessage(java.lang.String message)
Sends a message to this channel. |
void |
setJoined(boolean joined,
java.lang.String reason)
|
void |
setOp(Peer peer,
boolean isOperator)
|
void |
setVoice(Peer peer,
boolean hasVoice)
|
| Methods inherited from class org.xnap.chat.AbstractChannel |
|---|
actionMessageReceived, add, addChannelListener, errorReceived, getName, getPeerCount, getPeers, getTopic, infoReceived, joined, messageReceived, parted, peerChanged, remove, removeChannelListener, setTopic, topicChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PircBotChannel(PircBotServer server,
java.lang.String name)
| Method Detail |
|---|
public void close()
ChannelChatManager when the channel is removed.
close in interface Channelpublic void changeTopic(java.lang.String topic)
TopicChangable
changeTopic in interface TopicChangablepublic javax.swing.Icon getIcon()
AbstractChannel
getIcon in interface ChannelgetIcon in class AbstractChannelPircBotPlugin.ICON_16.public javax.swing.Action[] getActions()
Channel
getActions in interface Channelpublic Command[] getCommands()
AbstractChannel
getCommands in interface ChannelgetCommands in class AbstractChannelpublic javax.swing.Action[] getPeerActions(Peer peer)
ChannelThis can be used to implement channel operations like "op".
getPeerActions in interface Channelpublic java.lang.String getPrefix(Peer peer)
AbstractChannel
getPrefix in interface ChannelgetPrefix in class AbstractChannelpublic ChatProvider getProvider()
Channel
getProvider in interface Channelpublic PircBotServer getServer()
public boolean isJoined()
Channel
isJoined in interface Channelpublic boolean isLocal(Peer peer)
Channelpeer is the local peer. XNap does
not beep if messages are received from local peers.
- Specified by:
isLocal in interface Channel
public void sendMessage(java.lang.String message)
Channel
sendMessage in interface Channel
public void setJoined(boolean joined,
java.lang.String reason)
public void setOp(Peer peer,
boolean isOperator)
public void setVoice(Peer peer,
boolean hasVoice)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||