Class AbstractEditNVPane
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- jmri.util.swing.JmriPanel
-
- jmri.jmrix.can.swing.CanPanel
-
- jmri.jmrix.can.cbus.swing.modules.AbstractEditNVPane
-
- All Implemented Interfaces:
java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,javax.accessibility.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:
- Serialized Form
-
-
Nested Class Summary
-
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
-
-
Field Summary
Fields Modifier and Type Field Description protected CbusNodeNVTableDataModel
_dataModel
protected int
_fwBuild
protected int
_fwMaj
protected int
_fwMin
protected CbusNode
_node
-
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
-
-
Constructor Summary
Constructors Constructor Description AbstractEditNVPane(CbusNodeNVTableDataModel dataModel, CbusNode node)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AbstractEditNVPane
getContent()
Build the edit gui for displayprotected int
getSelectValue16(int rowHi, int rowLo, int min, int max)
Get the value of an NV pair from NV_SELECT_COLUMNprotected 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 integerprotected int
getSelectValue8(int row)
Get the NV value from NV_SELECT_COLUMNprotected int
getSelectValue8(int row, int min)
Get the NV value from NV_SELECT_COLUMNprotected int
getSelectValue8(int row, int min, int max)
Get the NV value from NV_SELECT_COLUMNabstract void
tableChanged(javax.swing.event.TableModelEvent e)
The node table model has changed.-
Methods inherited from class jmri.jmrix.can.swing.CanPanel
getMemo, initComponents, initContext, prependConnToString
-
Methods inherited from class jmri.util.swing.JmriPanel
dispose, getHelpTarget, getMenus, getMinimumDimension, getTitle, getWindowInterface, initComponents, isMultipleInstances, setWindowInterface
-
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
-
-
-
-
Field Detail
-
_dataModel
protected CbusNodeNVTableDataModel _dataModel
-
_fwMaj
protected int _fwMaj
-
_fwMin
protected int _fwMin
-
_fwBuild
protected int _fwBuild
-
-
Constructor Detail
-
AbstractEditNVPane
public AbstractEditNVPane(CbusNodeNVTableDataModel dataModel, CbusNode node)
-
-
Method Detail
-
getContent
public abstract AbstractEditNVPane getContent()
Build the edit gui for display- Returns:
- the JPanel containing the edit gui
-
tableChanged
public abstract void tableChanged(javax.swing.event.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 NVmin
- 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 NVmin
- minimum value to returnmax
- 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 NVrowLo
- index of lo byte NVmin
- minimum value to returnmax
- 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
-
-