Class ConditionalEditFrame

  • All Implemented Interfaces:
    java.awt.event.ComponentListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, BeanInterface, ModifiedFlag, WindowInterface

    public class ConditionalEditFrame
    extends ConditionalFrame
    Extracted from ConditionalEditList. Allows ConditionalEditList to open alternate frame for copying Conditionals.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  ConditionalEditFrame.ActionTableModel
      Table model for Actions in Edit Conditional pane.
      (package private) class  ConditionalEditFrame.ActionTypeListener
      Listener for _actionTypeBox.
      class  ConditionalEditFrame.VariableTableModel
      Table model for State Variables in Edit Conditional pane.
      • 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, java.awt.Window.Type
      • 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.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void actionItemChanged​(Conditional.ItemType type)
      Respond to a change in an Action Type comboBox on the Edit Conditional Action pane.
      (package private) void addActionPressed​(java.awt.event.ActionEvent e)
      Respond to Add action button in the EditConditional window.
      (package private) void addVariablePressed​(java.awt.event.ActionEvent e)
      Respond to the Add State Variable Button in the Edit Conditional window.
      (package private) boolean alreadyEditingActionOrVariable()
      Check if an editing session is going on.
      (package private) void appendToAntecedent()
      Add a R# to the antecedent statement.
      (package private) void cancelConditionalPressed()
      Respond to the Cancel button in the Edit Conditional frame.
      (package private) void cancelEditActionPressed()
      Respond to Cancel action button and window closer of the Edit Action window.
      (package private) void cancelEditVariablePressed()
      Respond to Cancel action button and window closer of the Edit Variable pane.
      (package private) void checkVariablePressed​(java.awt.event.ActionEvent e)
      Respond to the Check State Variable Button in the Edit Conditional window.
      (package private) void cleanUpAction()
      Clean up Update and Delete Action buttons.
      (package private) void cleanUpVariable()
      Clean up Update and Delete Variable buttons.
      (package private) void deleteActionPressed()
      Respond to Delete action button in the Edit Action window.
      (package private) void deleteActionPressed​(int row)
      Respond to Delete action button in an action row of the Edit Conditional pane.
      (package private) void deleteVariablePressed()
      Respond to Delete action button in the Edit Variable window.
      (package private) void deleteVariablePressed​(int row)
      Respond to the Delete Button in the State Variable Table of the Edit Conditional window.
      (package private) void helpPressed​(java.awt.event.ActionEvent e)
      Respond to Help button press in the Edit Conditional pane.
      (package private) void initializeActionVariables()
      Set display to show current action (curAction) parameters.
      (package private) void initializeStateVariables()
      Set display to show current state variable (_curVariable) parameters.
      (package private) void loadJComboBoxWithHeadAppearances​(javax.swing.JComboBox<java.lang.String> box, java.lang.String signalHeadName)
      Fetch valid localized appearances for a given Signal Head.
      (package private) void loadJComboBoxWithMastAspects​(javax.swing.JComboBox<java.lang.String> box, java.lang.String mastName)
      Fetch valid aspects for a given Signal Mast.
      (package private) void loadSelectConditionalBox​(java.lang.String logixName, ConditionalVariable curVariable)
      Load the Conditional selection box.
      (package private) void loadSelectLogixBox​(ConditionalVariable curVariable)
      Load the Logix selection box.
      (package private) boolean logicTypeChanged​(java.awt.event.ActionEvent e)
      Respond to a change of Conditional Type in the Edit Conditional pane by showing/hiding the _antecedentPanel when Mixed is selected.
      (package private) void makeAntecedent()
      Build the antecedent statement.
      (package private) javax.swing.JPanel makeButtonPanel​(java.awt.event.ActionListener updateListener, java.awt.event.ActionListener cancelListener, java.awt.event.ActionListener deleteListener)
      Create Variable and Action editing pane bottom part.
      (package private) void makeConditionalFrame​(Conditional conditional)  
      (package private) void makeEditActionWindow​(int row)
      Create and/or initialize the Edit Action window.
      (package private) void makeEditVariableWindow​(int row)
      Create and/or initialize the Edit a Variable pane.
      (package private) javax.swing.JPanel makeTopPanel​(javax.swing.JFrame frame, java.lang.String title, int width, int height)
      Create Variable and Action editing pane top part.
      (package private) void reorderActionPressed​(java.awt.event.ActionEvent e)
      Respond to the Reorder Action Button in the Edit Conditional window.
      (package private) void reorderVariablePressed​(java.awt.event.ActionEvent e)
      Respond to the Reorder Variable Button in the Edit Conditional window.
      (package private) void setActionNameBox​(Conditional.ItemType itemType)
      Update the name combo box selection based on the current contents of the name field.
      (package private) void setFileLocation​(java.awt.event.ActionEvent e)
      Respond to the [...] button in the Edit Action window action section.
      (package private) void setVariableNameBox​(Conditional.ItemType itemType)
      Update the name combo box selection based on the current contents of the name field.
      (package private) void swapActions​(int row)
      Respond to the First/Next (Delete) Button in the Edit Conditional window.
      (package private) void swapVariables​(int row)
      Respond to the First/Next (Delete) Button in the Edit Conditional window.
      (package private) void updateActionPressed()
      Respond to Update Action button in the Edit Action pane.
      (package private) boolean updateConditionalPressed​(java.awt.event.ActionEvent e)
      Respond to the Update Conditional Button in the Edit Conditional window.
      (package private) void updateVariablePressed()
      Respond to Update Variable button in the Edit Action pane.
      (package private) boolean validateAction()
      Validate Action data from Edit Action Window, and transfer it to current action object as appropriate.
      (package private) boolean validateAntecedent()
      Check the antecedent and logic type.
      (package private) boolean validateVariable()
      Validate Variable data from Edit Variable Window, and transfer it to current action object as appropriate.
      (package private) void variableNegationChanged​(int row, java.lang.String oper)
      Respond to the Negation column in the Edit Conditional window.
      (package private) void variableOperatorChanged​(int row, java.lang.String oper)
      Respond to the Operator column in the Edit Conditional window.
      • Methods inherited from class javax.swing.JFrame

        addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
      • Methods inherited from class java.awt.Frame

        addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
      • Methods inherited from class java.awt.Window

        addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, 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, getMinimumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, 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, 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, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.awt.MenuContainer

        getFont, postEvent