alma::acs::logging::io::SaveFileChooser Class Reference

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

List of all members.

Public Member Functions

 SaveFileChooser (String title, File currentDir)
void actionPerformed (ActionEvent e)
boolean mustBeCompressed ()
int getCompressionLevel ()

Private Member Functions

void initialize (File folder)

Private Attributes

JCheckBox compressCB = new JCheckBox("Compress",false)
JSlider compressionLevelS = new JSlider(JSlider.HORIZONTAL,0,9,IOHelper.DEFAULT_COMPRESSION_LEVEL)
Dictionary< Integer, JLabel > labels = new Hashtable<Integer, JLabel>()

Detailed Description

The file chooser for saving, supporting compression

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::logging::io::SaveFileChooser::SaveFileChooser ( String  title,
File  currentDir 
) [inline]

Constructor

Parameters:
title The title of the dialog
currentDirectoryPath The path of the current folder

References initialize().


Member Function Documentation

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

Reimplemented from alma::acs::logging::io::LogsFileChooser.

References compressCB, and compressionLevelS.

int alma::acs::logging::io::SaveFileChooser::getCompressionLevel (  )  [inline]
Returns:
The compression level

References compressionLevelS.

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

void alma::acs::logging::io::SaveFileChooser::initialize ( File  folder  )  [inline, private]

Init the GUI

Parameters:
folderPath The path of the current directory

References compressCB, compressionLevelS, alma::acs::logging::io::LogsFileChooser::fileChooser, and labels.

Referenced by SaveFileChooser().

boolean alma::acs::logging::io::SaveFileChooser::mustBeCompressed (  )  [inline]
Returns:
true if the file must be compressed

References compressCB.

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


Member Data Documentation

JCheckBox alma::acs::logging::io::SaveFileChooser::compressCB = new JCheckBox("Compress",false) [private]

The check box to enable the compression

Referenced by actionPerformed(), initialize(), and mustBeCompressed().

The slider to set compression level

Referenced by actionPerformed(), getCompressionLevel(), and initialize().

Dictionary<Integer, JLabel> alma::acs::logging::io::SaveFileChooser::labels = new Hashtable<Integer, JLabel>() [private]

The labels shown in the slider

Referenced by initialize().


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

Generated by  doxygen 1.6.2