|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sshtools.terminal.awt.AWTComponentTerminalComponentAdapter
public class AWTComponentTerminalComponentAdapter
Implementation of a VirtualSessionComponent that wraps an AWT component
so it can be added to a VirtualSessionManagerUI.
This could be used for example to add a Label to a terminal
displaying some text
AWTComponentTerminalComponentAdapter adapter =
new AWTComponentTerminalComponentAdapter(
new Label("Your are currently connected to foo.3sp.com"));
terminal.addTerminalComponent(adapter, BorderLayout.NORTH, 0);
| Constructor Summary | |
|---|---|
AWTComponentTerminalComponentAdapter(java.awt.Component component)
Construct a new AWTComponentTerminalComponentAdapter given a Component to wrap |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AWTComponentTerminalComponentAdapter(java.awt.Component component)
component - | Method Detail |
|---|
public void init(VirtualSessionManagerUI display)
VirtualSessionComponent
init in interface VirtualSessionComponentdisplay - display implementationpublic VirtualSessionManagerUI getTerminalDisplay()
VirtualSessionComponentTerminalDisplay this componet has been added to.
Before init(TerminalDisplay) is called this method should
return null.
getTerminalDisplay in interface VirtualSessionComponentpublic java.awt.Component getComponent()
VirtualSessionComponentnull
getComponent in interface VirtualSessionComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||