|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
com.sshtools.terminal.awt.AWTTerminal
AWT implementation of a Terminal.
| Nested Class Summary |
| Nested classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
AWTTerminal()
Construct a new AWTTerminal |
|
| Method Summary | |
void |
addTerminalComponent(TerminalComponent component,
java.lang.String position,
int ring)
Add a component to this terminal. |
void |
addVirtualSession(VirtualSession vt)
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. |
int |
getRingCount()
This terminal implementation allows components to be added to one panel in a "ring" of nested panels each with a border layout and the child panel being in the center. |
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 vt)
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 vt)
Make the provided virtual session the selected one |
java.util.Enumeration |
virtualSessions()
Return an enumeration of virtual sessions |
| Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AWTTerminal()
| Method Detail |
public VirtualSession getVirtualSession(int i)
VirtualSessionManager
getVirtualSession in interface VirtualSessionManageri - index
public void setSelectedVirtualSession(VirtualSession vt)
VirtualSessionManager
setSelectedVirtualSession in interface VirtualSessionManagervt - virtual session to select
public void addTerminalComponent(TerminalComponent component,
java.lang.String position,
int ring)
TerminalAdd a component to this terminal. The position field should be one of
This terminal implementation should allow components to be added to one panel in a "ring" of nested panels each with a border layout and the child panel being in the center. The very innermost ring contains the actual terminal display.
The ring number should be the index of the ring from 0 up to
getRingCount()
The Terminal will also invoke TerminalComponent.init(Terminal) to initialise
the component (adding of listeners etc should be done here)
addTerminalComponent in interface Terminalcomponent - component to addposition - border positionring - ring numberpublic int getRingCount()
TerminalThis terminal implementation allows components to be added to one panel in a "ring" of nested panels each with a border layout and the child panel being in the center. The very innermost ring contains the actual terminal display.
This method returns the number of rings that are available for use
getRingCount in interface Terminalpublic VirtualSession getSelectedVirtualSession()
VirtualSessionManager
getSelectedVirtualSession in interface VirtualSessionManagerpublic void addVirtualSession(VirtualSession vt)
VirtualSessionManager
addVirtualSession in interface VirtualSessionManagervt - virtual session to addpublic void removeVirtualSession(VirtualSession vt)
VirtualSessionManager
removeVirtualSession in interface VirtualSessionManagervt - virtual session to removepublic int getSelectedVirtualSessionIndex()
VirtualSessionManager
getSelectedVirtualSessionIndex in interface VirtualSessionManagerpublic int getVirtualSessionCount()
VirtualSessionManager
getVirtualSessionCount in interface VirtualSessionManagerpublic java.util.Enumeration virtualSessions()
VirtualSessionManager
virtualSessions in interface VirtualSessionManagerpublic void addVirtualSessionManagerListener(VirtualSessionManagerListener listener)
VirtualSessionManagerVirtualSessionManagerListener to the list that should receive events
about changes in the state of the virtual sessions managed by this
virtual session manager.
addVirtualSessionManagerListener in interface VirtualSessionManagerlistener - listener to addpublic void removeVirtualSessionManagerListener(VirtualSessionManagerListener listener)
VirtualSessionManagerVirtualSessionManagerListener from the list that should
receive events about changes in the state of the virtual sessions managed by this
virtual session manager.
removeVirtualSessionManagerListener in interface VirtualSessionManagerlistener - listener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||