Package jmri.jmrit.operations
Class CommonConductorYardmasterPanel
- java.lang.Object
- 
- java.awt.Component
- 
- java.awt.Container
- 
- javax.swing.JComponent
- 
- javax.swing.JPanel
- 
- jmri.jmrit.operations.OperationsPanel
- 
- jmri.jmrit.operations.CommonConductorYardmasterPanel
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.awt.image.ImageObserver,- java.awt.MenuContainer,- java.beans.PropertyChangeListener,- java.io.Serializable,- java.util.EventListener,- javax.accessibility.Accessible
 - Direct Known Subclasses:
- TrainConductorPanel,- YardmasterByTrackPanel,- YardmasterPanel
 
 public abstract class CommonConductorYardmasterPanel extends OperationsPanel implements java.beans.PropertyChangeListener Common elements for the Conductor and Yardmaster Frames.- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class javax.swing.JPaneljavax.swing.JPanel.AccessibleJPanel
 - 
Nested classes/interfaces inherited from class javax.swing.JComponentjavax.swing.JComponent.AccessibleJComponent
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected Location_locationprotected Train_trainprotected CarManagercarManagerprotected java.util.concurrent.ConcurrentHashMap<java.lang.String,javax.swing.JCheckBox>checkBoxesjavax.swing.JButtonclearButton(package private) CarSetFramecsfprotected EngineManagerengManager(package private) EngineSetFrameesfprotected static booleanIS_MANIFESTprotected booleanisSetModeprotected javax.swing.JScrollPanelocoPanejavax.swing.JButtonmodifyButtonjavax.swing.JButtonmoveButtonprotected javax.swing.JScrollPanemovePaneprotected javax.swing.JPanelpButtonsprotected javax.swing.JScrollPanepickupPaneprotected javax.swing.JPanelpLocationNameprotected javax.swing.JPanelpLocosprotected javax.swing.JPanelpMovesprotected javax.swing.JPanelpPickupLocosprotected javax.swing.JPanelpPickupsprotected javax.swing.JPanelpRailRoadNameprotected javax.swing.JPanelpSetoutLocosprotected javax.swing.JPanelpSetoutsprotected javax.swing.JPanelpStatusprotected javax.swing.JPanelpTrackCommentsprotected javax.swing.JPanelpTrainDescriptionprotected javax.swing.JPanelpWorkPanesprotected java.util.List<RollingStock>rollingStockjavax.swing.JButtonselectButtonprotected javax.swing.JScrollPanesetoutPaneprotected static java.lang.StringSpaceprotected static java.lang.StringTabprotected javax.swing.JTextPanetextLocationCommentPaneprotected javax.swing.JLabeltextLocationNameprotected javax.swing.JLabeltextRailRoadNameprotected javax.swing.JLabeltextStatusprotected javax.swing.JTextPanetextSwitchListCommentPaneprotected javax.swing.JTextPanetextTrainCommentPaneprotected javax.swing.JLabeltextTrainDescriptionprotected javax.swing.JTextPanetextTrainRouteCommentPaneprotected javax.swing.JTextPanetextTrainRouteLocationCommentPaneprotected javax.swing.JTextPanetextTrainStatusPaneprotected TrainCommontrainCommonprotected TrainManagertrainManager- 
Fields inherited from class jmri.jmrit.operations.OperationsPanelNEW_LINE, NONE
 - 
Fields inherited from class javax.swing.JComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
- 
 - 
Constructor SummaryConstructors Constructor Description CommonConductorYardmasterPanel()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected javax.swing.JPaneladdSet(RollingStock rs)protected voidblockCars(RouteLocation rl, boolean isManifest)Block cars by track (optional), then pick up and set out for each location in a train's route.voidbuttonActionPerformed(java.awt.event.ActionEvent ae)voidcarSetButtonActionPerfomed(java.awt.event.ActionEvent ae)protected voidcheck()protected voidcheckBoxActionPerformed(java.awt.event.ActionEvent ae)protected voidclearAndUpdate()voiddispose()voidengineSetButtonActionPerfomed(java.awt.event.ActionEvent ae)protected java.lang.StringgetStatus(RouteLocation rl, boolean isManifest)voidinitComponents()protected voidinitialize()protected voidloadLocationComment(Location location)protected voidloadLocationSwitchListComment(Location location)protected voidloadRailroadName()protected voidloadRouteComment()show route comment box only if there's a route commentprotected voidloadRouteLocationComment(RouteLocation rl)protected voidloadTrainComment()show train comment box only if there's a commentprotected voidloadTrainDescription()voidpropertyChange(java.beans.PropertyChangeEvent e)protected voidremoveCarFromList(Car car)protected voidremovePropertyChangeListerners()protected voidselectCheckboxes(boolean enable)protected voidsetCheckBoxFont(javax.swing.JCheckBox checkBox, java.awt.Color color)protected voidsetLabelFont(javax.swing.JLabel label)protected voidsetModifyButtonText()protected abstract voidupdate()protected voidupdateComplete()protected voidupdateLocoPanes(RouteLocation rl)Uses "ep" prefix to denote a checkbox with an engine pick up, and "es" for an engine set out.protected voidupdateTrackComments(RouteLocation rl, boolean isManifest)- 
Methods inherited from class jmri.jmrit.operations.OperationsPaneladdButtonAction, addCheckBoxAction, addComboBoxAction, addHorizontalScrollBarKludgeFix, addItem, addItem, addItemLeft, addItemTop, addItemWidth, addRadioButtonAction, addSpinnerChangeListerner, adjustTextAreaColumnWidth, cacheState, clearTableSort, comboBoxActionPerformed, getColorChooserPanel, getColorChooserPanel, getNumberOfCheckboxesPerLine, getWindowFrameRef, loadFontSizeComboBox, loadTableDetails, loadTableDetails, padComboBox, padComboBox, persist, radioButtonActionPerformed, saveTableState, selectNextItemComboBox, spinnerChangeEvent, storeValues
 - 
Methods inherited from class javax.swing.JPanelgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 - 
Methods inherited from class javax.swing.JComponentaddAncestorListener, 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.Containeradd, 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.Componentaction, 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- 
IS_MANIFESTprotected static final boolean IS_MANIFEST - See Also:
- Constant Field Values
 
 - 
Tabprotected static final java.lang.String Tab - See Also:
- Constant Field Values
 
 - 
Spaceprotected static final java.lang.String Space - See Also:
- Constant Field Values
 
 - 
trainManagerprotected TrainManager trainManager 
 - 
engManagerprotected EngineManager engManager 
 - 
carManagerprotected CarManager carManager 
 - 
trainCommonprotected TrainCommon trainCommon 
 - 
locoPaneprotected javax.swing.JScrollPane locoPane 
 - 
pickupPaneprotected javax.swing.JScrollPane pickupPane 
 - 
setoutPaneprotected javax.swing.JScrollPane setoutPane 
 - 
movePaneprotected javax.swing.JScrollPane movePane 
 - 
textRailRoadNameprotected javax.swing.JLabel textRailRoadName 
 - 
textTrainDescriptionprotected javax.swing.JLabel textTrainDescription 
 - 
textLocationNameprotected javax.swing.JLabel textLocationName 
 - 
textStatusprotected javax.swing.JLabel textStatus 
 - 
selectButtonpublic javax.swing.JButton selectButton 
 - 
clearButtonpublic javax.swing.JButton clearButton 
 - 
modifyButtonpublic javax.swing.JButton modifyButton 
 - 
moveButtonpublic javax.swing.JButton moveButton 
 - 
textLocationCommentPaneprotected javax.swing.JTextPane textLocationCommentPane 
 - 
textTrainCommentPaneprotected javax.swing.JTextPane textTrainCommentPane 
 - 
textTrainRouteCommentPaneprotected javax.swing.JTextPane textTrainRouteCommentPane 
 - 
textTrainRouteLocationCommentPaneprotected javax.swing.JTextPane textTrainRouteLocationCommentPane 
 - 
textSwitchListCommentPaneprotected javax.swing.JTextPane textSwitchListCommentPane 
 - 
textTrainStatusPaneprotected javax.swing.JTextPane textTrainStatusPane 
 - 
pRailRoadNameprotected javax.swing.JPanel pRailRoadName 
 - 
pTrainDescriptionprotected javax.swing.JPanel pTrainDescription 
 - 
pLocationNameprotected javax.swing.JPanel pLocationName 
 - 
pTrackCommentsprotected javax.swing.JPanel pTrackComments 
 - 
pLocosprotected javax.swing.JPanel pLocos 
 - 
pPickupLocosprotected javax.swing.JPanel pPickupLocos 
 - 
pSetoutLocosprotected javax.swing.JPanel pSetoutLocos 
 - 
pPickupsprotected javax.swing.JPanel pPickups 
 - 
pSetoutsprotected javax.swing.JPanel pSetouts 
 - 
pWorkPanesprotected javax.swing.JPanel pWorkPanes 
 - 
pMovesprotected javax.swing.JPanel pMoves 
 - 
pStatusprotected javax.swing.JPanel pStatus 
 - 
pButtonsprotected javax.swing.JPanel pButtons 
 - 
checkBoxesprotected java.util.concurrent.ConcurrentHashMap<java.lang.String,javax.swing.JCheckBox> checkBoxes 
 - 
rollingStockprotected java.util.List<RollingStock> rollingStock 
 - 
isSetModeprotected boolean isSetMode 
 - 
csfCarSetFrame csf 
 - 
esfEngineSetFrame esf 
 
- 
 - 
Constructor Detail- 
CommonConductorYardmasterPanelpublic CommonConductorYardmasterPanel() 
 
- 
 - 
Method Detail- 
initComponentspublic void initComponents() 
 - 
buttonActionPerformedpublic void buttonActionPerformed(java.awt.event.ActionEvent ae) - Overrides:
- buttonActionPerformedin class- OperationsPanel
 
 - 
initializeprotected void initialize() 
 - 
updateCompleteprotected void updateComplete() 
 - 
carSetButtonActionPerfomedpublic void carSetButtonActionPerfomed(java.awt.event.ActionEvent ae) 
 - 
engineSetButtonActionPerfomedpublic void engineSetButtonActionPerfomed(java.awt.event.ActionEvent ae) 
 - 
checkBoxActionPerformedprotected void checkBoxActionPerformed(java.awt.event.ActionEvent ae) - Overrides:
- checkBoxActionPerformedin class- OperationsPanel
 
 - 
checkprotected void check() 
 - 
selectCheckboxesprotected void selectCheckboxes(boolean enable) 
 - 
loadTrainDescriptionprotected void loadTrainDescription() 
 - 
loadTrainCommentprotected void loadTrainComment() show train comment box only if there's a comment
 - 
loadRailroadNameprotected void loadRailroadName() 
 - 
loadLocationCommentprotected void loadLocationComment(Location location) 
 - 
loadLocationSwitchListCommentprotected void loadLocationSwitchListComment(Location location) 
 - 
loadRouteCommentprotected void loadRouteComment() show route comment box only if there's a route comment
 - 
loadRouteLocationCommentprotected void loadRouteLocationComment(RouteLocation rl) 
 - 
updateTrackCommentsprotected void updateTrackComments(RouteLocation rl, boolean isManifest) 
 - 
updateLocoPanesprotected void updateLocoPanes(RouteLocation rl) Uses "ep" prefix to denote a checkbox with an engine pick up, and "es" for an engine set out.- Parameters:
- rl- The routeLocation to show loco pick ups or set outs.
 
 - 
blockCarsprotected void blockCars(RouteLocation rl, boolean isManifest) Block cars by track (optional), then pick up and set out for each location in a train's route. This shows each car with a check box or with a set button. The set button is displayed when the checkbox isn't selected and the display is in "set" mode. If the car is a utility. Show the number of cars that have the same attributes, and not the car's road and number. Each car is displayed only once in one of three panes. The three panes are pick up, set out, or local move. To keep track of each car and which pane to use, they are placed in the list "rollingStock" with the prefix "p", "s" or "m" and the car's unique id.- Parameters:
- rl- The RouteLocation
- isManifest- True if manifest, false if switch list
 
 - 
addSetprotected javax.swing.JPanel addSet(RollingStock rs) 
 - 
setCheckBoxFontprotected void setCheckBoxFont(javax.swing.JCheckBox checkBox, java.awt.Color color) 
 - 
setLabelFontprotected void setLabelFont(javax.swing.JLabel label) 
 - 
setModifyButtonTextprotected void setModifyButtonText() 
 - 
getStatusprotected java.lang.String getStatus(RouteLocation rl, boolean isManifest) 
 - 
removeCarFromListprotected void removeCarFromList(Car car) 
 - 
clearAndUpdateprotected void clearAndUpdate() 
 - 
updateprotected abstract void update() 
 - 
removePropertyChangeListernersprotected void removePropertyChangeListerners() 
 - 
disposepublic void dispose() - Overrides:
- disposein class- OperationsPanel
 
 - 
propertyChangepublic void propertyChange(java.beans.PropertyChangeEvent e) - Specified by:
- propertyChangein interface- java.beans.PropertyChangeListener
 
 
- 
 
-