|
||||||||||
| 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.joscar.JOscarChannel
public class JOscarChannel
| Field Summary |
|---|
| Fields inherited from class org.xnap.chat.AbstractChannel |
|---|
cs |
| Fields inherited from interface org.xnap.chat.Channel |
|---|
AWAY_MESSAGE_INTERVAL |
| Constructor Summary | |
|---|---|
JOscarChannel(JOscarPeer peer)
Constructs a joscar private channel. |
|
| Method Summary | |
|---|---|
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. |
JOscarPeer |
getJOscarPeer()
For now a channel is uniquely identified by the peer it's chatting to. |
javax.swing.Action[] |
getPeerActions(Peer peer)
Returns an array of peer specific actions. |
ChatProvider |
getProvider()
Returns a reference to the chat provider. |
boolean |
isJoined()
Returns true, if the channel is joined. |
boolean |
isLocal(Peer peer)
Returns true, if peer is the local peer. |
void |
onIncomingMessage(JOscarLib.Integration.Event.IncomingMessageEvent e)
Implements the OscarListener interface. |
void |
onIncomingUrl(JOscarLib.Integration.Event.IncomingUrlEvent e)
Implements the OscarListener interface. |
void |
onIncomingUser(JOscarLib.Integration.Event.IncomingUserEvent e)
Implements the OscarListener interface. |
void |
onOffgoingUser(JOscarLib.Integration.Event.OffgoingUserEvent e)
Implements the OscarListener interface. |
void |
onOfflineMessage(JOscarLib.Integration.Event.OfflineMessageEvent e)
Implements the OscarListener interface. |
void |
sendMessage(java.lang.String message)
Sends a message to this channel. |
| Methods inherited from class org.xnap.chat.AbstractChannel |
|---|
actionMessageReceived, add, addChannelListener, errorReceived, getCommands, getIcon, getName, getPeerCount, getPeers, getPrefix, 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 JOscarChannel(JOscarPeer peer)
peer - the peer the user can talk to| Method Detail |
|---|
public void close()
ChannelChatManager when the channel is removed.
close in interface Channelpublic JOscarPeer getJOscarPeer()
public javax.swing.Action[] getActions()
Channel
getActions in interface Channelpublic javax.swing.Action[] getPeerActions(Peer peer)
ChannelThis can be used to implement channel operations like "op".
getPeerActions in interface Channelpublic ChatProvider getProvider()
Channel
getProvider in interface Channelpublic 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 Channelpublic void onIncomingMessage(JOscarLib.Integration.Event.IncomingMessageEvent e)
OscarListener interface.
onIncomingMessage in interface JOscarLib.Integration.Event.MessagingListenerpublic void onIncomingUrl(JOscarLib.Integration.Event.IncomingUrlEvent e)
OscarListener interface.
onIncomingUrl in interface JOscarLib.Integration.Event.MessagingListenerpublic void onIncomingUser(JOscarLib.Integration.Event.IncomingUserEvent e)
OscarListener interface.
onIncomingUser in interface JOscarLib.Integration.Event.StatusListenerpublic void onOffgoingUser(JOscarLib.Integration.Event.OffgoingUserEvent e)
OscarListener interface.
onOffgoingUser in interface JOscarLib.Integration.Event.StatusListenerpublic void onOfflineMessage(JOscarLib.Integration.Event.OfflineMessageEvent e)
OscarListener interface.
onOfflineMessage in interface JOscarLib.Integration.Event.MessagingListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||