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