alma::acs::logging::io::LogsFileChooser Class Reference

Inheritance diagram for alma::acs::logging::io::LogsFileChooser:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::io::LogsFileChooser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LogsFileChooser (String title, File currentDir, boolean load)
File getSelectedFile ()
File getCurrentDirectory ()
void actionPerformed (ActionEvent e)

Protected Attributes

JFileChooser fileChooser

Private Attributes

File selectedFile = null

Detailed Description

Base class for the file chooser dialogs to load and save logs

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::logging::io::LogsFileChooser::LogsFileChooser ( String  title,
File  currentDir,
boolean  load 
) [inline]

Constructor

Parameters:
title The tile of the dialog
currentDir The dir whose content is shown at startup
load true if the file chooser is used to load, false otherwise

References fileChooser.


Member Function Documentation

void alma::acs::logging::io::LogsFileChooser::actionPerformed ( ActionEvent  e  )  [inline]
See also:
java.awt.event.ActionListener::actionPerformed(java.awt.event.ActionEvent)

Reimplemented in alma::acs::logging::io::LoadFileChooser, and alma::acs::logging::io::SaveFileChooser.

References fileChooser, and selectedFile.

File alma::acs::logging::io::LogsFileChooser::getCurrentDirectory (  )  [inline]
File alma::acs::logging::io::LogsFileChooser::getSelectedFile (  )  [inline]

Return the file selected by the user.

Returns:
the file selected by the user or null if the user cancelled

References selectedFile.

Referenced by alma::acs::logging::table::LogTableDataModel::loadFromFile(), and alma::acs::logging::table::LogTableDataModel::saveFile().


Member Data Documentation

The file selected by the user

Referenced by actionPerformed(), and getSelectedFile().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2