com.sshtools.virtualsession
Interface VirtualSessionManager

All Known Subinterfaces:
Terminal
All Known Implementing Classes:
AWTTerminal, SwingTerminal

public interface VirtualSessionManager

Manages any number of VirtualSession's and governs how they are displayed. For example this interface could be implemented by a panel with an embedded tab component that displays each session in an individual tab or a panel containing left sided view of all the available sessions in a tree and a right handed view of the selected session.

Version:
$Revision: 1.1 $
Author:
Brett

Method Summary
 void addVirtualSession(VirtualSession vs)
          Add a new VirtualSession to this manager.
 void addVirtualSessionManagerListener(VirtualSessionManagerListener listener)
          Add a VirtualSessionManagerListener to the list that should receive events about changes in the state of the virtual sessions managed by this virtual session manager.
 VirtualSession getSelectedVirtualSession()
          Return the currently selected virtual session
 int getSelectedVirtualSessionIndex()
          Return the currently selected virtual index
 VirtualSession getVirtualSession(int i)
          Return the virtual session at the specified index
 int getVirtualSessionCount()
          Return the number of virtual sessions.
 void removeVirtualSession(VirtualSession vs)
          Remove a VirtualSession from this terminal
 void removeVirtualSessionManagerListener(VirtualSessionManagerListener listener)
          Removes a VirtualSessionManagerListener from the list that should receive events about changes in the state of the virtual sessions managed by this virtual session manager.
 void setSelectedVirtualSession(VirtualSession vs)
          Make the provided virtual session the selected one
 java.util.Enumeration virtualSessions()
          Return an enumeration of virtual sessions
 

Method Detail

addVirtualSession

public void addVirtualSession(VirtualSession vs)
Add a new VirtualSession to this manager.

Parameters:
vs - virtual session to add

removeVirtualSession

public void removeVirtualSession(VirtualSession vs)
Remove a VirtualSession from this terminal

Parameters:
vs - virtual session to remove

getVirtualSessionCount

public int getVirtualSessionCount()
Return the number of virtual sessions.

Returns:
virtual sessions

getSelectedVirtualSession

public VirtualSession getSelectedVirtualSession()
Return the currently selected virtual session

Returns:
selected session

getSelectedVirtualSessionIndex

public int getSelectedVirtualSessionIndex()
Return the currently selected virtual index

Returns:
selected terminal index

getVirtualSession

public VirtualSession getVirtualSession(int i)
Return the virtual session at the specified index

Parameters:
i - index
Returns:
virtual terminal

setSelectedVirtualSession

public void setSelectedVirtualSession(VirtualSession vs)
Make the provided virtual session the selected one

Parameters:
vs - virtual session to select

addVirtualSessionManagerListener

public void addVirtualSessionManagerListener(VirtualSessionManagerListener listener)
Add a VirtualSessionManagerListener to the list that should receive events about changes in the state of the virtual sessions managed by this virtual session manager.

Parameters:
listener - listener to add

removeVirtualSessionManagerListener

public void removeVirtualSessionManagerListener(VirtualSessionManagerListener listener)
Removes a VirtualSessionManagerListener from the list that should receive events about changes in the state of the virtual sessions managed by this virtual session manager.

Parameters:
listener - listener to remove

virtualSessions

public java.util.Enumeration virtualSessions()
Return an enumeration of virtual sessions

Returns:
enumeration of virtual session


Copyright © 2003-2004 3SP LTD. All Rights Reserved.