experimental
Class DialogueBoxTester

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by experimental.DialogueBoxTester
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class DialogueBoxTester
extends javax.swing.JFrame

This class lets you test dialogue boxes without running the whole game.

Author:
lindsal8
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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
private  javax.swing.Action closeCurrentDialogue
           
private  DialogueBoxController dialogueBoxController
           
(package private)  javax.swing.JLabel jLabel1
           
(package private)  javax.swing.JMenuBar jMenuBar1
           
private  ModelRootImpl modelRoot
           
(package private)  javax.swing.JMenuItem selectEngine
           
(package private)  javax.swing.JMenuItem selectTrainOrders
           
(package private)  javax.swing.JMenuItem selectWagons
           
private static long serialVersionUID
           
(package private)  javax.swing.JMenu show
           
(package private)  javax.swing.JMenuItem showBrokerScreen
           
(package private)  javax.swing.JMenuItem showCargoWaitingAndDemand
           
(package private)  javax.swing.JMenuItem showControls
           
(package private)  javax.swing.JMenuItem showJavaSystemProperties
           
(package private)  javax.swing.JMenuItem showNetworthGraph
           
(package private)  javax.swing.JMenuItem showReportBug
           
(package private)  javax.swing.JMenuItem showStationInfo
           
(package private)  javax.swing.JMenuItem showTerrainInfo
           
(package private)  javax.swing.JMenuItem showTrainList
           
private static Player TEST_PLAYER
           
private static FreerailsPrincipal TEST_PRINCIPAL
           
(package private)  javax.swing.JMenuItem throwException
           
private  TrainDialogueJPanel trainDialogueJPanel
           
private  RenderersRoot vl
           
private  World w
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
private DialogueBoxTester()
          Creates new form TestGlassPanelMethod.
 
Method Summary
private  void exitForm(java.awt.event.WindowEvent evt)
          Exit the Application.
private  void formKeyPressed(java.awt.event.KeyEvent evt)
           
private  void initComponents()
          This method is called from within the constructor to initialize the form.
static void main(java.lang.String[] args)
           
private  void newspaperActionPerformed(java.awt.event.ActionEvent evt)
           
private  void selectEngineActionPerformed(java.awt.event.ActionEvent evt)
           
private  void selectTrainOrdersActionPerformed(java.awt.event.ActionEvent evt)
           
private  void selectWagonsActionPerformed(java.awt.event.ActionEvent evt)
           
private  void showCargoWaitingAndDemandActionPerformed(java.awt.event.ActionEvent evt)
           
private  void showControlsActionPerformed(java.awt.event.ActionEvent evt)
           
private  void showJavaSystemPropertiesActionPerformed(java.awt.event.ActionEvent evt)
           
private  void showNetworthGraphActionPerformed(java.awt.event.ActionEvent evt)
           
private  void showStationInfoActionPerformed(java.awt.event.ActionEvent evt)
           
private  void showTerrainInfoActionPerformed(java.awt.event.ActionEvent evt)
           
private  void showTrainListActionPerformed(java.awt.event.ActionEvent evt)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, 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, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

TEST_PLAYER

private static final Player TEST_PLAYER

TEST_PRINCIPAL

private static final FreerailsPrincipal TEST_PRINCIPAL

dialogueBoxController

private final DialogueBoxController dialogueBoxController

w

private World w

vl

private RenderersRoot vl

modelRoot

private ModelRootImpl modelRoot

closeCurrentDialogue

private javax.swing.Action closeCurrentDialogue

trainDialogueJPanel

private TrainDialogueJPanel trainDialogueJPanel

jLabel1

javax.swing.JLabel jLabel1

jMenuBar1

javax.swing.JMenuBar jMenuBar1

showBrokerScreen

javax.swing.JMenuItem showBrokerScreen

selectEngine

javax.swing.JMenuItem selectEngine

selectTrainOrders

javax.swing.JMenuItem selectTrainOrders

selectWagons

javax.swing.JMenuItem selectWagons

show

javax.swing.JMenu show

showCargoWaitingAndDemand

javax.swing.JMenuItem showCargoWaitingAndDemand

showControls

javax.swing.JMenuItem showControls

showJavaSystemProperties

javax.swing.JMenuItem showJavaSystemProperties

showNetworthGraph

javax.swing.JMenuItem showNetworthGraph

showStationInfo

javax.swing.JMenuItem showStationInfo

showTerrainInfo

javax.swing.JMenuItem showTerrainInfo

showTrainList

javax.swing.JMenuItem showTrainList

showReportBug

javax.swing.JMenuItem showReportBug

throwException

javax.swing.JMenuItem throwException
Constructor Detail

DialogueBoxTester

private DialogueBoxTester()
Creates new form TestGlassPanelMethod.

Method Detail

initComponents

private void initComponents()
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the FormEditor.


showNetworthGraphActionPerformed

private void showNetworthGraphActionPerformed(java.awt.event.ActionEvent evt)

showJavaSystemPropertiesActionPerformed

private void showJavaSystemPropertiesActionPerformed(java.awt.event.ActionEvent evt)

formKeyPressed

private void formKeyPressed(java.awt.event.KeyEvent evt)

showCargoWaitingAndDemandActionPerformed

private void showCargoWaitingAndDemandActionPerformed(java.awt.event.ActionEvent evt)

showTrainListActionPerformed

private void showTrainListActionPerformed(java.awt.event.ActionEvent evt)

showStationInfoActionPerformed

private void showStationInfoActionPerformed(java.awt.event.ActionEvent evt)

showTerrainInfoActionPerformed

private void showTerrainInfoActionPerformed(java.awt.event.ActionEvent evt)

showControlsActionPerformed

private void showControlsActionPerformed(java.awt.event.ActionEvent evt)

selectTrainOrdersActionPerformed

private void selectTrainOrdersActionPerformed(java.awt.event.ActionEvent evt)

selectWagonsActionPerformed

private void selectWagonsActionPerformed(java.awt.event.ActionEvent evt)

selectEngineActionPerformed

private void selectEngineActionPerformed(java.awt.event.ActionEvent evt)

newspaperActionPerformed

private void newspaperActionPerformed(java.awt.event.ActionEvent evt)

exitForm

private void exitForm(java.awt.event.WindowEvent evt)
Exit the Application.


main

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