From: hansonr Date: Sun, 24 Mar 2019 10:57:05 +0000 (-0500) Subject: JalviewJS embeddable AlignFrame; specifiable application properties X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a0fdb8f3407a880a7e69b71648464d80daefe83b;p=jalview.git JalviewJS embeddable AlignFrame; specifiable application properties --- diff --git a/site-resources/jalview_bin_JalviewJS_embedded.html b/site-resources/jalview_bin_JalviewJS_embedded.html new file mode 100644 index 0000000..6650720 --- /dev/null +++ b/site-resources/jalview_bin_JalviewJS_embedded.html @@ -0,0 +1,45 @@ + + + +SwingJS test JalviewJS2 + + + + +
+The alignment frame will appear here momentarily... +
+ + + + + +
+
+This is System.out. clear it
Add ?j2snocore to URL to see full class list; ?j2sdebug to use uncompressed j2s/core files
get _j2sClassList.txt +
+ + diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 395fd98..ab779a1 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -280,7 +280,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, public AlignFrame(AlignmentI al, HiddenColumns hiddenColumns, int width, int height, String sequenceSetId, String viewId) { - setSize(width, height); + setSize(width, height); // embedding div can override this width and height if desired if (al.getDataset() == null) { diff --git a/src/jalview/jbgui/GAlignFrame.java b/src/jalview/jbgui/GAlignFrame.java index 2e6aab8..ac2a25c 100755 --- a/src/jalview/jbgui/GAlignFrame.java +++ b/src/jalview/jbgui/GAlignFrame.java @@ -211,6 +211,7 @@ public class GAlignFrame extends JInternalFrame { try { + setName("align-frame"); // for embedding using id= (getName() + "-div") (frame position will be ignored) jbInit(); setJMenuBar(alignFrameMenuBar);