com.mindbright.application
Class MindTermTelnet

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by java.applet.Applet
                  extended by com.mindbright.application.MindTerm
                      extended by com.mindbright.application.MindTermTelnet
All Implemented Interfaces:
SSHInteractor, TerminalMenuListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.lang.Runnable, java.util.EventListener, javax.accessibility.Accessible

public class MindTermTelnet
extends MindTerm
implements java.lang.Runnable, java.awt.event.WindowListener, TerminalMenuListener, SSHInteractor

Open a telnet window and connect with the telnet protocol. SSH is not involved at all.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Nested classes/interfaces inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
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
 
Fields inherited from class com.mindbright.application.MindTerm
javaVendor, javaVersion, osArch, osName, osVersion, weAreAnApplet
 
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
MindTermTelnet()
           
 
Method Summary
 void alert(java.lang.String msg)
           
 boolean askConfirmation(java.lang.String message, boolean defAnswer)
           
 void close(TerminalMenuHandler originMenu)
          Called when the user has selected close in the menu
 void connected(SSHClient client)
           
 void destroy()
           
 void disconnected(SSHClient client, boolean graceful)
           
 void getAppletParams()
           
 void init()
           
 void initGUI()
          Create the GUI
 boolean isVerbose()
           
 boolean licenseDialog(java.lang.String license)
           
static void main(java.lang.String[] argv)
           
 void open(SSHClient client)
           
 java.lang.String promptLine(java.lang.String prompt, java.lang.String defaultVal)
           
 java.lang.String promptPassword(java.lang.String prompt)
           
 void propsStateChanged(SSHPropertyHandler props)
           
 boolean quietPrompts()
           
 void report(java.lang.String msg)
           
 void run()
           
 void sessionStarted(SSHClient client)
           
 void startNewSession(SSHClient client)
           
 void telnetConnect()
          Create the terminal window and connect to the remote host.
 void update()
          Called when the menu is updated
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
          Handles window close events by closing the socket to the server (if any).
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class com.mindbright.application.MindTerm
cloneWindow, close, confirmClose, doExit, exit, getAppletContext, getApplicationParams, newWindow
 
Methods inherited from class java.applet.Applet
getAccessibleContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
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, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, 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, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, 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, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, 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, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, 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

MindTermTelnet

public MindTermTelnet()
Method Detail

telnetConnect

public void telnetConnect()
Create the terminal window and connect to the remote host.


initGUI

public void initGUI()
Create the GUI

Overrides:
initGUI in class MindTerm

getAppletParams

public void getAppletParams()
Overrides:
getAppletParams in class MindTerm

init

public void init()
Overrides:
init in class MindTerm

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class MindTerm

destroy

public void destroy()
Overrides:
destroy in class MindTerm

main

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

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Handles window close events by closing the socket to the server (if any).

Specified by:
windowClosing in interface java.awt.event.WindowListener
Overrides:
windowClosing in class MindTerm

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener
Overrides:
windowDeiconified in class MindTerm

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener
Overrides:
windowOpened in class MindTerm

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener
Overrides:
windowClosed in class MindTerm

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener
Overrides:
windowIconified in class MindTerm

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener
Overrides:
windowActivated in class MindTerm

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener
Overrides:
windowDeactivated in class MindTerm

close

public void close(TerminalMenuHandler originMenu)
Description copied from interface: TerminalMenuListener
Called when the user has selected close in the menu

Specified by:
close in interface TerminalMenuListener
Parameters:
originMenu - the menu where close was selected

update

public void update()
Description copied from interface: TerminalMenuListener
Called when the menu is updated

Specified by:
update in interface TerminalMenuListener

startNewSession

public void startNewSession(SSHClient client)
Specified by:
startNewSession in interface SSHInteractor

sessionStarted

public void sessionStarted(SSHClient client)
Specified by:
sessionStarted in interface SSHInteractor

connected

public void connected(SSHClient client)
Specified by:
connected in interface SSHInteractor

open

public void open(SSHClient client)
Specified by:
open in interface SSHInteractor

disconnected

public void disconnected(SSHClient client,
                         boolean graceful)
Specified by:
disconnected in interface SSHInteractor

report

public void report(java.lang.String msg)
Specified by:
report in interface SSHInteractor

alert

public void alert(java.lang.String msg)
Specified by:
alert in interface SSHInteractor

propsStateChanged

public void propsStateChanged(SSHPropertyHandler props)
Specified by:
propsStateChanged in interface SSHInteractor

askConfirmation

public boolean askConfirmation(java.lang.String message,
                               boolean defAnswer)
Specified by:
askConfirmation in interface SSHInteractor

licenseDialog

public boolean licenseDialog(java.lang.String license)
Specified by:
licenseDialog in interface SSHInteractor

quietPrompts

public boolean quietPrompts()
Specified by:
quietPrompts in interface SSHInteractor

promptLine

public java.lang.String promptLine(java.lang.String prompt,
                                   java.lang.String defaultVal)
                            throws java.io.IOException
Specified by:
promptLine in interface SSHInteractor
Throws:
java.io.IOException

promptPassword

public java.lang.String promptPassword(java.lang.String prompt)
                                throws java.io.IOException
Specified by:
promptPassword in interface SSHInteractor
Throws:
java.io.IOException

isVerbose

public boolean isVerbose()
Specified by:
isVerbose in interface SSHInteractor