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
house keeping
[jalview.git]
/
src
/
jalview
/
ws
/
uimodel
/
PDBSummaryListModel.java
diff --git
a/src/jalview/ws/uimodel/PDBSummaryListModel.java
b/src/jalview/ws/uimodel/PDBSummaryListModel.java
index
ef93aed
..
37c0855
100644
(file)
--- a/
src/jalview/ws/uimodel/PDBSummaryListModel.java
+++ b/
src/jalview/ws/uimodel/PDBSummaryListModel.java
@@
-13,16
+13,14
@@
public class PDBSummaryListModel extends DefaultListModel
private String summary;
private String summary;
+ private JSONObject rawJson;
+
private int width = 480;
private int width = 480;
- public PDBSummaryListModel(String pdbId, String summary)
- {
- this.pdbId = pdbId;
- this.summary = summary;
- }
public PDBSummaryListModel(JSONObject doc)
{
public PDBSummaryListModel(JSONObject doc)
{
+ this.rawJson = doc;
StringBuilder summary = new StringBuilder();
if (doc.get("molecule_type") != null)
{
StringBuilder summary = new StringBuilder();
if (doc.get("molecule_type") != null)
{
@@
-95,6
+93,16
@@
public class PDBSummaryListModel extends DefaultListModel
this.summary = summary;
}
this.summary = summary;
}
+ public JSONObject getRawJson()
+ {
+ return rawJson;
+ }
+
+ public void setRawJson(JSONObject rawJson)
+ {
+ this.rawJson = rawJson;
+ }
+
public String toString()
{
StringBuilder html = new StringBuilder();
public String toString()
{
StringBuilder html = new StringBuilder();
@@
-104,5
+112,4
@@
public class PDBSummaryListModel extends DefaultListModel
html.append("</div></html>");
return html.toString();
}
html.append("</div></html>");
return html.toString();
}
-
}
}