|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrero.gui.UICapabilities
Field Summary | |
protected IRCSession |
clientSession
|
protected WindowDataListener |
listeners
|
protected BuiltInLogger |
logger
|
Constructor Summary | |
UICapabilities(IRCSession _session)
|
Method Summary | |
void |
clearScreen(String window)
|
void |
closeWindow(String window)
|
String |
getQuery()
|
boolean |
isActive(String title)
|
boolean |
isWindow(String title)
|
void |
logMessage(String window,
String text)
|
void |
notifyActiveWindow()
|
void |
notifyWindow(String window)
|
void |
openChannelWindow(Channel channel)
|
void |
openDCCWindow()
|
void |
openListWindow()
|
void |
openQueryWindow(String nickname,
boolean selected)
|
void |
printActive(String text)
prints text to the active window, if no window is active text is printed to the status window |
void |
printAll(String text)
prints text to all open windows for the current server. |
void |
printChunk(String window,
String normal,
String[] chunks,
double percentage)
prints a chunk of text to the specified window, a special case used for /names formatting |
void |
printNormal(String window,
String text)
prints text to the specified window. |
void |
printRaw(String window,
String text)
|
void |
printStatus(String text)
prints text directly to the status window. |
void |
printToTargets(Set targets,
String text,
boolean alwaysStatus)
prints a message to the window for each target (if it exists), if there is no window for any of the targets output goes to the status window, if any of the targets are handled in the status window the text is echo'd at most once to the status window |
void |
renameWindow(String old,
String newtitle)
|
void |
setListener(WindowDataListener l)
|
void |
setQuery(String query)
|
protected boolean |
shouldContinue(String window,
String text)
checks the listeners to make sure text is approved by on window events, also makes sure text is not null |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IRCSession clientSession
protected WindowDataListener listeners
protected BuiltInLogger logger
Constructor Detail |
public UICapabilities(IRCSession _session)
Method Detail |
public void logMessage(String window, String text)
public void setQuery(String query)
public String getQuery()
public boolean isActive(String title)
public boolean isWindow(String title)
protected boolean shouldContinue(String window, String text)
public void printActive(String text)
public void printAll(String text)
public void printStatus(String text)
public void printNormal(String window, String text)
public void printToTargets(Set targets, String text, boolean alwaysStatus)
public void printChunk(String window, String normal, String[] chunks, double percentage)
public void printRaw(String window, String text)
public void clearScreen(String window)
public void openQueryWindow(String nickname, boolean selected)
public void closeWindow(String window)
public void openListWindow()
public void openDCCWindow()
public void openChannelWindow(Channel channel)
public void notifyActiveWindow()
public void notifyWindow(String window)
public void renameWindow(String old, String newtitle)
public void setListener(WindowDataListener l)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |