Package mars.venus.actions.file
Class FilePrintAction
java.lang.Object
javax.swing.AbstractAction
mars.venus.actions.VenusAction
mars.venus.actions.file.FilePrintAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Action for the File -> Print menu item.
- See Also:
-
Field Summary
Fields inherited from class mars.venus.actions.VenusAction
gui, shortcutFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Uses theHardcopyWriterclass developed by David Flanagan for the book "Java Examples in a Nutshell".voidupdate()Update this action according to the current GUI state.Methods inherited from class mars.venus.actions.VenusAction
getGUI, getName, getShortcut, registerShortcutMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
FilePrintAction
-
-
Method Details
-
actionPerformed
Uses theHardcopyWriterclass developed by David Flanagan for the book "Java Examples in a Nutshell". It will do basic printing of multi-page text documents. It displays a print dialog but does not act on any changes the user may have specified there, such as number of copies.- Specified by:
actionPerformedin interfaceActionListener- Specified by:
actionPerformedin classVenusAction- Parameters:
event- The action event.
-
update
public void update()Description copied from class:VenusActionUpdate this action according to the current GUI state.- Overrides:
updatein classVenusAction
-