|
||||||||||
| 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.maple.nodeconfig.NodeConfigFrame
public class NodeConfigFrame
Frame for user configuration of Maple panel nodes Note: Currently anything to do with pulse width for pulsing a turnout is commented out. This code from the C/MRI version was not deleted in case it is needed in the future.
| Nested Class Summary |
|---|
| 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 |
| Field Summary | |
|---|---|
protected JButton |
addButton
|
protected JButton |
cancelButton
|
protected boolean |
changedNode
|
protected SerialNode |
curNode
|
protected JButton |
deleteButton
|
protected JButton |
doneButton
|
protected JButton |
editButton
|
protected boolean |
editMode
|
protected String |
editStatus1
|
protected String |
editStatus2
|
protected String |
editStatus3
|
protected boolean |
errorInStatus1
|
protected boolean |
errorInStatus2
|
protected int |
inputBits
|
protected int |
nodeAddress
|
protected JTextField |
nodeAddrField
|
protected JLabel |
nodeAddrStatic
|
protected JTextField |
numInputField
|
protected JTextField |
numOutputField
|
protected int |
outputBits
|
protected JPanel |
panel2
|
protected JPanel |
panel2a
|
protected JTextField |
pollTimeoutField
|
protected int |
pollTimeoutTime
|
protected int |
sendDelay
|
protected JTextField |
sendDelayField
|
protected JLabel |
statusText1
|
protected JLabel |
statusText2
|
protected JLabel |
statusText3
|
protected String |
stdStatus1
|
protected String |
stdStatus2
|
protected String |
stdStatus3
|
protected JButton |
updateButton
|
| 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 |
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 |
readNumInputBits()
Read number of input bits from window Returns 'true' if successful, 'false' if an error was detected. |
protected boolean |
readNumOutputBits()
Read number of output bits from window Returns 'true' if successful, 'false' if an error was detected. |
protected boolean |
readPollTimeout()
Read receive poll reply timeout time from window Returns 'true' if successful, 'false' if an error was detected. |
protected boolean |
readSendDelay()
Read send delay time 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 JTextField pollTimeoutField
protected JTextField sendDelayField
protected JTextField numInputField
protected JTextField numOutputField
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 pollTimeoutTime
protected int sendDelay
protected int inputBits
protected int outputBits
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 readPollTimeout()
protected boolean readSendDelay()
protected boolean readNumInputBits()
protected boolean readNumOutputBits()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||