Class NceConsistEditPanel

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, AbstractMRListener, NceListener, NcePanelInterface

    public class NceConsistEditPanel
    extends NcePanel
    implements NceListener
    Pane for user edit of NCE Consists NCE Consists are stored in Command Station (CS) memory starting at address xF500 and ending xFAFF (PH5 0x4E00 - 0x53FF). NCE supports up to 127 consists, numbered 1 to 127. They track the lead loco, rear loco, and four mid locos in the consist file. NCE cabs start at consist 127 when building and reviewing consists, so we also start with 127. Consist lead locos are stored in memory locations xF500 through xF5FF (PH5 0x4E00 - 0x4EFF). Consist rear locos are stored in memory locations xF600 through xF6FF (PH5 0x4F00 - 0x4FFF). Mid consist locos (four max) are stored in memory locations xF700 through xFAFF (PH5 0x500 - 0x53FF). If a long address is in use, bits 6 and 7 of the high byte are set. Example: Long address 3 = 0xc0 0x03 Short address 3 = 0x00 0x03 NCE file format: :F500 (con 0 lead loco) (con 1 lead loco) ....... (con 7 lead loco) :F510 (con 8 lead loco) ........ (con 15 lead loco) . . :F5F0 (con 120 lead loco) ..... (con 127 lead loco) :F600 (con 0 rear loco) (con 1 rear loco) ....... (con 7 rear loco) . . :F6F0 (con 120 rear loco) ..... (con 127 rear loco) :F700 (con 0 mid loco1) (con 0 mid loco2) (con 0 mid loco3) (con 0 mid loco4) . . :FAF0 (con 126 mid loco1) .. (con 126 mid loco4)(con 127 mid loco1) .. (con 127 mid loco4) :0000
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  NceConsistEditPanel.Default
      Nested class to create one of these using old-style defaults
      • Nested classes/interfaces inherited from class javax.swing.JPanel

        javax.swing.JPanel.AccessibleJPanel
      • Nested classes/interfaces inherited from class javax.swing.JComponent

        javax.swing.JComponent.AccessibleJComponent
      • 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javax.swing.JButton adrButton1  
      (package private) javax.swing.JButton adrButton2  
      (package private) javax.swing.JButton adrButton3  
      (package private) javax.swing.JButton adrButton4  
      (package private) javax.swing.JButton adrButton5  
      (package private) javax.swing.JButton adrButton6  
      (package private) javax.swing.JButton backUpButton  
      (package private) javax.swing.JCheckBox checkBoxConsist  
      (package private) javax.swing.JCheckBox checkBoxEmpty  
      (package private) javax.swing.JCheckBox checkBoxVerify  
      (package private) javax.swing.JButton clearCancelButton  
      (package private) javax.swing.JButton cmdButton1  
      (package private) javax.swing.JButton cmdButton2  
      (package private) javax.swing.JButton cmdButton3  
      (package private) javax.swing.JButton cmdButton4  
      (package private) javax.swing.JButton cmdButton5  
      (package private) javax.swing.JButton cmdButton6  
      (package private) javax.swing.JComboBox<java.lang.String> conRosterBox  
      protected java.util.List<NceConsistRosterEntry> consistList  
      (package private) java.awt.event.ActionListener consistRosterListener  
      (package private) javax.swing.JLabel consistStatus  
      (package private) javax.swing.JTextField consistTextField  
      (package private) javax.swing.JButton deleteButton  
      (package private) javax.swing.JButton dirButton1  
      (package private) javax.swing.JButton dirButton2  
      (package private) javax.swing.JButton dirButton3  
      (package private) javax.swing.JButton dirButton4  
      (package private) javax.swing.JButton dirButton5  
      (package private) javax.swing.JButton dirButton6  
      (package private) javax.swing.JButton getButton  
      (package private) javax.swing.JComboBox<java.lang.Object> locoRosterBox1  
      (package private) javax.swing.JComboBox<java.lang.Object> locoRosterBox2  
      (package private) javax.swing.JComboBox<java.lang.Object> locoRosterBox3  
      (package private) javax.swing.JComboBox<java.lang.Object> locoRosterBox4  
      (package private) javax.swing.JComboBox<java.lang.Object> locoRosterBox5  
      (package private) javax.swing.JComboBox<java.lang.Object> locoRosterBox6  
      (package private) javax.swing.JTextField locoTextField1  
      (package private) javax.swing.JTextField locoTextField2  
      (package private) javax.swing.JTextField locoTextField3  
      (package private) javax.swing.JTextField locoTextField4  
      (package private) javax.swing.JTextField locoTextField5  
      (package private) javax.swing.JTextField locoTextField6  
      (package private) NceConsistRoster nceConsistRoster  
      (package private) NceConsistRosterEntry nceConsistRosterEntry  
      (package private) javax.swing.JButton nextButton  
      (package private) javax.swing.JButton previousButton  
      (package private) javax.swing.JButton restoreButton  
      (package private) javax.swing.JButton saveLoadButton  
      (package private) javax.swing.JLabel space1  
      (package private) javax.swing.JLabel space15  
      (package private) javax.swing.JLabel space2  
      (package private) javax.swing.JLabel space3a  
      (package private) javax.swing.JLabel space3b  
      (package private) javax.swing.JLabel space3c  
      (package private) javax.swing.JLabel space3d  
      (package private) javax.swing.JLabel textAddress  
      (package private) javax.swing.JLabel textAddrType  
      (package private) javax.swing.JLabel textConModel  
      (package private) javax.swing.JLabel textConRoadName  
      (package private) javax.swing.JLabel textConRoadNumber  
      (package private) javax.swing.JLabel textConRoster  
      (package private) javax.swing.JLabel textConsist  
      (package private) javax.swing.JLabel textDirection  
      (package private) javax.swing.JLabel textLoco1  
      (package private) javax.swing.JLabel textLoco2  
      (package private) javax.swing.JLabel textLoco3  
      (package private) javax.swing.JLabel textLoco4  
      (package private) javax.swing.JLabel textLoco5  
      (package private) javax.swing.JLabel textLoco6  
      (package private) javax.swing.JLabel textLocomotive  
      (package private) javax.swing.JLabel textRoster  
      (package private) javax.swing.JLabel textStatus  
      (package private) javax.swing.JButton throttleButton  
      • Fields inherited from class jmri.jmrix.nce.swing.NcePanel

        memo
      • Fields inherited from class javax.swing.JComponent

        listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • Fields inherited from class java.awt.Component

        accessibleContext, 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void buttonActionAdrPerformed​(java.awt.event.ActionEvent ae)  
      void buttonActionCmdPerformed​(java.awt.event.ActionEvent ae)  
      void buttonActionDirPerformed​(java.awt.event.ActionEvent ae)  
      void buttonActionPerformed​(java.awt.event.ActionEvent ae)  
      void checkBoxActionPerformed​(java.awt.event.ActionEvent ae)  
      void consistRosterSelected​(java.awt.event.ActionEvent ae)  
      java.lang.String getHelpTarget()
      Provide a help target string which an enclosing frame can provide as a help reference.
      java.util.List<javax.swing.JMenu> getMenus()
      Provide menu items to add to a menu bar.
      java.lang.String getTitle()
      Provide a recommended title for an enclosing frame.
      void initComponents​(NceSystemConnectionMemo m)
      2nd stage of initialization, invoked after the constuctor is complete.
      void initContext​(java.lang.Object context)
      3rd stage of initialization, invoked after Swing components exist.
      void locoSelected​(java.awt.event.ActionEvent ae)  
      void message​(NceMessage m)  
      void reply​(NceReply nceReply)  
      void reportError()  
      • Methods inherited from class javax.swing.JPanel

        getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
      • Methods inherited from class javax.swing.JComponent

        addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
      • Methods inherited from class java.awt.Container

        add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait