git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
914dfa0
)
JAL-3380 allows JalviewJS to get embedded div attributes
author
hansonr
<hansonr@STO24954W.ad.stolaf.edu>
Mon, 29 Jul 2019 08:34:57 +0000
(10:34 +0200)
committer
hansonr
<hansonr@STO24954W.ad.stolaf.edu>
Mon, 29 Jul 2019 08:34:57 +0000
(10:34 +0200)
src/jalview/util/Platform.java
patch
|
blob
|
history
diff --git
a/src/jalview/util/Platform.java
b/src/jalview/util/Platform.java
index
e53d2a9
..
aaadbb9
100644
(file)
--- a/
src/jalview/util/Platform.java
+++ b/
src/jalview/util/Platform.java
@@
-832,4
+832,25
@@
public class Platform
*/
}
+ public final static String EMBEDDED_DIM = "dim";
+
+ /**
+ *
+ * If this frame Is this frame embedded in a web page, return a known type.
+ *
+ * @param frame
+ * a JFrame or JInternalFrame
+ * @param type
+ * @return null if frame is not embedded.
+ */
+ public static Object getEmbeddedAttribute(Object frame, String type)
+ {
+ if (!isJS())
+ {
+ return null;
+ }
+ return (/** swingjs@j2sNative || frame.ui.getEmbedded(type) */
+ null);
+ }
+
}