DefaultTableModel tableModel = new DefaultTableModel();
tableModel.addColumn("Sequence");
tableModel.addColumn("PDB Id");
+ tableModel.addColumn("Chain");
tableModel.addColumn("Type");
tableModel.addColumn("File");
cachedEntryMap = new Hashtable<String, PDBEntry>();
{
for (PDBEntry pdbEntry : seq.getDatasetSequence().getPDBId())
{
+ String chain = pdbEntry.getChainCode() == null ? "_" : pdbEntry
+ .getChainCode();
String[] pdbEntryRowData = new String[]
- { seq.getDisplayId(false), pdbEntry.getId(), pdbEntry.getType(),
+ { seq.getDisplayId(false), pdbEntry.getId(),
+ chain,
+ pdbEntry.getType(),
pdbEntry.getFile() };
tableModel.addRow(pdbEntryRowData);
cachedEntryMap.put(seq.getDisplayId(false) + pdbEntry.getId(),
{
PDBEntry newEntry = new PDBEntry();
newEntry.setId(response.getPdbId());
- newEntry.setType("PDB");
+ newEntry.setType(PDBEntry.Type.PDB);
seq.getDatasetSequence().addPDBId(newEntry);
}
}
.toString();
PDBEntry pdbEntry = new PDBEntry();
pdbEntry.setId(pdbIdStr);
- pdbEntry.setType("PDB");
+ pdbEntry.setType(PDBEntry.Type.PDB);
pdbEntriesToView[count++] = pdbEntry;
}
}
PDBEntry pdbEntry = new PDBEntry();
pdbEntry.setId(txt_search.getText());
- pdbEntry.setType("PDB");
+ pdbEntry.setType(PDBEntry.Type.PDB);
selectedSequence.getDatasetSequence().addPDBId(pdbEntry);
PDBEntry[] pdbEntriesToView = new PDBEntry[]
{ pdbEntry };