Methods Summary |
---|
public java.util.Enumeration | familyList()
return familyDM.list();
|
public java.util.Hashtable | getFamilies()
return familyDM.getRecords();
|
public java.util.Hashtable | getIndividuals()
return individualDM.getRecords();
|
public java.util.Enumeration | individualList()
return individualDM.list();
|
public void | readData(java.lang.String filename)
fileType = new FlatFile();
fileType.setTarget(target);
target.textArea.setText("Parsing " + filename);
fileType.readData(filename);
familyDM.setData(fileType.getFamily());
individualDM.setData(fileType.getIndividual());
target.textArea.setText(target.textArea.getText() + "\nFinished parsing file....");
|
public void | saveData(java.lang.String file)
try {
BufferedWriter out = new BufferedWriter(new FileWriter(file));
target.textArea.setText("Saving as " + file);
Enumeration list = getIndividuals().keys();
while(list.hasMoreElements()) {
out.write(((Individual)individualDM.getRecord(list.nextElement())).toString("0"));
out.write("1 _BLOB\n");
}
list = getFamilies().keys();
while(list.hasMoreElements()) {
out.write(((Family)familyDM.getRecord(list.nextElement())).toString("0"));
}
out.write("0 TRLR");
out.close();
target.textArea.setText(target.textArea.getText() + "\nFinished saving file....");
}
catch(FileNotFoundException ex) {}
catch(IOException exe) {}
|
public void | setTarget(java.awt.Frame frame)
target = (HumanInterface.FamilyFrame)frame;
|
public void | setUpRecords(java.util.Hashtable families, java.util.Hashtable individuals)
familyDM.setData(families);
individualDM.setData(individuals);
|
public void | writeFamily(Family record)
|
public void | writeIndividual(Individual record)
|