

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>() |
The file chooser for saving, supporting compression
| alma::acs::logging::io::SaveFileChooser::SaveFileChooser | ( | String | title, | |
| File | currentDir | |||
| ) | [inline] |
Constructor
| title | The title of the dialog | |
| currentDirectoryPath | The path of the current folder |
References initialize().
| void alma::acs::logging::io::SaveFileChooser::actionPerformed | ( | ActionEvent | e | ) | [inline] |
Reimplemented from alma::acs::logging::io::LogsFileChooser.
References compressCB, and compressionLevelS.
| int alma::acs::logging::io::SaveFileChooser::getCompressionLevel | ( | ) | [inline] |
References compressionLevelS.
Referenced by alma::acs::logging::table::LogTableDataModel::saveFile().
| void alma::acs::logging::io::SaveFileChooser::initialize | ( | File | folder | ) | [inline, private] |
Init the GUI
| 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] |
true if the file must be compressed References compressCB.
Referenced by alma::acs::logging::table::LogTableDataModel::saveFile().
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().
JSlider alma::acs::logging::io::SaveFileChooser::compressionLevelS = new JSlider(JSlider.HORIZONTAL,0,9,IOHelper.DEFAULT_COMPRESSION_LEVEL) [private] |
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().
1.6.2