org.relayirc.chatengine
Class ChatEngineEvent
java.lang.Object
|
+--java.util.EventObject
|
+--org.relayirc.chatengine.ChatEngineEvent
- public class ChatEngineEvent
- extends java.util.EventObject
Event fired by a ChatEngine. Has either a Channel object, a Server
object, a string status message or no value; other fields will be null.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Method Summary |
Channel |
getChannel()
Get associated Channel object, or null if not applicable. |
java.lang.String |
getMessage()
Get associated message, or null if not applicable. |
Server |
getServer()
Get associated Server object, or null if not applicable. |
Methods inherited from class java.util.EventObject |
getSource,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ChatEngineEvent
public ChatEngineEvent(ChatEngine src)
- Event with no associated value.
ChatEngineEvent
public ChatEngineEvent(ChatEngine src,
Channel channel)
- Event associated with a channel.
ChatEngineEvent
public ChatEngineEvent(ChatEngine src,
Server server)
- Event associated with server.
ChatEngineEvent
public ChatEngineEvent(ChatEngine src,
java.lang.String message)
- Event associated with status message. ChatEngine sends out
status messages as events.
getChannel
public Channel getChannel()
- Get associated Channel object, or null if not applicable.
getServer
public Server getServer()
- Get associated Server object, or null if not applicable.
getMessage
public java.lang.String getMessage()
- Get associated message, or null if not applicable.