rero.gui

Class UICapabilities

public class UICapabilities extends Object

Field Summary
protected IRCSessionclientSession
protected WindowDataListenerlisteners
protected BuiltInLoggerlogger
Constructor Summary
UICapabilities(IRCSession _session)
Method Summary
voidclearScreen(String window)
voidcloseWindow(String window)
StringgetQuery()
booleanisActive(String title)
booleanisWindow(String title)
voidlogMessage(String window, String text)
voidnotifyActiveWindow()
voidnotifyWindow(String window)
voidopenChannelWindow(Channel channel)
voidopenDCCWindow()
voidopenListWindow()
voidopenQueryWindow(String nickname, boolean selected)
voidprintActive(String text)
prints text to the active window, if no window is active text is printed to the status window
voidprintAll(String text)
prints text to all open windows for the current server.
voidprintChunk(String window, String normal, String[] chunks, double percentage)
prints a chunk of text to the specified window, a special case used for /names formatting
voidprintNormal(String window, String text)
prints text to the specified window.
voidprintRaw(String window, String text)
voidprintStatus(String text)
prints text directly to the status window.
voidprintToTargets(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
voidrenameWindow(String old, String newtitle)
voidsetListener(WindowDataListener l)
voidsetQuery(String query)
protected booleanshouldContinue(String window, String text)
checks the listeners to make sure text is approved by on window events, also makes sure text is not null
voidshowSearchDialog(String window)

Field Detail

clientSession

protected IRCSession clientSession

listeners

protected WindowDataListener listeners

logger

protected BuiltInLogger logger

Constructor Detail

UICapabilities

public UICapabilities(IRCSession _session)

Method Detail

clearScreen

public void clearScreen(String window)

closeWindow

public void closeWindow(String window)

getQuery

public String getQuery()

isActive

public boolean isActive(String title)

isWindow

public boolean isWindow(String title)

logMessage

public void logMessage(String window, String text)

notifyActiveWindow

public void notifyActiveWindow()

notifyWindow

public void notifyWindow(String window)

openChannelWindow

public void openChannelWindow(Channel channel)

openDCCWindow

public void openDCCWindow()

openListWindow

public void openListWindow()

openQueryWindow

public void openQueryWindow(String nickname, boolean selected)

printActive

public void printActive(String text)
prints text to the active window, if no window is active text is printed to the status window

printAll

public void printAll(String text)
prints text to all open windows for the current server. By all I mean *all* open windows. Window buttons are not flagged.

printChunk

public 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

printNormal

public void printNormal(String window, String text)
prints text to the specified window. If the window doesn't exist the text goes to the status window, simple enough

printRaw

public void printRaw(String window, String text)

printStatus

public void printStatus(String text)
prints text directly to the status window.

printToTargets

public 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

renameWindow

public void renameWindow(String old, String newtitle)

setListener

public void setListener(WindowDataListener l)

setQuery

public void setQuery(String query)

shouldContinue

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

showSearchDialog

public void showSearchDialog(String window)