public class GContextFileManagement extends Object
| Constructor and Description |
|---|
GContextFileManagement(String dataCurrentDirectory,
String xmlName)
Constructor with no filter on the file names.
|
GContextFileManagement(String dataCurrentDirectory,
String xmlName,
GFileFilter filter)
Constructor with a filter on the file names.
|
| Modifier and Type | Method and Description |
|---|---|
String |
selectLoadFile(GComponent data,
boolean saveValue)
Method to load a context file.
|
String |
selectSaveFile(GComponent data,
boolean saveValue)
Method to save a context file.
|
public GContextFileManagement(String dataCurrentDirectory, String xmlName)
dataCurrentDirectory - initial directory to start the research.xmlName - XML tag of the data.public GContextFileManagement(String dataCurrentDirectory, String xmlName, GFileFilter filter)
dataCurrentDirectory - initial directory to start the research.xmlName - XML tag of the data.filter - filter (prefix and/or suffix) on the names of the files.public String selectLoadFile(GComponent data, boolean saveValue) throws GException
data - Data to load.saveValue - true if the saved values of the components being read from the file shall be updated, false
otherwise.GExceptionpublic String selectSaveFile(GComponent data, boolean saveValue) throws GFileManipulatorException
data - Data to be saved in the file.saveValue - true if the saved values of the components being written to the file shall be updated, false
otherwise.GFileManipulatorException - If a problem loading the configuration file arises.Copyright © 2024. All rights reserved.