rero.gui
public class UICapabilities extends Object
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 |
void | showSearchDialog(String window) |