com.sshtools.virtualsession.ui
Interface VirtualSessionComponent

All Known Subinterfaces:
StatusBar, TerminalStatusBar
All Known Implementing Classes:
AWTComponentTerminalComponentAdapter, AWTStatusBar, AWTTerminalStatusBar, SwingComponentTerminalComponentAdapter, SwingStatusBar, SwingTerminalStatusBar, SwingToolBar

public interface VirtualSessionComponent

All components that are to be added to the TerminalDisplay implementation must implement this interface.

A terminal component need not actually be visual, i.e. provide an AWT or Swing component for display, but if it is it must return a Component from the getComponent() method.

Each component can be added to any position (north, south, east or west) in any ring.

Author:
$Author: james $

Method Summary
 java.awt.Component getComponent()
          Return the AWT / Swing component this terminal component provides.
 VirtualSessionManagerUI getTerminalDisplay()
          Return the TerminalDisplay this componet has been added to.
 void init(VirtualSessionManagerUI display)
          Invoked when the terminal adds the component to its UI.
 

Method Detail

init

void init(VirtualSessionManagerUI display)
Invoked when the terminal adds the component to its UI.

Parameters:
display - display implementation

getTerminalDisplay

VirtualSessionManagerUI getTerminalDisplay()
Return the TerminalDisplay this componet has been added to. Before init(TerminalDisplay) is called this method should return null.

Returns:
terminal display

getComponent

java.awt.Component getComponent()
Return the AWT / Swing component this terminal component provides. If the terminal component is not visual it will just return null

Returns:
component


Copyright © 2003-2009 SSHTOOLS LTD. All Rights Reserved.