|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.sshtools.terminal.swing.SwingTerminal
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| 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 | |
protected ClosableTabbedPane |
tabs
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| 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 | |
SwingTerminal()
|
|
| Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
Add a listener of ActionEvents fired when the use clicks on the close icon on the tab header. |
protected void |
addImpl(VirtualSession session)
|
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. |
protected void |
fireAdded(VirtualSession session)
|
protected void |
fireChanged(VirtualSession session)
|
protected void |
fireDeselected(VirtualSession session)
|
protected void |
fireRemoved(VirtualSession session)
|
protected void |
fireSelected(VirtualSession session)
|
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. |
boolean |
isHideSingleTabHeading()
Get whether a single virtual terminal tab header should be hidden until more virtual terminals are added. |
void |
removeActionListener(java.awt.event.ActionListener l)
Remove a listener of ActionEvents fired when the use clicks on the close icon on the tab header. |
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 |
setHideSingleTabHeading(boolean hideSingleTabHeading)
Set whether a single virtual terminal tab header should be hidden until more virtual terminals are added. |
void |
setSelectedVirtualSession(VirtualSession vt)
Make the provided virtual session the selected one |
protected void |
tabSelected(VirtualSession session)
|
java.util.Enumeration |
virtualSessions()
Return an enumeration of virtual sessions |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected ClosableTabbedPane tabs
| Constructor Detail |
public SwingTerminal()
| Method Detail |
public void setHideSingleTabHeading(boolean hideSingleTabHeading)
false
public boolean isHideSingleTabHeading()
false
public void addActionListener(java.awt.event.ActionListener l)
l - listener to addpublic void removeActionListener(java.awt.event.ActionListener l)
l - listener to addpublic void setSelectedVirtualSession(VirtualSession vt)
VirtualSessionManager
setSelectedVirtualSession in interface VirtualSessionManagervt - virtual session to selectpublic 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
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 addprotected void addImpl(VirtualSession session)
public 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 VirtualSession getVirtualSession(int i)
VirtualSessionManager
getVirtualSession in interface VirtualSessionManageri - index
protected void tabSelected(VirtualSession session)
protected void fireSelected(VirtualSession session)
protected void fireDeselected(VirtualSession session)
protected void fireAdded(VirtualSession session)
protected void fireRemoved(VirtualSession session)
protected void fireChanged(VirtualSession session)
public java.util.Enumeration virtualSessions()
VirtualSessionManager
virtualSessions in interface VirtualSessionManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||