Class TabbedSaveAction

java.lang.Object
javax.swing.AbstractAction
org.freedesktop.dbus.viewer.TabbedSaveAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, Iterable<TextFile>, EventListener, Action
Direct Known Subclasses:
SaveAllAction, SaveFileAction

abstract class TabbedSaveAction extends AbstractAction implements Iterable<TextFile>
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • chooser

      private static JFileChooser chooser
      File chooser component. Make static so that previous save location is stored
    • tabbedPane

      protected final JTabbedPane tabbedPane
  • Constructor Details

    • TabbedSaveAction

      protected TabbedSaveAction(JTabbedPane _tabbedPane)
    • TabbedSaveAction

      protected TabbedSaveAction(JTabbedPane _tabbedPane, String _name)
  • Method Details

    • 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 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(ActionEvent _event)
      Specified by:
      actionPerformed in interface ActionListener