Class SetupSave
java.lang.Object
|
+--SetupSave
- public class SetupSave
- extends java.lang.Object
Field Summary |
(package private) java.io.File |
file
|
Constructor Summary |
SetupSave()
Default Constructor. |
Method Summary |
protected void |
read_file(java.io.File file,
ControllerConfigDialog controller_config_dialog)
Loads the component settings, previously stored in the specified
text file, into the Controller Configuration Setup Window. |
protected void |
read_file(java.io.File file,
SetupDialog setup_dialog,
HardwareTestDialog hardware_test_dialog)
Loads the component settings, previously stored in the specified
text file, into the Controller Setup Window. |
void |
read_from_file(java.awt.Component parent_component,
SetupDialog setup_dialog,
HardwareTestDialog hardware_test_dialog)
Loads the component settings, previously stored in the specified
text file, into the Controller Setup Window. |
protected void |
write_file(ControllerConfigDialog controller_config_dialog,
java.io.RandomAccessFile outFile)
Saves the current component settings in the Controller Configuration
Window to the specified text file. |
void |
write_to_file(java.awt.Component parent_component,
SetupDialog setup_dialog,
HardwareTestDialog hardware_test_dialog)
Saves the current component settings in the Controller Setup Window
to the specified text file. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
file
java.io.File file
SetupSave
public SetupSave()
- Default Constructor.
write_to_file
public void write_to_file(java.awt.Component parent_component,
SetupDialog setup_dialog,
HardwareTestDialog hardware_test_dialog)
throws java.io.IOException
- Saves the current component settings in the Controller Setup Window
to the specified text file. The file is specified via a popup
JFileChooser dialog.
- Parameters:
parent_component
- The container that holds the Controller Setup
Window components (i.e. content pane, panel, etc).setup_dialog
- The Controller Setup window.hardware_test_dialog
- The Hardware Test Options window.- Throws:
- java.io.IOException -
- See Also:
SetupDialog
write_file
protected void write_file(ControllerConfigDialog controller_config_dialog,
java.io.RandomAccessFile outFile)
throws java.io.IOException
- Saves the current component settings in the Controller Configuration
Window to the specified text file.
- Parameters:
controller_config_dialog
- The Controller Configuration Setup window.file
- The setup file to write to.- Throws:
- java.io.IOException -
read_from_file
public void read_from_file(java.awt.Component parent_component,
SetupDialog setup_dialog,
HardwareTestDialog hardware_test_dialog)
throws java.io.IOException
- Loads the component settings, previously stored in the specified
text file, into the Controller Setup Window. The file is specified
via a popup JFileChooser dialog. Calls the read_file() method.
- Parameters:
parent_component
- The container that holds the Controller Setup
Window components (i.e. content pane, panel, etc).setup_dialog
- The Controller Setup window.hardware_test_dialog
- The Hardware Test Options window.- Throws:
- java.io.IOException -
- See Also:
read_file()
,
SetupDialog
read_file
protected void read_file(java.io.File file,
SetupDialog setup_dialog,
HardwareTestDialog hardware_test_dialog)
throws java.io.IOException
- Loads the component settings, previously stored in the specified
text file, into the Controller Setup Window.
- Parameters:
file
- The file that contains the saved settings.setup_dialog
- The Controller Setup window.hardware_test_dialog
- The Hardware Test Options window.- Throws:
- java.io.IOException -
- See Also:
read_from_file()
,
SetupDialog
read_file
protected void read_file(java.io.File file,
ControllerConfigDialog controller_config_dialog)
throws java.io.IOException
- Loads the component settings, previously stored in the specified
text file, into the Controller Configuration Setup Window.
- Parameters:
controller_config_dialog
- The Controller Configuration Setup window.file
- The file that contains the saved settings.- Throws:
- java.io.IOException -
- See Also:
read_from_file()
,
SetupDialog