Abstract classes and tools allowing to manage Input/Output on ASCII input catalogs.
The kind of catalog managed are:
- RDB (tab separated Column)
- CSV (comma separated Value)
This package provides:
- a GUI for display the content of the input Catalog (TargetSelectionToolFrame.java)
- a Name Translator class allowing to translate symbolic name to column name (NameTranslator.java)
- a Dialog Frame allowing to manage the Name translator (NameTranslatorEditorDialog.java)
- a RDB, CSV, catalog management classes (RdbFile.java RdbFileSymbolic.java)
It allows the development of a tool fetching data in such files.
The programmer must provided an EnumColumnNames.java for the column definitions and must extends the following class
- AbstractCatalogManagement.java (interaction with the Target Selection Tool Frame)
- AbstractNameTranslationEditorMap.java (definition of the Name Translation Editor)
Features:
- use of symbolic name described in the EnumColumnNames.java.
By this way the code tool access column by symbolicName ant not by columnName,
in others terms make the code independent from the naming convention of the catalog makers.
- classes for the management of the name translation map
- tool for the management of the translation map (JPanel and JDialog).
The tool display a subset of the column available, that means the access to catalog data is never done on the GUI,
but always on the input file. The GUI show the table, allows sorting
- GUI with different mode of selection, and interaction with the main application
Usage (shortcuts) (example with PRIMA-Apes and SPHERE-Ops):
- create the package ioUser (for example)
- create ioUser/EnumColumnNames.java according your specification
- choose the group mode and the selection mode see ioSwing/AbstractCatalogManagement.java
- create ioUser/CatalogManagement.java extending ioSwing/AbstractCatalogManagement.java