Class AbstractEditNVPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, CanPanelInterface
Direct Known Subclasses:
Canacc8EditNVPane, CanCmdEditNVPane, CanisbEditNVPane, PiSprog3EditNVPane, Servo8BaseEditNVPane, Sol8BaseEditNVPane, Sprog3PlusEditNVPane, UnknownEditNVPane

public abstract class AbstractEditNVPane extends CanPanel
Abstract Node Variable edit Frame for a CBUS module
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getContent

      public abstract AbstractEditNVPane getContent()
      Build the edit gui for display
      Returns:
      the JPanel containing the edit gui
    • tableChanged

      public abstract void tableChanged(TableModelEvent e)
      The node table model has changed. Decode the event to update the edit gui
      Parameters:
      e - the change event
    • getSelectValue8

      protected int getSelectValue8(int row)
      Get the NV value from NV_SELECT_COLUMN
      Parameters:
      row - index of NV
      Returns:
      the NV value, 0 if NV not available yet
    • getSelectValue8

      protected int getSelectValue8(int row, int min)
      Get the NV value from NV_SELECT_COLUMN
      Parameters:
      row - index of NV
      min - minimum value to return
      Returns:
      the NV value, or min if NVs not available yet
    • getSelectValue8

      protected int getSelectValue8(int row, int min, int max)
      Get the NV value from NV_SELECT_COLUMN
      Parameters:
      row - index of NV
      min - minimum value to return
      max - maximum value to return
      Returns:
      the NV value, or min if NVs not available yet
    • getSelectValue16

      protected int getSelectValue16(int rowHi, int rowLo, int min, int max)
      Get the value of an NV pair from NV_SELECT_COLUMN
      Parameters:
      rowHi - index of hi byte NV
      rowLo - index of lo byte NV
      min - minimum value to return
      max - maximum value to return
      Returns:
      the NV value, or min if NVs not available yet
    • getSelectValue32

      protected int getSelectValue32(int rowT)
      Get the value of a 4-byte (32-bit) NV from NV_SELECT_COLUMN Hardware should return a count in range 0 .. max positive integer
      Parameters:
      rowT - index of top (MSB) byte
      Returns:
      the NV value, or 0 if NVs not available yet