com.leafdigital.irc.api
Interface MessageDisplay


public interface MessageDisplay

Interface implemented by things that can display error messages from commands. This is how commands show messages to the current window; command calls include a MessageDisplay reference.


Field Summary
static int TYPE_ACTION
          Text sent to server as /me
static int TYPE_MSG
          Text sent to server as PRIVMSG
static int TYPE_NOTICE
          Text sent to server as NOTICE
 
Method Summary
 void clear()
          Clears the window where the message was typed.
 void showError(java.lang.String message)
          Shows an error message.
 void showInfo(java.lang.String message)
          Shows some generic information.
 void showOwnText(int type, java.lang.String target, java.lang.String text)
          Shows text that has been sent to server (but will not be responded to).
 

Field Detail

TYPE_MSG

static final int TYPE_MSG
Text sent to server as PRIVMSG

See Also:
Constant Field Values

TYPE_NOTICE

static final int TYPE_NOTICE
Text sent to server as NOTICE

See Also:
Constant Field Values

TYPE_ACTION

static final int TYPE_ACTION
Text sent to server as /me

See Also:
Constant Field Values
Method Detail

showError

void showError(java.lang.String message)
Shows an error message.

Parameters:
message - Text of message

showInfo

void showInfo(java.lang.String message)
Shows some generic information.

Parameters:
message - Text of message

showOwnText

void showOwnText(int type,
                 java.lang.String target,
                 java.lang.String text)
Shows text that has been sent to server (but will not be responded to).

Parameters:
type - An OWNTEXT_xx constant
target - Target of message/notice/etc
text - Text of message/notice/etc

clear

void clear()
Clears the window where the message was typed.



Copyright © 2011 Samuel Marshall. All rights reserved.