applications.proxy.ui
Class TestTemplate

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

public class TestTemplate
extends JFrame
implements ListSelectionListener

A standard testing UI Easily extesible for specific test programs


Inner Class Summary
 (package private) classTestTemplate.LogAction
           
 (package private) classTestTemplate.QuitAction
           
 (package private) classTestTemplate.StopLogAction
           

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

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

Field Summary
 protected DebugTextAream_debugTextArea
           
 protected JMenum_fileMenu
           
 protected JListm_list
          The standard components
 protected LoggableTextAream_logTextArea
           
 protected JPanelm_lowerLeft
           
 protected JMenuBarm_menuBar
           
 protected JPanelm_right
           
 protected JPanelm_upperLeft
          These variables reference the three main areas of the app.

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
TestTemplate(String appName)
           

Method Summary
 protected voidaddToList(Object newItem, JList list)
           
 protected voidappExit()
          Override this function to provide any special cleanup that needs to be done when exiting.
 protected voidbuildMenus()
          Will initialize the basic menu functions.
 protected voidguiBuild()
          Override if you want to put your own components in.
 private voidinitialGuiBuild()
           
 static voidmain(String[] args)
           
 voidvalueChanged(ListSelectionEvent selectionEvent)
          If you care to deal with the list, override this 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

m_debugTextArea

protected DebugTextArea m_debugTextArea

m_fileMenu

protected JMenu m_fileMenu

m_list

protected JList m_list
The standard components

m_logTextArea

protected LoggableTextArea m_logTextArea

m_lowerLeft

protected JPanel m_lowerLeft

m_menuBar

protected JMenuBar m_menuBar

m_right

protected JPanel m_right

m_upperLeft

protected JPanel m_upperLeft
These variables reference the three main areas of the app. Generally, you don't need to mess with them unless you're getting rid of the standard components that go there
Constructor Detail

TestTemplate

public TestTemplate(String appName)
Method Detail

addToList

protected void addToList(Object newItem, JList list)

appExit

protected void appExit()
Override this function to provide any special cleanup that needs to be done when exiting.

buildMenus

protected void buildMenus()
Will initialize the basic menu functions. If you overide, you probably want to call this one first.

guiBuild

protected void guiBuild()
Override if you want to put your own components in. At this point, m_upperLeft, m_lowerLeft, and m_right all exist and are ready to go

initialGuiBuild

private void initialGuiBuild()

main

public static void main(String[] args)

valueChanged

public void valueChanged(ListSelectionEvent selectionEvent)
If you care to deal with the list, override this method