Package jmri.jmrit.operations.setup
Class PrintOptionPanel
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- jmri.jmrit.operations.OperationsPanel
-
- jmri.jmrit.operations.setup.OperationsPreferencesPanel
-
- jmri.jmrit.operations.setup.PrintOptionPanel
-
- All Implemented Interfaces:
java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.accessibility.Accessible
,JmriServiceProviderInterface
,PreferencesPanel
public class PrintOptionPanel extends OperationsPreferencesPanel implements java.beans.PropertyChangeListener
Frame for user edit of manifest and switch list print options- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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) javax.swing.JButton
addCarDropComboboxButton
(package private) javax.swing.JButton
addCarPickupComboboxButton
(package private) javax.swing.JButton
addEngDropComboboxButton
(package private) javax.swing.JButton
addEngPickupComboboxButton
(package private) javax.swing.JButton
addLocalComboboxButton
(package private) javax.swing.JButton
addLogoButton
(package private) javax.swing.JButton
addSwitchListDropComboboxButton
(package private) javax.swing.JButton
addSwitchListLocalComboboxButton
(package private) javax.swing.JButton
addSwitchListPickupComboboxButton
(package private) java.util.List<javax.swing.JComboBox<java.lang.String>>
carDropMessageList
(package private) java.util.List<javax.swing.JComboBox<java.lang.String>>
carPickupMessageList
(package private) javax.swing.JScrollPane
commentScroller
(package private) javax.swing.JTextArea
commentTextArea
(package private) javax.swing.JButton
deleteCarDropComboboxButton
(package private) javax.swing.JButton
deleteCarPickupComboboxButton
(package private) javax.swing.JButton
deleteEngDropComboboxButton
(package private) javax.swing.JButton
deleteEngPickupComboboxButton
(package private) javax.swing.JButton
deleteLocalComboboxButton
(package private) javax.swing.JButton
deleteSwitchListDropComboboxButton
(package private) javax.swing.JButton
deleteSwitchListLocalComboboxButton
(package private) javax.swing.JButton
deleteSwitchListPickupComboboxButton
(package private) javax.swing.JTextField
dropCarPrefix
(package private) javax.swing.JColorChooser
dropColorChooser
(package private) javax.swing.JTextField
dropEngPrefix
(package private) javax.swing.JCheckBox
editManifestCheckBox
(package private) java.util.List<javax.swing.JComboBox<java.lang.String>>
engineDropMessageList
(package private) java.util.List<javax.swing.JComboBox<java.lang.String>>
enginePickupMessageList
(package private) javax.swing.JFileChooser
fc
We always use the same file chooser in this class, so that the user's last-accessed directory remains available.(package private) javax.swing.JComboBox<java.lang.String>
fontComboBox
(package private) javax.swing.JComboBox<java.lang.Integer>
fontSizeComboBox
(package private) javax.swing.JCheckBox
formatSwitchListCheckBox
(package private) javax.swing.JCheckBox
groupCarMovesCheckBox
(package private) javax.swing.JTextField
hazardousTextField
(package private) javax.swing.JColorChooser
localColorChooser
(package private) java.util.List<javax.swing.JComboBox<java.lang.String>>
localMessageList
(package private) javax.swing.JTextField
localPrefix
(package private) javax.swing.JLabel
logoURL
(package private) javax.swing.JCheckBox
manifestDepartureTimeCheckBox
(package private) javax.swing.JComboBox<java.lang.String>
manifestFormatComboBox
(package private) javax.swing.JComboBox<java.lang.String>
manifestOrientationComboBox
(package private) javax.swing.JColorChooser
missingCarColorChooser
(package private) javax.swing.JPanel
pDrop
(package private) javax.swing.JPanel
pEngDrop
(package private) javax.swing.JPanel
pEngPickup
(package private) javax.swing.JTextField
pickupCarPrefix
(package private) javax.swing.JColorChooser
pickupColorChooser
(package private) javax.swing.JTextField
pickupEngPrefix
(package private) javax.swing.JPanel
pLocal
(package private) javax.swing.JPanel
pManifest
(package private) javax.swing.JPanel
pPickup
(package private) javax.swing.JCheckBox
printCabooseLoadCheckBox
(package private) javax.swing.JCheckBox
printHeadersCheckBox
(package private) javax.swing.JCheckBox
printLoadsEmptiesCheckBox
(package private) javax.swing.JCheckBox
printLocCommentsCheckBox
(package private) javax.swing.JCheckBox
printPageHeaderCheckBox
(package private) javax.swing.JCheckBox
printPassengerLoadCheckBox
(package private) javax.swing.JCheckBox
printRouteCommentsCheckBox
(package private) javax.swing.JCheckBox
printTrainScheduleNameCheckBox
(package private) javax.swing.JCheckBox
printValidCheckBox
(package private) javax.swing.JPanel
pSwDrop
(package private) javax.swing.JPanel
pSwitchListOrientation
(package private) javax.swing.JPanel
pSwLocal
(package private) javax.swing.JPanel
pSwPickup
(package private) javax.swing.JButton
removeLogoButton
(package private) javax.swing.JCheckBox
routeLocationCheckBox
(package private) javax.swing.JButton
saveButton
(package private) javax.swing.JCheckBox
sortByTrackCheckBox
(package private) java.util.List<javax.swing.JComboBox<java.lang.String>>
switchListCarDropMessageList
(package private) java.util.List<javax.swing.JComboBox<java.lang.String>>
switchListCarPickupMessageList
(package private) javax.swing.JCheckBox
switchListDepartureTimeCheckBox
(package private) javax.swing.JTextField
switchListDropCarPrefix
(package private) java.util.List<javax.swing.JComboBox<java.lang.String>>
switchListLocalMessageList
(package private) javax.swing.JTextField
switchListLocalPrefix
(package private) javax.swing.JComboBox<java.lang.String>
switchListOrientationComboBox
(package private) javax.swing.JTextField
switchListPickupCarPrefix
(package private) javax.swing.JCheckBox
tabFormatCheckBox
(package private) javax.swing.JCheckBox
trackSummaryCheckBox
(package private) javax.swing.JCheckBox
truncateCheckBox
(package private) javax.swing.JCheckBox
use12hrFormatCheckBox
-
Fields inherited from class jmri.jmrit.operations.OperationsPanel
NEW_LINE, NONE
-
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 PrintOptionPanel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buttonActionPerformed(java.awt.event.ActionEvent ae)
void
checkBoxActionPerformed(java.awt.event.ActionEvent ae)
void
comboBoxActionPerformed(java.awt.event.ActionEvent ae)
java.lang.String
getPreferencesTooltip()
The tooltip to display for a tabbed preferences paneljava.lang.String
getTabbedPreferencesTitle()
Get the title for the tab containing this preferences item.boolean
isDirty()
Indicate that preferences need to be saved.void
propertyChange(java.beans.PropertyChangeEvent e)
void
savePreferences()
Save any changes to preferences.-
Methods inherited from class jmri.jmrit.operations.setup.OperationsPreferencesPanel
getLabelKey, getPreferencesComponent, getPreferencesItem, getPreferencesItemText, isPersistant, isPreferencesValid, isRestartRequired
-
Methods inherited from class jmri.jmrit.operations.OperationsPanel
addButtonAction, addCheckBoxAction, addComboBoxAction, addHorizontalScrollBarKludgeFix, addItem, addItem, addItemLeft, addItemTop, addItemWidth, addRadioButtonAction, addSpinnerChangeListerner, adjustTextAreaColumnWidth, cacheState, clearTableSort, dispose, getColorChooserPanel, getColorChooserPanel, getNumberOfCheckboxesPerLine, getWindowFrameRef, loadFontSizeComboBox, loadTableDetails, loadTableDetails, padComboBox, padComboBox, persist, radioButtonActionPerformed, saveTableState, selectNextItemComboBox, spinnerChangeEvent, storeValues
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.swing.PreferencesPanel
getIsEnabled, getSortOrder
-
-
-
-
Field Detail
-
logoURL
javax.swing.JLabel logoURL
-
saveButton
javax.swing.JButton saveButton
-
addLogoButton
javax.swing.JButton addLogoButton
-
removeLogoButton
javax.swing.JButton removeLogoButton
-
addEngPickupComboboxButton
javax.swing.JButton addEngPickupComboboxButton
-
deleteEngPickupComboboxButton
javax.swing.JButton deleteEngPickupComboboxButton
-
addEngDropComboboxButton
javax.swing.JButton addEngDropComboboxButton
-
deleteEngDropComboboxButton
javax.swing.JButton deleteEngDropComboboxButton
-
addCarPickupComboboxButton
javax.swing.JButton addCarPickupComboboxButton
-
deleteCarPickupComboboxButton
javax.swing.JButton deleteCarPickupComboboxButton
-
addCarDropComboboxButton
javax.swing.JButton addCarDropComboboxButton
-
deleteCarDropComboboxButton
javax.swing.JButton deleteCarDropComboboxButton
-
addLocalComboboxButton
javax.swing.JButton addLocalComboboxButton
-
deleteLocalComboboxButton
javax.swing.JButton deleteLocalComboboxButton
-
addSwitchListPickupComboboxButton
javax.swing.JButton addSwitchListPickupComboboxButton
-
deleteSwitchListPickupComboboxButton
javax.swing.JButton deleteSwitchListPickupComboboxButton
-
addSwitchListDropComboboxButton
javax.swing.JButton addSwitchListDropComboboxButton
-
deleteSwitchListDropComboboxButton
javax.swing.JButton deleteSwitchListDropComboboxButton
-
addSwitchListLocalComboboxButton
javax.swing.JButton addSwitchListLocalComboboxButton
-
deleteSwitchListLocalComboboxButton
javax.swing.JButton deleteSwitchListLocalComboboxButton
-
tabFormatCheckBox
javax.swing.JCheckBox tabFormatCheckBox
-
formatSwitchListCheckBox
javax.swing.JCheckBox formatSwitchListCheckBox
-
editManifestCheckBox
javax.swing.JCheckBox editManifestCheckBox
-
printLocCommentsCheckBox
javax.swing.JCheckBox printLocCommentsCheckBox
-
printRouteCommentsCheckBox
javax.swing.JCheckBox printRouteCommentsCheckBox
-
printLoadsEmptiesCheckBox
javax.swing.JCheckBox printLoadsEmptiesCheckBox
-
printCabooseLoadCheckBox
javax.swing.JCheckBox printCabooseLoadCheckBox
-
printPassengerLoadCheckBox
javax.swing.JCheckBox printPassengerLoadCheckBox
-
printTrainScheduleNameCheckBox
javax.swing.JCheckBox printTrainScheduleNameCheckBox
-
use12hrFormatCheckBox
javax.swing.JCheckBox use12hrFormatCheckBox
-
printValidCheckBox
javax.swing.JCheckBox printValidCheckBox
-
sortByTrackCheckBox
javax.swing.JCheckBox sortByTrackCheckBox
-
printHeadersCheckBox
javax.swing.JCheckBox printHeadersCheckBox
-
printPageHeaderCheckBox
javax.swing.JCheckBox printPageHeaderCheckBox
-
truncateCheckBox
javax.swing.JCheckBox truncateCheckBox
-
manifestDepartureTimeCheckBox
javax.swing.JCheckBox manifestDepartureTimeCheckBox
-
switchListDepartureTimeCheckBox
javax.swing.JCheckBox switchListDepartureTimeCheckBox
-
trackSummaryCheckBox
javax.swing.JCheckBox trackSummaryCheckBox
-
routeLocationCheckBox
javax.swing.JCheckBox routeLocationCheckBox
-
groupCarMovesCheckBox
javax.swing.JCheckBox groupCarMovesCheckBox
-
pickupEngPrefix
javax.swing.JTextField pickupEngPrefix
-
dropEngPrefix
javax.swing.JTextField dropEngPrefix
-
pickupCarPrefix
javax.swing.JTextField pickupCarPrefix
-
dropCarPrefix
javax.swing.JTextField dropCarPrefix
-
localPrefix
javax.swing.JTextField localPrefix
-
switchListPickupCarPrefix
javax.swing.JTextField switchListPickupCarPrefix
-
switchListDropCarPrefix
javax.swing.JTextField switchListDropCarPrefix
-
switchListLocalPrefix
javax.swing.JTextField switchListLocalPrefix
-
hazardousTextField
javax.swing.JTextField hazardousTextField
-
commentTextArea
javax.swing.JTextArea commentTextArea
-
commentScroller
javax.swing.JScrollPane commentScroller
-
fontComboBox
javax.swing.JComboBox<java.lang.String> fontComboBox
-
manifestFormatComboBox
javax.swing.JComboBox<java.lang.String> manifestFormatComboBox
-
manifestOrientationComboBox
javax.swing.JComboBox<java.lang.String> manifestOrientationComboBox
-
fontSizeComboBox
javax.swing.JComboBox<java.lang.Integer> fontSizeComboBox
-
switchListOrientationComboBox
javax.swing.JComboBox<java.lang.String> switchListOrientationComboBox
-
pickupColorChooser
javax.swing.JColorChooser pickupColorChooser
-
dropColorChooser
javax.swing.JColorChooser dropColorChooser
-
localColorChooser
javax.swing.JColorChooser localColorChooser
-
missingCarColorChooser
javax.swing.JColorChooser missingCarColorChooser
-
enginePickupMessageList
java.util.List<javax.swing.JComboBox<java.lang.String>> enginePickupMessageList
-
engineDropMessageList
java.util.List<javax.swing.JComboBox<java.lang.String>> engineDropMessageList
-
carPickupMessageList
java.util.List<javax.swing.JComboBox<java.lang.String>> carPickupMessageList
-
carDropMessageList
java.util.List<javax.swing.JComboBox<java.lang.String>> carDropMessageList
-
localMessageList
java.util.List<javax.swing.JComboBox<java.lang.String>> localMessageList
-
switchListCarPickupMessageList
java.util.List<javax.swing.JComboBox<java.lang.String>> switchListCarPickupMessageList
-
switchListCarDropMessageList
java.util.List<javax.swing.JComboBox<java.lang.String>> switchListCarDropMessageList
-
switchListLocalMessageList
java.util.List<javax.swing.JComboBox<java.lang.String>> switchListLocalMessageList
-
pManifest
javax.swing.JPanel pManifest
-
pEngPickup
javax.swing.JPanel pEngPickup
-
pEngDrop
javax.swing.JPanel pEngDrop
-
pPickup
javax.swing.JPanel pPickup
-
pDrop
javax.swing.JPanel pDrop
-
pLocal
javax.swing.JPanel pLocal
-
pSwitchListOrientation
javax.swing.JPanel pSwitchListOrientation
-
pSwPickup
javax.swing.JPanel pSwPickup
-
pSwDrop
javax.swing.JPanel pSwDrop
-
pSwLocal
javax.swing.JPanel pSwLocal
-
fc
javax.swing.JFileChooser fc
We always use the same file chooser in this class, so that the user's last-accessed directory remains available.
-
-
Constructor Detail
-
PrintOptionPanel
public PrintOptionPanel()
-
-
Method Detail
-
buttonActionPerformed
public void buttonActionPerformed(java.awt.event.ActionEvent ae)
- Overrides:
buttonActionPerformed
in classOperationsPanel
-
checkBoxActionPerformed
public void checkBoxActionPerformed(java.awt.event.ActionEvent ae)
- Overrides:
checkBoxActionPerformed
in classOperationsPanel
-
comboBoxActionPerformed
public void comboBoxActionPerformed(java.awt.event.ActionEvent ae)
- Overrides:
comboBoxActionPerformed
in classOperationsPanel
-
getTabbedPreferencesTitle
public java.lang.String getTabbedPreferencesTitle()
Description copied from interface:PreferencesPanel
Get the title for the tab containing this preferences item.- Specified by:
getTabbedPreferencesTitle
in interfacePreferencesPanel
- Returns:
- a tab title
-
getPreferencesTooltip
public java.lang.String getPreferencesTooltip()
Description copied from interface:PreferencesPanel
The tooltip to display for a tabbed preferences panel- Specified by:
getPreferencesTooltip
in interfacePreferencesPanel
- Returns:
- tooltip text
-
savePreferences
public void savePreferences()
Description copied from interface:PreferencesPanel
Save any changes to preferences. This method is called for every instance of a PreferencesPanel that is loaded byTabbedPreferences
ifPreferencesPanel.isPersistant()
is false.- Specified by:
savePreferences
in interfacePreferencesPanel
-
isDirty
public boolean isDirty()
Description copied from interface:PreferencesPanel
Indicate that preferences need to be saved.- Specified by:
isDirty
in interfacePreferencesPanel
- Returns:
- true if preferences need to be saved, false otherwise
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
-