Package org.freedesktop.dbus.viewer
Class TabbedSaveAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.freedesktop.dbus.viewer.TabbedSaveAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<TextFile>,java.util.EventListener,javax.swing.Action
- Direct Known Subclasses:
SaveAllAction,SaveFileAction
abstract class TabbedSaveAction extends javax.swing.AbstractAction implements java.lang.Iterable<TextFile>
-
-
Field Summary
Fields Modifier and Type Field Description private static javax.swing.JFileChooserchooserFile chooser component.private static longserialVersionUIDprotected javax.swing.JTabbedPanetabbedPane
-
Constructor Summary
Constructors Modifier Constructor Description protectedTabbedSaveAction(javax.swing.JTabbedPane _tabbedPane)protectedTabbedSaveAction(javax.swing.JTabbedPane _tabbedPane, java.lang.String _name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent _event)protected java.lang.StringgetFileName(int _index)Get the file name for the supplied indexprotected TextFilegetTextFile(int _index)Get the text file object associated with the supplied index-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
chooser
private static javax.swing.JFileChooser chooser
File chooser component. Make static so that previous save location is stored
-
tabbedPane
protected final javax.swing.JTabbedPane tabbedPane
-
-
Method Detail
-
getTextFile
protected TextFile getTextFile(int _index)
Get the text file object associated with the supplied index- Parameters:
_index- The tabbed pane index- Returns:
- The text file object for the referenced tab
-
getFileName
protected java.lang.String getFileName(int _index)
Get the file name for the supplied index- Parameters:
_index- The tabbed pane index- Returns:
- The file name for the referenced tab
-
actionPerformed
public final void actionPerformed(java.awt.event.ActionEvent _event)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
-