java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.sshtools.apps.SshToolsApplicationPanel
com.sshtools.sshterm.SshTerminalPanel
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.event.ActionListener, java.awt.datatransfer.ClipboardOwner, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.event.MouseMotionListener, java.io.Serializable, com.sshtools.sshterm.emulation.TerminalListener
- public class SshTerminalPanel
- extends com.sshtools.apps.SshToolsApplicationPanel
- implements java.awt.event.ActionListener, java.awt.datatransfer.ClipboardOwner, com.sshtools.sshterm.emulation.TerminalListener, java.awt.event.MouseMotionListener
| Nested classes inherited from class com.sshtools.apps.SshToolsApplicationPanel |
com.sshtools.apps.SshToolsApplicationPanel.ActionMenu |
| 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 |
| Fields inherited from class java.awt.Container |
|
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, 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, 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, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, 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, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, 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, getPropertyChangeListeners, getPropertyChangeListeners, 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, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle |
PREF_SHIFT_GEOMETRY
public static final java.lang.String PREF_SHIFT_GEOMETRY
- See Also:
- Constant Field Values
PREF_PORT_FORWARDING_GEOMETRY
public static final java.lang.String PREF_PORT_FORWARDING_GEOMETRY
- See Also:
- Constant Field Values
PREF_PORT_FORWARDING_DIVIDER_LOCATION
public static final java.lang.String PREF_PORT_FORWARDING_DIVIDER_LOCATION
- See Also:
- Constant Field Values
PREF_PORT_FORWARDING_FORWARDS_TABLE_METRICS
public static final java.lang.String PREF_PORT_FORWARDING_FORWARDS_TABLE_METRICS
- See Also:
- Constant Field Values
PREF_PORT_FORWARDING_ACTIVE_TABLE_METRICS
public static final java.lang.String PREF_PORT_FORWARDING_ACTIVE_TABLE_METRICS
- See Also:
- Constant Field Values
PREF_PAGE_FORMAT_IMAGEABLE_X
public static final java.lang.String PREF_PAGE_FORMAT_IMAGEABLE_X
- See Also:
- Constant Field Values
PREF_PAGE_FORMAT_IMAGEABLE_Y
public static final java.lang.String PREF_PAGE_FORMAT_IMAGEABLE_Y
- See Also:
- Constant Field Values
PREF_PAGE_FORMAT_IMAGEABLE_W
public static final java.lang.String PREF_PAGE_FORMAT_IMAGEABLE_W
- See Also:
- Constant Field Values
PREF_PAGE_FORMAT_IMAGEABLE_H
public static final java.lang.String PREF_PAGE_FORMAT_IMAGEABLE_H
- See Also:
- Constant Field Values
PREF_PAGE_FORMAT_SIZE_W
public static final java.lang.String PREF_PAGE_FORMAT_SIZE_W
- See Also:
- Constant Field Values
PREF_PAGE_FORMAT_SIZE_H
public static final java.lang.String PREF_PAGE_FORMAT_SIZE_H
- See Also:
- Constant Field Values
PREF_PAGE_FORMAT_ORIENTATION
public static final java.lang.String PREF_PAGE_FORMAT_ORIENTATION
- See Also:
- Constant Field Values
PROFILE_PROPERTY_TERMINAL
public static final java.lang.String PROFILE_PROPERTY_TERMINAL
- See Also:
- Constant Field Values
PROFILE_PROPERTY_EOL
public static final java.lang.String PROFILE_PROPERTY_EOL
- See Also:
- Constant Field Values
PROFILE_PROPERTY_RESIZE_STRATEGY
public static final java.lang.String PROFILE_PROPERTY_RESIZE_STRATEGY
- See Also:
- Constant Field Values
PROFILE_PROPERTY_ANTIALIAS
public static final java.lang.String PROFILE_PROPERTY_ANTIALIAS
- See Also:
- Constant Field Values
PROFILE_PROPERTY_FONT_SIZE
public static final java.lang.String PROFILE_PROPERTY_FONT_SIZE
- See Also:
- Constant Field Values
PROFILE_PROPERTY_BACKGROUND_COLOR
public static final java.lang.String PROFILE_PROPERTY_BACKGROUND_COLOR
- See Also:
- Constant Field Values
PROFILE_PROPERTY_FOREGROUND_COLOR
public static final java.lang.String PROFILE_PROPERTY_FOREGROUND_COLOR
- See Also:
- Constant Field Values
PROFILE_PROPERTY_COLOR_PRINTING
public static final java.lang.String PROFILE_PROPERTY_COLOR_PRINTING
- See Also:
- Constant Field Values
VDU_EVENTS
private static final long VDU_EVENTS
- See Also:
- Constant Field Values
ABOUT_ICON
static final java.lang.String ABOUT_ICON
- See Also:
- Constant Field Values
log
protected static org.apache.log4j.Logger log
scrollBar
private javax.swing.JScrollBar scrollBar
ssh
private com.sshtools.j2ssh.SshClient ssh
session
private com.sshtools.j2ssh.session.SessionChannelClient session
eol
private int eol
terminal
private com.sshtools.sshterm.emulation.TerminalPanel terminal
hostKeyVerification
private com.sshtools.j2ssh.transport.HostKeyVerification hostKeyVerification
keygenFrame
private com.sshtools.j2ssh.keygen.Main keygenFrame
portForwardingPane
private com.sshtools.sshterm.forward.PortForwardingPane portForwardingPane
actionMenus
private java.util.Vector actionMenus
portForwardingDialog
private javax.swing.JDialog portForwardingDialog
browserDialog
private javax.swing.JDialog browserDialog
connected
private boolean connected
emulation
protected com.sshtools.sshterm.emulation.TerminalEmulation emulation
newAction
private NewAction newAction
openAction
private OpenAction openAction
saveAction
private SaveAction saveAction
printPreviewAction
private PrintPreviewAction printPreviewAction
terminalPropertiesAction
private TerminalPropertiesAction terminalPropertiesAction
printAction
private PrintAction printAction
closeAction
private CloseAction closeAction
copyAction
private CopyAction copyAction
pasteAction
private PasteAction pasteAction
keygenAction
private KeygenAction keygenAction
clearAction
private ClearAction clearAction
refreshAction
private RefreshAction refreshAction
playAction
private PlayAction playAction
stopAction
private StopAction stopAction
recordAction
private RecordAction recordAction
shiftAction
private com.sshtools.apps.StandardAction shiftAction
portForwardingAction
private com.sshtools.sshterm.forward.PortForwardingAction portForwardingAction
actions
private java.util.Vector actions
pageFormat
private java.awt.print.PageFormat pageFormat
profile
private SshToolsConnectionProfile profile
toolSeparator
private javax.swing.JSeparator toolSeparator
contentPane
javax.swing.JPanel contentPane
recordingOutputStream
private java.io.OutputStream recordingOutputStream
recordingFile
private java.io.File recordingFile
statusBar
StatusBar statusBar
titledBorder1
javax.swing.border.TitledBorder titledBorder1
borderLayout1
java.awt.BorderLayout borderLayout1
anyHost
boolean anyHost
anyUser
boolean anyUser
anyPort
boolean anyPort
toolsVisible
boolean toolsVisible
autoHideTools
boolean autoHideTools
dialogActionsEnabled
boolean dialogActionsEnabled
fullScreenMode
boolean fullScreenMode
SshTerminalPanel
public SshTerminalPanel()
init
public void init(com.sshtools.apps.SshToolsApplication application)
throws com.sshtools.apps.SshToolsApplicationException
- Description copied from class:
com.sshtools.apps.SshToolsApplicationPanel
- Invoked by the application framework when the frame is created
setFullScreenMode
public void setFullScreenMode(boolean full)
isFullScreenMode
public boolean isFullScreenMode()
requestFocus
public void requestFocus()
- Description copied from class:
javax.swing.JComponent
- Requests that this component gets the input focus if the
requestFocusEnabled property is set to
true.
This also means that this component's top-level window becomes
the focused window, if that is not already the case.
The preconditions that have to be met to become a focus owner is that
the component must be displayable, visible and focusable.
Note that this signals only a request for becoming focused. There are
situations in which it is not possible to get the focus. So developers
should not assume that the component has the focus until it receives
a java.awt.event.FocusEvent with a value of
FocusEvent.FOCUS_GAINED>FocusEvent.FOCUS_GAINED 55 .
setMenuBarVisible
public void setMenuBarVisible(boolean visible)
setToolBarVisible
public void setToolBarVisible(boolean visible)
isAutoHideTools
public boolean isAutoHideTools()
setAutoHideTools
public void setAutoHideTools(boolean autoHideTools)
setStatusBarVisible
public void setStatusBarVisible(boolean visible)
setScrollBarVisible
public void setScrollBarVisible(boolean visible)
isToolsVisible
public boolean isToolsVisible()
setToolsVisible
public void setToolsVisible(boolean visible)
registerAction
public void registerAction(com.sshtools.apps.StandardAction action)
- Description copied from class:
com.sshtools.apps.SshToolsApplicationPanel
- Register an action.
lostOwnership
public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable contents)
- Description copied from interface:
java.awt.datatransfer.ClipboardOwner
- This method is called to notify this object that it no longer
has ownership of the specified
Clipboard.
- Specified by:
lostOwnership in interface java.awt.datatransfer.ClipboardOwner
setAnyHost
public void setAnyHost(boolean anyHost)
setAnyUser
public void setAnyUser(boolean anyUser)
setAnyPort
public void setAnyPort(boolean anyPort)
screenResized
public void screenResized(int w,
int h)
- Specified by:
screenResized in interface com.sshtools.sshterm.emulation.TerminalListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseMotionListener
- This method is called when the mouse is moved over a component
while a button has been pressed.
- Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseMotionListener
- This method is called when the mouse is moved over a component
while no button is pressed.
- Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Description copied from interface:
java.awt.event.ActionListener
- This method is invoked when an action occurs.
- Specified by:
actionPerformed in interface java.awt.event.ActionListener
stopRecording
public void stopRecording()
isConnected
public boolean isConnected()
closeConnection
public void closeConnection(boolean doDisconnect)
canClose
public boolean canClose()
- Description copied from class:
com.sshtools.apps.SshToolsApplicationPanel
- Check if the application can close
setConnectionProfile
public void setConnectionProfile(SshToolsConnectionProfile profile)
getConnectionProfile
public SshToolsConnectionProfile getConnectionProfile()
printScreen
public void printScreen()
connect
public void connect()
throws com.sshtools.j2ssh.SshException
connect
private void connect(SshToolsConnectionProfile profile)
throws com.sshtools.j2ssh.SshException
setTerminalProperties
private void setTerminalProperties(SshToolsConnectionProfile profile)
initActions
private void initActions()
setDialogActionsEnabled
public void setDialogActionsEnabled(boolean enable)
setAvailableActions
private void setAvailableActions()
createEmulation
private com.sshtools.sshterm.emulation.TerminalEmulation createEmulation()
throws java.io.IOException
showExceptionMessage
protected void showExceptionMessage(java.lang.String title,
java.lang.String message)
close
public void close()
- Description copied from class:
com.sshtools.apps.SshToolsApplicationPanel
- Close the application panel (clean up should be done here)
authenticateUser
protected boolean authenticateUser()
throws java.io.IOException