Package jmri.jmrit.entryexit
Class AddEntryExitPairPanel
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- jmri.util.swing.JmriPanel
-
- jmri.jmrit.entryexit.AddEntryExitPairPanel
-
- All Implemented Interfaces:
java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,javax.accessibility.Accessible
public class AddEntryExitPairPanel extends JmriPanel
JPanel to create a new EntryExitPair.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
AddEntryExitPairPanel.TableModel
(package private) static class
AddEntryExitPairPanel.ValidPoints
-
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 (package private) static int
ACTIVECOL
(package private) static int
BOTHWAYCOL
(package private) static int
CLEARCOL
(package private) javax.swing.JComboBox<java.lang.String>
clearEntry
(package private) java.lang.String[]
clearOptions
(package private) java.awt.Color[]
colorCode
(package private) java.lang.String[]
colorText
(package private) static int
DELETECOL
(package private) javax.swing.JCheckBox
dispatcherUse
(package private) boolean
doFromCombo
(package private) javax.swing.JTextField
durationSetting
(package private) static int
ENABLEDCOL
(package private) JmriJFrame
entryExitFrame
(package private) javax.swing.JComboBox<java.lang.String>
fromPoint
(package private) static int
FROMPOINTCOL
(package private) java.util.SortedSet<java.lang.String>
fromSet
(package private) java.lang.String[]
interlockTypes
(package private) javax.swing.JSpinner
memoryClearDelay
(package private) NamedBeanComboBox<Memory>
memoryComboBox
(package private) static int
NUMCOL
(package private) int
numColors
(package private) javax.swing.JScrollPane
nxDataScroll
(package private) javax.swing.JTable
nxDataTable
(package private) AddEntryExitPairPanel.TableModel
nxModel
(package private) EntryExitPairs
nxPairs
(package private) java.lang.String[]
NXTYPE_NAMES
(package private) JmriJFrame
optionsFrame
(package private) java.awt.Container
optionsPane
(package private) javax.swing.JComboBox<java.lang.String>
overlapEntry
(package private) java.lang.String[]
overlapOptions
(package private) LayoutEditor
panel
(package private) java.util.List<LayoutEditor>
panels
(package private) javax.swing.JComboBox<java.lang.String>
selectPanel
(package private) javax.swing.JComboBox<java.lang.String>
settingTrackColorBox
(package private) javax.swing.JLabel
sourceLabel
(package private) javax.swing.JComboBox<java.lang.String>
toPoint
(package private) static int
TOPOINTCOL
(package private) java.util.SortedSet<java.lang.String>
toSet
(package private) javax.swing.JComboBox<java.lang.String>
typeBox
(package private) static int
TYPECOL
(package private) javax.swing.JCheckBox
useAbsSignalMode
(package private) java.util.List<AddEntryExitPairPanel.ValidPoints>
validPoints
-
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 AddEntryExitPairPanel(LayoutEditor panel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addPointToCombo(java.lang.String signalMastName, java.lang.String sensorName)
protected void
configDeleteColumn(javax.swing.JTable table)
(package private) AddEntryExitPairPanel.ValidPoints
getValidPointFromCombo(javax.swing.JComboBox<java.lang.String> box)
(package private) void
optionSaveButton()
Save the option updatesprotected void
optionWindow(java.awt.event.ActionEvent e)
Build the Options windowprotected void
setColumnToHoldButton(javax.swing.JTable table, int column, javax.swing.JButton sample)
Service method to set up a column so that it will hold a button for its values.-
Methods inherited from class jmri.util.swing.JmriPanel
dispose, getHelpTarget, getMenus, getMinimumDimension, getTitle, getWindowInterface, initComponents, initContext, 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
-
selectPanel
javax.swing.JComboBox<java.lang.String> selectPanel
-
fromPoint
javax.swing.JComboBox<java.lang.String> fromPoint
-
toPoint
javax.swing.JComboBox<java.lang.String> toPoint
-
interlockTypes
java.lang.String[] interlockTypes
-
typeBox
javax.swing.JComboBox<java.lang.String> typeBox
-
panels
java.util.List<LayoutEditor> panels
-
nxPairs
EntryExitPairs nxPairs
-
panel
LayoutEditor panel
-
entryExitFrame
JmriJFrame entryExitFrame
-
sourceLabel
javax.swing.JLabel sourceLabel
-
validPoints
java.util.List<AddEntryExitPairPanel.ValidPoints> validPoints
-
doFromCombo
boolean doFromCombo
-
fromSet
java.util.SortedSet<java.lang.String> fromSet
-
toSet
java.util.SortedSet<java.lang.String> toSet
-
nxDataTable
javax.swing.JTable nxDataTable
-
nxDataScroll
javax.swing.JScrollPane nxDataScroll
-
FROMPOINTCOL
static final int FROMPOINTCOL
- See Also:
- Constant Field Values
-
TOPOINTCOL
static final int TOPOINTCOL
- See Also:
- Constant Field Values
-
ACTIVECOL
static final int ACTIVECOL
- See Also:
- Constant Field Values
-
CLEARCOL
static final int CLEARCOL
- See Also:
- Constant Field Values
-
BOTHWAYCOL
static final int BOTHWAYCOL
- See Also:
- Constant Field Values
-
DELETECOL
static final int DELETECOL
- See Also:
- Constant Field Values
-
TYPECOL
static final int TYPECOL
- See Also:
- Constant Field Values
-
ENABLEDCOL
static final int ENABLEDCOL
- See Also:
- Constant Field Values
-
NUMCOL
static final int NUMCOL
- See Also:
- Constant Field Values
-
NXTYPE_NAMES
java.lang.String[] NXTYPE_NAMES
-
optionsFrame
JmriJFrame optionsFrame
-
optionsPane
java.awt.Container optionsPane
-
clearOptions
java.lang.String[] clearOptions
-
clearEntry
javax.swing.JComboBox<java.lang.String> clearEntry
-
overlapOptions
java.lang.String[] overlapOptions
-
overlapEntry
javax.swing.JComboBox<java.lang.String> overlapEntry
-
memoryComboBox
NamedBeanComboBox<Memory> memoryComboBox
-
memoryClearDelay
javax.swing.JSpinner memoryClearDelay
-
durationSetting
javax.swing.JTextField durationSetting
-
colorText
java.lang.String[] colorText
-
colorCode
java.awt.Color[] colorCode
-
numColors
int numColors
-
useAbsSignalMode
javax.swing.JCheckBox useAbsSignalMode
-
dispatcherUse
javax.swing.JCheckBox dispatcherUse
-
settingTrackColorBox
javax.swing.JComboBox<java.lang.String> settingTrackColorBox
-
-
Constructor Detail
-
AddEntryExitPairPanel
public AddEntryExitPairPanel(LayoutEditor panel)
-
-
Method Detail
-
getValidPointFromCombo
AddEntryExitPairPanel.ValidPoints getValidPointFromCombo(javax.swing.JComboBox<java.lang.String> box)
-
addPointToCombo
void addPointToCombo(java.lang.String signalMastName, java.lang.String sensorName)
-
configDeleteColumn
protected void configDeleteColumn(javax.swing.JTable table)
-
setColumnToHoldButton
protected void setColumnToHoldButton(javax.swing.JTable table, int column, javax.swing.JButton sample)
Service method to set up a column so that it will hold a button for its values.- Parameters:
table
- the tablecolumn
- the columnsample
- Typical button, used for size
-
optionWindow
protected void optionWindow(java.awt.event.ActionEvent e)
Build the Options window- Parameters:
e
- the action event
-
optionSaveButton
void optionSaveButton()
Save the option updates
-
-