cct.ssh
Class SSHPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by cct.ssh.SSHPanel
All Implemented Interfaces:
FileChooserInterface, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class SSHPanel
extends javax.swing.JPanel
implements FileChooserInterface

Title: Molecular Structure Viewer/Editor

Description: Computational Chemistry Toolkit

Copyright: Copyright (c) 2006

Company: ANU

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  javax.swing.JButton connectButton
           
(package private) static java.lang.String CUSTOM_PROPERTY_FILE
           
(package private) static java.lang.String DEFAULT_HOST
           
(package private) static java.lang.String DIVIDER
           
(package private)  FileChooserDialog fileChooserDialog
           
(package private) static java.lang.String HOST_EDITABLE
           
(package private)  javax.swing.JComboBox hostComboBox
           
(package private)  javax.swing.JLabel jLabel1
           
(package private)  javax.swing.JLabel jLabel2
           
(package private) static java.lang.String SSHHostKey
           
(package private) static java.lang.String SSHUserKey
           
(package private)  javax.swing.JComboBox userComboBox
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, 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
SSHPanel()
           
 
Method Summary
 void checkConnection()
           
 void connectButton_actionPerformed(java.awt.event.ActionEvent e)
           
 java.lang.String[] getDirectories()
           
 java.lang.String getDirectory()
           
 java.lang.String getFile()
           
 java.lang.String[] getFiles()
           
 java.lang.String getHost()
           
 int getPort()
           
 java.lang.Object getSSHProvider()
           
 java.lang.String getUserName()
           
 void hostComboBox_actionPerformed(java.awt.event.ActionEvent e)
           
static void main(java.lang.String[] args)
           
 java.lang.String pwd()
           
 void removeHostButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void removeUserButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void setFileChooserVisible(boolean enable)
           
 void userComboBox_actionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, 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, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, 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, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CUSTOM_PROPERTY_FILE

static final java.lang.String CUSTOM_PROPERTY_FILE
See Also:
Constant Field Values

DIVIDER

static final java.lang.String DIVIDER
See Also:
Constant Field Values

DEFAULT_HOST

static final java.lang.String DEFAULT_HOST
See Also:
Constant Field Values

HOST_EDITABLE

static final java.lang.String HOST_EDITABLE
See Also:
Constant Field Values

jLabel1

javax.swing.JLabel jLabel1

hostComboBox

javax.swing.JComboBox hostComboBox

jLabel2

javax.swing.JLabel jLabel2

userComboBox

javax.swing.JComboBox userComboBox

connectButton

javax.swing.JButton connectButton

fileChooserDialog

FileChooserDialog fileChooserDialog

SSHHostKey

static final java.lang.String SSHHostKey
See Also:
Constant Field Values

SSHUserKey

static final java.lang.String SSHUserKey
See Also:
Constant Field Values
Constructor Detail

SSHPanel

public SSHPanel()
Method Detail

getHost

public java.lang.String getHost()

getUserName

public java.lang.String getUserName()

getPort

public int getPort()
            throws java.lang.Exception
Throws:
java.lang.Exception

pwd

public java.lang.String pwd()
Specified by:
pwd in interface FileChooserInterface

setFileChooserVisible

public void setFileChooserVisible(boolean enable)
                           throws java.lang.Exception
Specified by:
setFileChooserVisible in interface FileChooserInterface
Throws:
java.lang.Exception

getDirectory

public java.lang.String getDirectory()
Specified by:
getDirectory in interface FileChooserInterface

getFile

public java.lang.String getFile()
Specified by:
getFile in interface FileChooserInterface

getFiles

public java.lang.String[] getFiles()
Specified by:
getFiles in interface FileChooserInterface

getDirectories

public java.lang.String[] getDirectories()
Specified by:
getDirectories in interface FileChooserInterface

checkConnection

public void checkConnection()
                     throws java.lang.Exception
Throws:
java.lang.Exception

getSSHProvider

public java.lang.Object getSSHProvider()

hostComboBox_actionPerformed

public void hostComboBox_actionPerformed(java.awt.event.ActionEvent e)

userComboBox_actionPerformed

public void userComboBox_actionPerformed(java.awt.event.ActionEvent e)

connectButton_actionPerformed

public void connectButton_actionPerformed(java.awt.event.ActionEvent e)

removeHostButton_actionPerformed

public void removeHostButton_actionPerformed(java.awt.event.ActionEvent e)

removeUserButton_actionPerformed

public void removeUserButton_actionPerformed(java.awt.event.ActionEvent e)

main

public static void main(java.lang.String[] args)