|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Extended interface for a TerminalComponent 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.
| 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.terminal.TerminalComponent |
getComponent, getTerminalDisplay, init |
| Method Detail |
public void addElement(StatusElement element)
throws java.lang.IllegalArgumentException
java.awt.Component in the case of SwingStatusBar
and AWTStatusBar.
element - element to add
java.lang.IllegalArgumentException - if element is of wrong typepublic void removeAllElements()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||