@Deprecated public abstract class ExportTool extends java.lang.Object implements REpiceaShowableUIWithParent, javax.swing.event.CaretListener, javax.swing.event.ListSelectionListener
setFilename(myFile);
setSelectedOptions(mySelectedOptions);
createRecordSets();
save();
Modifier and Type | Class and Description |
---|---|
static class |
ExportTool.FieldName
Deprecated.
The FieldName enum class defines the field names during the export.
|
static class |
ExportTool.InternalSwingWorkerForRecordSet
Deprecated.
The abstract InternalSwingWorkerForRecordSet class is derived from the AbstractGenericTask class.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
appendFileEnabled
Deprecated.
|
protected ExportToolDialog |
guiInterface
Deprecated.
|
protected boolean |
multipleSelection
Deprecated.
|
protected java.util.Map<java.lang.Enum,GRecordSet> |
recordSets
Deprecated.
|
protected java.util.Set<java.lang.Enum> |
selectedExportOptions
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
ExportTool()
Deprecated.
General constructor with multiple selection mode set to false.
|
protected |
ExportTool(boolean multipleSelection)
Deprecated.
General constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
caretUpdate(javax.swing.event.CaretEvent evt)
Deprecated.
|
void |
createRecordSets()
Deprecated.
This method creates the different record sets depending on the selected export options.
|
protected abstract java.util.List<java.lang.Enum> |
defineAvailableExportOptions()
Deprecated.
This method sets the available export options.
|
protected java.util.List<java.lang.Enum> |
getAvailableExportOptions()
Deprecated.
|
protected java.lang.String |
getFilename()
Deprecated.
|
protected java.util.Set<java.lang.Enum> |
getSelectedExportOptions()
Deprecated.
|
ExportToolDialog |
getUI(java.awt.Container parent)
Deprecated.
This method returns the GUI interface of the class that implements this interface.
|
protected abstract ExportTool.InternalSwingWorkerForRecordSet |
instantiateInternalSwingWorkerForRecordSet(java.lang.Enum selectedOption)
Deprecated.
This abstract method instantiates an InternalSwingWorkerForRecordSet-derived class, which is supposed to
handle the construction of the GRecordSet instance.
|
protected boolean |
isAppendFileEnabled()
Deprecated.
|
boolean |
isCanceled()
Deprecated.
|
boolean |
isVisible()
Deprecated.
This method returns true if the GUI is visible.
|
protected void |
removeExportOption(java.lang.Enum exportOption)
Deprecated.
This method makes it possible to remove one export option if desired.
|
void |
save()
Deprecated.
This method save the record set into a dbf file.
|
protected void |
save(java.io.File file,
java.lang.Enum exportOption)
Deprecated.
|
void |
setAppendFileEnabled(boolean appendFileEnabled)
Deprecated.
|
protected void |
setCanceled(boolean isCanceled)
Deprecated.
|
void |
setFilename(java.lang.String filename)
Deprecated.
This method sets the filename of the output file.
|
protected GRecordSet |
setRecordSet(java.lang.Enum selectedOption)
Deprecated.
This method instantiates a InternalSwingWorkerForRecordSet-derived class, which handles the construction
of the GRecordSet instance.
|
void |
setSelectedOption(java.lang.Enum selectedOption)
Deprecated.
|
void |
setSelectedOptions(java.util.Set<java.lang.Enum> selectedOptions)
Deprecated.
This method sets the export options.
|
void |
showUI(java.awt.Window parent)
Deprecated.
This method shows the GUI interface of the class that implements this interface.
|
void |
valueChanged(javax.swing.event.ListSelectionEvent arg0)
Deprecated.
|
protected java.util.Map<java.lang.Enum,GRecordSet> recordSets
protected java.util.Set<java.lang.Enum> selectedExportOptions
protected transient ExportToolDialog guiInterface
protected boolean multipleSelection
protected boolean appendFileEnabled
protected ExportTool(boolean multipleSelection)
multipleSelection
- true to enable the multiple selection list in the user interface.protected ExportTool()
protected abstract java.util.List<java.lang.Enum> defineAvailableExportOptions()
protected final GRecordSet setRecordSet(java.lang.Enum selectedOption) throws java.lang.Exception
selectedOption
- the selected optionjava.lang.Exception
- if the worker does not terminate correctlyprotected abstract ExportTool.InternalSwingWorkerForRecordSet instantiateInternalSwingWorkerForRecordSet(java.lang.Enum selectedOption)
selectedOption
- the seleced output formatprotected java.util.Set<java.lang.Enum> getSelectedExportOptions()
public void setSelectedOptions(java.util.Set<java.lang.Enum> selectedOptions) throws java.lang.Exception
selectedOptions
- a set of Enum variables that should be among the available export optionsjava.lang.Exception
@Deprecated public void setSelectedOption(java.lang.Enum selectedOption) throws java.lang.Exception
selectedOption
- an Enum variable that represents the selected optionjava.lang.Exception
protected void removeExportOption(java.lang.Enum exportOption)
exportOption
- an enum variable that corresponds to the export option to be removedprotected java.util.List<java.lang.Enum> getAvailableExportOptions()
protected boolean isAppendFileEnabled()
public void setAppendFileEnabled(boolean appendFileEnabled)
protected void setCanceled(boolean isCanceled)
public boolean isCanceled()
public void setFilename(java.lang.String filename)
filename
- a Stringjava.io.IOException
- if the file type is unknownprotected java.lang.String getFilename()
protected final void save(java.io.File file, java.lang.Enum exportOption) throws java.lang.Exception
java.lang.Exception
public void save() throws java.lang.Exception
java.lang.Exception
public ExportToolDialog getUI(java.awt.Container parent)
REpiceaUIObjectWithParent
getUI
in interface REpiceaUIObjectWithParent
parent
- a parent Container instance (can be null)public void showUI(java.awt.Window parent)
REpiceaShowableUIWithParent
showUI
in interface REpiceaShowableUIWithParent
parent
- the parent Window instance (can be null)public void caretUpdate(javax.swing.event.CaretEvent evt)
caretUpdate
in interface javax.swing.event.CaretListener
public void valueChanged(javax.swing.event.ListSelectionEvent arg0)
valueChanged
in interface javax.swing.event.ListSelectionListener
public void createRecordSets() throws java.lang.Exception
java.lang.Exception
public boolean isVisible()
REpiceaUIObjectWithParent
isVisible
in interface REpiceaUIObjectWithParent