com.sshtools.terminal
Interface TerminalStatusBar

All Superinterfaces:
StatusBar, VirtualSessionComponent
All Known Implementing Classes:
AWTTerminalStatusBar, SwingTerminalStatusBar

public interface TerminalStatusBar
extends StatusBar, VirtualSessionComponent

Extended interface for a VirtualSessionComponent that is suitable for use with components that provide some kind off status bar made up of many different StatusElement implementations. For example, the Swing terminal toolkit provides a component that will show each element as a label that appears slighly indented.

Each element must provide a 'weight' that determines the proportion of the entire StatusBar it will take up. For ease of use, the weight value should follow the same rules as for the standard AWT java.awt.GridBagConstratins.weightx.

Author:
$Author: james $

Method Summary
 void addElement(StatusElement element)
          Add an element to the status bar.
 void removeAllElements()
          Remove all of the status elements from the status bar.
 
Methods inherited from interface com.sshtools.virtualsession.status.StatusBar
setSeparators
 
Methods inherited from interface com.sshtools.virtualsession.ui.VirtualSessionComponent
getComponent, getTerminalDisplay, init
 

Method Detail

addElement

void addElement(StatusElement element)
                throws java.lang.IllegalArgumentException
Add an element to the status bar. The status bar may impose restrictions on the type of this element, such as it being an instance of a java.awt.Component in the case of SwingStatusBar and AWTStatusBar.

Specified by:
addElement in interface StatusBar
Parameters:
element - element to add
Throws:
java.lang.IllegalArgumentException - if element is of wrong type

removeAllElements

void removeAllElements()
Remove all of the status elements from the status bar.

Specified by:
removeAllElements in interface StatusBar


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