Package jmri.jmrit.symbolicprog
Class PrintCvAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.symbolicprog.PrintCvAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class PrintCvAction extends javax.swing.AbstractAction
Action to print the information in the CV table.This uses the older style printing, for compatibility with Java 1.1.8 in Macintosh MRJ
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
isPreview
Variable to set whether this is to be printed or previewed(package private) PaneProgFrame
mFrame
Frame hosting the printing(package private) CvTableModel
mModel
(package private) RosterEntry
mRoster
(package private) int
TABLE_COLS
-
Constructor Summary
Constructors Constructor Description PrintCvAction(java.lang.String actionName, CvTableModel pModel, PaneProgFrame pParent, boolean preview, RosterEntry pRoster)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
static long
cvSortOrderVal(java.lang.String cvName)
Returns a representation of a CV name as a long integer sort order value.void
printInfoSection(HardcopyWriter w)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
TABLE_COLS
final int TABLE_COLS
- See Also:
- Constant Field Values
-
mFrame
PaneProgFrame mFrame
Frame hosting the printing
-
mModel
CvTableModel mModel
-
mRoster
RosterEntry mRoster
-
isPreview
boolean isPreview
Variable to set whether this is to be printed or previewed
-
-
Constructor Detail
-
PrintCvAction
public PrintCvAction(java.lang.String actionName, CvTableModel pModel, PaneProgFrame pParent, boolean preview, RosterEntry pRoster)
-
-
Method Detail
-
printInfoSection
public void printInfoSection(HardcopyWriter w)
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
cvSortOrderVal
public static long cvSortOrderVal(java.lang.String cvName)
Returns a representation of a CV name as a long integer sort order value.The value itself is not meaningful, but is used in comparisons when sorting.
- Parameters:
cvName
- cv name string to parse.- Returns:
- the sort order value.
-
-