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:
ImageObserver,MenuContainer,PropertyChangeListener,Serializable,EventListener,Accessible
- Direct Known Subclasses:
TrainConductorPanel,YardmasterByTrackPanel,YardmasterPanel
public abstract class CommonConductorYardmasterPanel
extends OperationsPanel
implements PropertyChangeListener
Common elements for the Conductor and Yardmaster Frames.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Locationprotected Trainprotected CarManagerprotected ConcurrentHashMap<String,JCheckBox> (package private) CarSetFrameprotected EngineManager(package private) EngineSetFrameprotected static final booleanprotected booleanprotected JScrollPaneprotected JScrollPaneprotected JPanelprotected JScrollPaneprotected JPanelprotected JPanelprotected JPanelprotected JPanelprotected JPanelprotected JPanelprotected JPanelprotected JPanelprotected JPanelprotected JPanelprotected JPanelprotected JPanelprotected List<RollingStock>protected JScrollPaneprotected static final Stringprotected static final Stringprotected JTextPaneprotected JLabelprotected JLabelprotected JLabelprotected JTextPaneprotected JTextPaneprotected JLabelprotected JTextPaneprotected JTextPaneprotected JTextPaneprotected TrainCommonprotected TrainManagerFields inherited from class jmri.jmrit.operations.OperationsPanel
NEW_LINE, NONEFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.voidvoidprotected voidcheck()protected voidprotected voidvoiddispose()voidprotected StringgetStatus(RouteLocation rl, boolean isManifest) voidprotected voidprotected voidloadLocationComment(Location location) protected voidloadLocationSwitchListComment(Location location) protected voidprotected voidshow route comment box only if there's a route commentprotected voidprotected voidshow train comment box only if there's a commentprotected voidvoidprotected voidremoveCarFromList(Car car) protected voidprotected voidselectCheckboxes(boolean enable) protected voidsetCheckBoxFont(JCheckBox checkBox, Color color) protected voidsetLabelFont(JLabel label) protected voidprotected abstract voidupdate()protected voidprotected voidUses "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.OperationsPanel
addButtonAction, 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, storeValuesMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods 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, updateMethods 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, validateTreeMethods 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 Details
-
IS_MANIFEST
- See Also:
-
Tab
- See Also:
-
Space
- See Also:
-
_location
-
_train
-
trainManager
-
engManager
-
carManager
-
trainCommon
-
locoPane
-
pickupPane
-
setoutPane
-
movePane
-
textRailRoadName
-
textTrainDescription
-
textLocationName
-
textStatus
-
selectButton
-
clearButton
-
modifyButton
-
moveButton
-
textLocationCommentPane
-
textTrainCommentPane
-
textTrainRouteCommentPane
-
textTrainRouteLocationCommentPane
-
textSwitchListCommentPane
-
textTrainStatusPane
-
pRailRoadName
-
pTrainDescription
-
pLocationName
-
pTrackComments
-
pLocos
-
pPickupLocos
-
pSetoutLocos
-
pPickups
-
pSetouts
-
pWorkPanes
-
pMoves
-
pStatus
-
pButtons
-
checkBoxes
-
rollingStock
-
isSetMode
-
csf
-
esf
-
-
Constructor Details
-
CommonConductorYardmasterPanel
public CommonConductorYardmasterPanel()
-
-
Method Details
-
initComponents
-
buttonActionPerformed
- Overrides:
buttonActionPerformedin classOperationsPanel
-
initialize
-
updateComplete
-
carSetButtonActionPerfomed
-
engineSetButtonActionPerfomed
-
checkBoxActionPerformed
- Overrides:
checkBoxActionPerformedin classOperationsPanel
-
check
-
selectCheckboxes
-
loadTrainDescription
-
loadTrainComment
show train comment box only if there's a comment -
loadRailroadName
-
loadLocationComment
-
loadLocationSwitchListComment
-
loadRouteComment
show route comment box only if there's a route comment -
loadRouteLocationComment
-
updateTrackComments
-
updateLocoPanes
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.
-
blockCars
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 RouteLocationisManifest- True if manifest, false if switch list
-
addSet
-
setCheckBoxFont
-
setLabelFont
-
setModifyButtonText
-
getStatus
-
removeCarFromList
-
clearAndUpdate
-
update
-
removePropertyChangeListerners
-
dispose
- Overrides:
disposein classOperationsPanel
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-