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) static intTABLE_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 voidactionPerformed(java.awt.event.ActionEvent e)static longcvSortOrderVal(java.lang.String cvName)Returns a representation of a CV name as a long integer sort order value.voidprintInfoSection(HardcopyWriter w)-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
TABLE_COLS
static final int TABLE_COLS
- See Also:
- Constant Field Values
-
-
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.
-
-