|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
jmri.util.JmriJFrame
jmri.jmrix.cmri.serial.nodeconfig.NodeConfigFrame
public class NodeConfigFrame
Frame for user configuration of CMRI serial nodes
| Nested Class Summary | |
|---|---|
class |
NodeConfigFrame.CardConfigModel
Set up table for selecting card type by address for USIC_SUSIC nodes |
class |
NodeConfigFrame.SearchlightConfigModel
Set up model for SMINI table for designating oscillating 2-lead searchlights |
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Fields inherited from class jmri.util.JmriJFrame |
|---|
reuseFrameSavedPosition, reuseFrameSavedSized |
| 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 | |
|---|---|
NodeConfigFrame()
Constructor method |
|
| Method Summary | |
|---|---|
void |
addButtonActionPerformed()
Method to handle add button |
void |
cancelButtonActionPerformed()
Method to handle cancel button |
protected boolean |
checkConsistency()
Check for consistency errors by node type Returns 'true' if successful, 'false' if an error was detected. |
void |
deleteButtonActionPerformed()
Method to handle delete button |
void |
doneButtonActionPerformed()
Method to handle done button |
void |
editButtonActionPerformed()
Method to handle edit button |
void |
initComponents()
Initialize the config window |
protected boolean |
readPulseWidth()
Read pulse width from window Returns 'true' if successful, 'false' if an error was detected. |
protected boolean |
readReceiveDelay()
Read receive delay from window Returns 'true' if successful, 'false' if an error was detected. |
void |
updateButtonActionPerformed()
Method to handle update button |
void |
windowClosing(WindowEvent e)
Method to close the window when the close box is clicked |
| Methods inherited from class java.awt.Frame |
|---|
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.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
protected JTextField nodeAddrField
protected JLabel nodeAddrStatic
protected JComboBox nodeTypeBox
protected JTextField receiveDelayField
protected JTextField pulseWidthField
protected JComboBox cardSizeBox
protected JLabel cardSizeText
protected JButton addButton
protected JButton editButton
protected JButton deleteButton
protected JButton doneButton
protected JButton updateButton
protected JButton cancelButton
protected JLabel statusText1
protected JLabel statusText2
protected JLabel statusText3
protected JPanel panel2
protected JPanel panel2a
protected boolean changedNode
protected boolean editMode
protected SerialNode curNode
protected int nodeAddress
protected int nodeType
protected int bitsPerCard
protected int receiveDelay
protected int pulseWidth
protected int num2LSearchLights
protected int numCards
protected boolean errorInStatus1
protected boolean errorInStatus2
protected String stdStatus1
protected String stdStatus2
protected String stdStatus3
protected String editStatus1
protected String editStatus2
protected String editStatus3
| Constructor Detail |
|---|
public NodeConfigFrame()
| Method Detail |
|---|
public void initComponents()
initComponents in class JmriJFramepublic void addButtonActionPerformed()
public void editButtonActionPerformed()
public void deleteButtonActionPerformed()
public void doneButtonActionPerformed()
public void updateButtonActionPerformed()
public void cancelButtonActionPerformed()
public void windowClosing(WindowEvent e)
windowClosing in interface WindowListenerwindowClosing in class JmriJFrameprotected boolean readReceiveDelay()
protected boolean readPulseWidth()
protected boolean checkConsistency()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||