com.objexcel.objirc
Class AddInWin

java.lang.Object
  |
  +--com.objexcel.objirc.AddInWin

public final class AddInWin
extends java.lang.Object
implements IAddInWin

AddInWin wraps the different Objirc Chat windows: Room Chat/Query Status AddIn


Method Summary
 void addAction(java.lang.String actor, java.lang.String msg)
          action icon : quote actor msg
 void addAddInInputListener(IAddInInputListener l)
          add a addin input listener so you can get notified whenever the user enters anything in the addin window
 void addEmphasisMsg(java.lang.String msg, int icontype)
          icon : quote string
 void addMsg(java.lang.String msg, int icontype)
          icon : normal text
 void addMsgEx(java.lang.String actor, java.lang.String msg, int icon)
          icon : quote actor : msg
 void addNotice(java.lang.String actor, java.lang.String msg)
          computer icon : quote actor : msg
 void addPrivMsg(java.lang.String actor, java.lang.String msg)
          speech icon : quote actor : msg
 java.lang.String getLowerTarget()
          get the lowercase target for the room/query
 Sender getSender()
          get the sender for the room.
 java.lang.String getTarget()
          get the propercase target for the room
 boolean isAddInWindow()
           
 boolean isQueryWindow()
           
 boolean isRoomWindow()
           
 boolean isStatusWindow()
           
 void removeAddInInputListener(IAddInInputListener l)
           
 void sendCommand(java.lang.String command)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addMsgEx

public void addMsgEx(java.lang.String actor,
                     java.lang.String msg,
                     int icon)
icon : quote actor : msg
Specified by:
addMsgEx in interface IAddInWin

addPrivMsg

public void addPrivMsg(java.lang.String actor,
                       java.lang.String msg)
speech icon : quote actor : msg
Specified by:
addPrivMsg in interface IAddInWin

addAction

public void addAction(java.lang.String actor,
                      java.lang.String msg)
action icon : quote actor msg
Specified by:
addAction in interface IAddInWin

addNotice

public void addNotice(java.lang.String actor,
                      java.lang.String msg)
computer icon : quote actor : msg
Specified by:
addNotice in interface IAddInWin

addMsg

public void addMsg(java.lang.String msg,
                   int icontype)
icon : normal text
Specified by:
addMsg in interface IAddInWin

addEmphasisMsg

public void addEmphasisMsg(java.lang.String msg,
                           int icontype)
icon : quote string
Specified by:
addEmphasisMsg in interface IAddInWin

getLowerTarget

public java.lang.String getLowerTarget()
get the lowercase target for the room/query
Specified by:
getLowerTarget in interface IAddInWin
Returns:
null if this is the status window

getTarget

public java.lang.String getTarget()
get the propercase target for the room
Specified by:
getTarget in interface IAddInWin

getSender

public Sender getSender()
get the sender for the room. This usually has a connection with the server. For chat windows it may also have a direct connection with the other person.
Specified by:
getSender in interface IAddInWin
See Also:
Sender

isRoomWindow

public boolean isRoomWindow()
Specified by:
isRoomWindow in interface IAddInWin
Returns:
true if this window is a room window

isQueryWindow

public boolean isQueryWindow()
Specified by:
isQueryWindow in interface IAddInWin
Returns:
true if this window is a private chat window

isAddInWindow

public boolean isAddInWindow()
Specified by:
isAddInWindow in interface IAddInWin
Returns:
true if this window is a addin window

isStatusWindow

public boolean isStatusWindow()
Specified by:
isStatusWindow in interface IAddInWin
Returns:
true if this window is the status window

addAddInInputListener

public void addAddInInputListener(IAddInInputListener l)
add a addin input listener so you can get notified whenever the user enters anything in the addin window
Specified by:
addAddInInputListener in interface IAddInWin

removeAddInInputListener

public void removeAddInInputListener(IAddInInputListener l)
Specified by:
removeAddInInputListener in interface IAddInWin

sendCommand

public void sendCommand(java.lang.String command)
Specified by:
sendCommand in interface IAddInWin