org.freedesktop.dbus.viewer

Class TabbedSaveAction

abstract class TabbedSaveAction extends AbstractAction implements Iterable<TextFile>

Field Summary
protected JTabbedPanetabbedPane
Constructor Summary
protected TabbedSaveAction(JTabbedPane tabbedPane)
protected TabbedSaveAction(JTabbedPane tabbedPane, String name)
Method Summary
voidactionPerformed(ActionEvent e)
protected StringgetFileName(int index)
Get the file name for the supplied index
protected TextFilegetTextFile(int index)
Get the text file object associated with the supplied index

Field Detail

tabbedPane

protected final JTabbedPane tabbedPane

Constructor Detail

TabbedSaveAction

protected TabbedSaveAction(JTabbedPane tabbedPane)

TabbedSaveAction

protected TabbedSaveAction(JTabbedPane tabbedPane, String name)

Method Detail

actionPerformed

public final void actionPerformed(ActionEvent e)
{@inheritDoc }

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

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