Package jmri.jmrit.roster
Class PrintListAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.util.swing.JmriAbstractAction
-
- jmri.jmrit.roster.PrintListAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class PrintListAction extends JmriAbstractAction
Action to print a very compact summary listing of the Roster contents.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) java.awt.Frame
mFrame
Frame hosting the printing.-
Fields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wi
-
-
Constructor Summary
Constructors Constructor Description PrintListAction(java.lang.String actionName, java.awt.Frame frame, boolean preview)
PrintListAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
PrintListAction(java.lang.String s, WindowInterface wi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
JmriPanel
makePanel()
void
setParameter(java.lang.String parameter, java.lang.String value)
void
setPreview(boolean preview)
-
Methods inherited from class jmri.util.swing.JmriAbstractAction
dispose, setContext, setHint, setName, setParameter, setWindowInterface, toString
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
PrintListAction
public PrintListAction(java.lang.String s, WindowInterface wi)
-
PrintListAction
public PrintListAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
-
PrintListAction
public PrintListAction(java.lang.String actionName, java.awt.Frame frame, boolean preview)
-
-
Method Detail
-
setPreview
public void setPreview(boolean preview)
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Overrides:
actionPerformed
in classJmriAbstractAction
-
makePanel
public JmriPanel makePanel()
- Specified by:
makePanel
in classJmriAbstractAction
-
setParameter
public void setParameter(java.lang.String parameter, java.lang.String value)
- Overrides:
setParameter
in classJmriAbstractAction
-
-