rero.gui

Class SessionManager

public class SessionManager extends JTabbedPane implements ClientWindowListener, SocketStatusListener, ChangeListener, ClientStateListener

Nested Class Summary
protected classSessionManager.PopupManager
Field Summary
protected IRCSessionactive
protected MenuBridgebridge
protected JFrameframe
protected static GlobalCapabilitiesglobal
protected KeyBindingskeyb
protected JMenuBarmenu
protected SessionManager.PopupManagerpopups
protected HashMapsessions
protected HashMapswitchEventHashMap
Constructor Summary
SessionManager(JFrame _frame)
Method Summary
voidaddSession()
all calls to add session should be done on the java event thread... period!
IRCSessiongetActiveSession()
returns the currently active irc session
static GlobalCapabilitiesgetGlobalCapabilities()
intgetIndexFor(Object key)
IRCSessiongetSession(Object key)
IRCSessiongetSessionAt(Point location)
IRCSessiongetSpecificSession(int index)
returns the specified session
voidonActive(ClientWindowEvent ev)
voidonClose(ClientWindowEvent ev)
voidonInactive(ClientWindowEvent ev)
voidonMinimize(ClientWindowEvent ev)
voidonOpen(ClientWindowEvent ev)
voidpropertyChanged(String property, String parameter)
voidremoveSession(IRCSession session)
voidsetTabTitle(Object key, String text)
voidsocketStatusChanged(SocketEvent ev)
voidstateChanged(ChangeEvent ev)

Field Detail

active

protected IRCSession active

bridge

protected MenuBridge bridge

frame

protected JFrame frame

global

protected static GlobalCapabilities global

keyb

protected KeyBindings keyb

menu

protected JMenuBar menu

popups

protected SessionManager.PopupManager popups

sessions

protected HashMap sessions

switchEventHashMap

protected HashMap switchEventHashMap

Constructor Detail

SessionManager

public SessionManager(JFrame _frame)

Method Detail

addSession

public void addSession()
all calls to add session should be done on the java event thread... period! Or else bad things will happen.

getActiveSession

public IRCSession getActiveSession()
returns the currently active irc session

getGlobalCapabilities

public static GlobalCapabilities getGlobalCapabilities()

getIndexFor

public int getIndexFor(Object key)

getSession

public IRCSession getSession(Object key)

getSessionAt

public IRCSession getSessionAt(Point location)

getSpecificSession

public IRCSession getSpecificSession(int index)
returns the specified session

onActive

public void onActive(ClientWindowEvent ev)

onClose

public void onClose(ClientWindowEvent ev)

onInactive

public void onInactive(ClientWindowEvent ev)

onMinimize

public void onMinimize(ClientWindowEvent ev)

onOpen

public void onOpen(ClientWindowEvent ev)

propertyChanged

public void propertyChanged(String property, String parameter)

removeSession

public void removeSession(IRCSession session)

setTabTitle

public void setTabTitle(Object key, String text)

socketStatusChanged

public void socketStatusChanged(SocketEvent ev)

stateChanged

public void stateChanged(ChangeEvent ev)