applications.proxy.ui
Class AgentTextUI

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--applications.proxy.ui.AgentTextUI

public class AgentTextUI
extends JFrame
implements KeyListener

Description of the Class

Author:
nideffer
created November 29, 2001

Inner classes inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame

Inner classes inherited from class java.awt.Frame
Frame.AccessibleAWTFrame

Field Summary
 private static SimpleAttributeSetBOLD_BLACK
           
 final static StringBOLDSTYLE
           
 final static StringINPUT_AREA
           
 protected JTextFieldinputArea
           
 protected AgentinputHandler
           
 final static StringNO_INPUT_AREA
           
 final static StringNORMSTYLE
           
 protected DefaultStyledDocumentoutputDocument
           
 private JScrollPanescrollPane
           
 protected PhatJTextPanetextArea
           

Fields inherited from class javax.swing.JFrame
EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled, accessibleContext

Fields inherited from class java.awt.Frame
DEFAULT_CURSOR, CROSSHAIR_CURSOR, TEXT_CURSOR, WAIT_CURSOR, SW_RESIZE_CURSOR, SE_RESIZE_CURSOR, NW_RESIZE_CURSOR, NE_RESIZE_CURSOR, N_RESIZE_CURSOR, S_RESIZE_CURSOR, W_RESIZE_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, MOVE_CURSOR, NORMAL, ICONIFIED

Fields inherited from class java.awt.Component
TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT

Constructor Summary
AgentTextUI(String title, Agent handler, String input, int xsize, int ysize)
          Constructor for the AgentTextUI object

Method Summary
 voidClearText()
          Description of the Method
 voidInsertText(String newText, String type)
          Description of the Method
 voidInsertText(String newText)
          Description of the Method
 voidkeyPressed(KeyEvent keyEvent)
          Description of the Method
 voidkeyReleased(KeyEvent keyEvent)
          Description of the Method
 voidkeyTyped(KeyEvent keyEvent)
          Description of the Method

Methods inherited from class javax.swing.JFrame
frameInit, createRootPane, processKeyEvent, processWindowEvent, setDefaultCloseOperation, getDefaultCloseOperation, update, setJMenuBar, getJMenuBar, isRootPaneCheckingEnabled, setRootPaneCheckingEnabled, addImpl, remove, setLayout, getRootPane, setRootPane, getContentPane, setContentPane, getLayeredPane, setLayeredPane, getGlassPane, setGlassPane, paramString, getAccessibleContext

Methods inherited from class java.awt.Frame
finalize, addNotify, getTitle, setTitle, getIconImage, setIconImage, getMenuBar, setMenuBar, isResizable, setResizable, setState, getState, remove, removeNotify, setCursor, getCursorType, getFrames

Methods inherited from class java.awt.Window
pack, show, hide, dispose, toFront, toBack, getToolkit, getWarningString, getLocale, getInputContext, setCursor, getOwner, getOwnedWindows, addWindowListener, removeWindowListener, getListeners, processEvent, getFocusOwner, postEvent, isShowing, applyResourceBundle, applyResourceBundle, getGraphicsConfiguration

Methods inherited from class java.awt.Container
getComponentCount, countComponents, getComponent, getComponents, getInsets, insets, add, add, add, add, add, remove, removeAll, getLayout, doLayout, layout, invalidate, validate, validateTree, setFont, getPreferredSize, preferredSize, getMinimumSize, minimumSize, getMaximumSize, getAlignmentX, getAlignmentY, paint, print, paintComponents, printComponents, addContainerListener, removeContainerListener, processContainerEvent, deliverEvent, getComponentAt, locate, getComponentAt, findComponentAt, findComponentAt, isAncestorOf, list, list

Methods inherited from class java.awt.Component
getName, setName, getParent, getPeer, setDropTarget, getDropTarget, getTreeLock, isValid, isDisplayable, isVisible, isEnabled, setEnabled, enable, enable, disable, isDoubleBuffered, enableInputMethods, setVisible, show, getForeground, setForeground, getBackground, setBackground, getFont, setLocale, getColorModel, getLocation, getLocationOnScreen, location, setLocation, move, setLocation, getSize, size, setSize, resize, setSize, resize, getBounds, bounds, setBounds, reshape, setBounds, getX, getY, getWidth, getHeight, getBounds, getSize, getLocation, isOpaque, isLightweight, getGraphics, getFontMetrics, getCursor, paintAll, repaint, repaint, repaint, repaint, printAll, imageUpdate, createImage, createImage, prepareImage, prepareImage, checkImage, checkImage, contains, inside, contains, dispatchEvent, addComponentListener, removeComponentListener, addFocusListener, removeFocusListener, addHierarchyListener, removeHierarchyListener, addHierarchyBoundsListener, removeHierarchyBoundsListener, addKeyListener, removeKeyListener, addMouseListener, removeMouseListener, addMouseMotionListener, removeMouseMotionListener, addInputMethodListener, removeInputMethodListener, getInputMethodRequests, enableEvents, disableEvents, coalesceEvents, processComponentEvent, processFocusEvent, processMouseEvent, processMouseMotionEvent, processInputMethodEvent, processHierarchyEvent, processHierarchyBoundsEvent, handleEvent, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, action, gotFocus, lostFocus, isFocusTraversable, requestFocus, transferFocus, nextFocus, hasFocus, add, toString, list, list, list, addPropertyChangeListener, removePropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, firePropertyChange, setComponentOrientation, getComponentOrientation

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait

Field Detail

BOLD_BLACK

private static SimpleAttributeSet BOLD_BLACK

BOLDSTYLE

public final static String BOLDSTYLE

INPUT_AREA

public final static String INPUT_AREA

inputArea

protected JTextField inputArea

inputHandler

protected Agent inputHandler

NO_INPUT_AREA

public final static String NO_INPUT_AREA

NORMSTYLE

public final static String NORMSTYLE

outputDocument

protected DefaultStyledDocument outputDocument

scrollPane

private JScrollPane scrollPane

textArea

protected PhatJTextPane textArea
Constructor Detail

AgentTextUI

public AgentTextUI(String title, Agent handler, String input, int xsize, int ysize)
Constructor for the AgentTextUI object
Parameters:
title - Description of Parameter
handler - Description of Parameter
input - Description of Parameter
xsize - Description of Parameter
ysize - Description of Parameter
Since:
Method Detail

ClearText

public void ClearText()
Description of the Method
Since:

InsertText

public void InsertText(String newText, String type)
Description of the Method
Parameters:
newText - Description of Parameter
type - Description of Parameter
Since:

InsertText

public void InsertText(String newText)
Description of the Method
Parameters:
newText - Description of Parameter
Since:

keyPressed

public void keyPressed(KeyEvent keyEvent)
Description of the Method
Parameters:
keyEvent - Description of Parameter
Since:

keyReleased

public void keyReleased(KeyEvent keyEvent)
Description of the Method
Parameters:
keyEvent - Description of Parameter
Since:

keyTyped

public void keyTyped(KeyEvent keyEvent)
Description of the Method
Parameters:
keyEvent - Description of Parameter
Since: