public static DefaultTableModel getTableModel(PDBRestRequest request,
Collection<PDBResponseSummary> summariesList)
{
- DefaultTableModel tableModel = new DefaultTableModel();
-
+ DefaultTableModel tableModel = new DefaultTableModel()
+ {
+ @Override
+ public boolean isCellEditable(int row, int column)
+ {
+ return false;
+ }
+ };
if (request.getAssociatedSequence() != null)
{
tableModel.addColumn("Sequence"); // Create sequence column header if
tableModel.addRow(res.getSummaryData()); // Populate table rows with
// summary list
}
+
return tableModel;
}
.size() + 1 : diplayFields.size()];
if (associatedSeq != null)
{
- this.associatedSequence = (associatedSeq.length() > 18) ? associatedSeq
- .substring(0, 18) : associatedSeq;
+ this.associatedSequence = associatedSeq;
summaryRowData[0] = associatedSequence;
colCounter = 1;
}
String fieldData = (pdbJsonDoc.get(field.getCode()) == null) ? ""
: pdbJsonDoc
.get(field.getCode()).toString();
- if (field.equals(PDBDocField.PDB_ID)
- && pdbJsonDoc.get(PDBDocField.PDB_ID.getCode()) != null)
+ if (field.equals(PDBDocField.PDB_ID))
{
this.pdbId = fieldData;
summaryRowData[colCounter++] = this.pdbId;