git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-1780 JAL-653 Format/AppletFormat import and export pipeline regularised, uses...
[jalview.git]
/
src
/
jalview
/
ws
/
uimodel
/
PDBRestResponse.java
diff --git
a/src/jalview/ws/uimodel/PDBRestResponse.java
b/src/jalview/ws/uimodel/PDBRestResponse.java
index
7f570a4
..
2814a46
100644
(file)
--- a/
src/jalview/ws/uimodel/PDBRestResponse.java
+++ b/
src/jalview/ws/uimodel/PDBRestResponse.java
@@
-91,8
+91,14
@@
public class PDBRestResponse
public static DefaultTableModel getTableModel(PDBRestRequest request,
Collection<PDBResponseSummary> summariesList)
{
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
if (request.getAssociatedSequence() != null)
{
tableModel.addColumn("Sequence"); // Create sequence column header if
@@
-109,6
+115,7
@@
public class PDBRestResponse
tableModel.addRow(res.getSummaryData()); // Populate table rows with
// summary list
}
tableModel.addRow(res.getSummaryData()); // Populate table rows with
// summary list
}
+
return tableModel;
}
return tableModel;
}
@@
-144,8
+151,7
@@
public class PDBRestResponse
String fieldData = (pdbJsonDoc.get(field.getCode()) == null) ? ""
: pdbJsonDoc
.get(field.getCode()).toString();
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;
{
this.pdbId = fieldData;
summaryRowData[colCounter++] = this.pdbId;