Skip to content

Commit a8c7d60

Browse files
committed
new swingjs2.js and core files in SwingJS-site.zip
1 parent ed02856 commit a8c7d60

File tree

3 files changed

+39
-5
lines changed

3 files changed

+39
-5
lines changed
2.87 MB
Binary file not shown.

sources/net.sf.j2s.java.core/build_core_applet.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,22 @@
280280
${javaCoreAppletFiles}
281281
" />
282282
</antcall>
283+
284+
<echo>creating swingjs2.js</echo>
285+
<concat destfile="srcjs/swingjs2.js">
286+
<filelist dir="srcjs/js" files="jquery.js,j2sJQueryExt.js,j2sApplet.js,j2sClazz.js,SwingJSApplet.js" />
287+
</concat>
288+
289+
<echo>copying srcjs files into site</echo>
290+
<copy todir="site/swingjs/js">
291+
<fileset dir="srcjs"/>
292+
</copy>
293+
294+
<echo>TODO: Could delete demo html files? </echo>
295+
296+
<echo>creating SwingJS-site.zip </echo>
297+
<zip destfile="SwingJS-site.zip" basedir="site" />
298+
283299
</target>
284300

285301

sources/net.sf.j2s.java.core/srcjs/swingjs2.js

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10652,7 +10652,7 @@ return jQuery;
1065210652
};
1065310653
};
1065410654
})(jQuery,document,"click mousemove mouseup touchmove touchend", "outjsmol");
10655-
// j2sApplet.js (based on JmolCore.js)
10655+
// j2sCore.js (based on JmolCore.js)
1065610656

1065710657
// BH 1/8/2018 10:27:46 PM SwingJS2
1065810658
// BH 12/22/2017 1:18:42 PM adds j2sargs for setting arguments
@@ -13071,6 +13071,9 @@ J2S._getResourcePath = function(path, isJavaPath) {
1307113071

1307213072
// Google closure compiler cannot handle Clazz.new or Clazz.super
1307313073

13074+
13075+
// BH 2/13/2018 6:24:44 AM adds String.copyValueOf (two forms)
13076+
// BH 2/7/2018 7:47:07 PM adds System.out.flush and System.err.flush
1307413077
// BH 2/1/2018 12:14:20 AM fix for new int[128][] not nulls
1307513078
// BH 1/9/2018 8:40:52 AM fully running SwingJS2; adds String.isEmpty()
1307613079
// BH 12/16/2017 5:53:47 PM refactored; removed older unused parts
@@ -15575,7 +15578,10 @@ java.lang.System = System = {
1557515578
currentTimeMillis : function () {
1557615579
return new Date ().getTime ();
1557715580
},
15578-
exit : function() { swingjs.JSToolkit && swingjs.JSToolkit.exit() },
15581+
exit : function() {
15582+
debugger
15583+
swingjs.JSToolkit && swingjs.JSToolkit.exit()
15584+
},
1557915585
gc : function() {}, // bh
1558015586
getProperties : function () {
1558115587
return System.props;
@@ -15648,6 +15654,8 @@ Sys.out.printf = Sys.out.printf$S$OA = Sys.out.format = Sys.out.format$S$OA = fu
1564815654

1564915655
Sys.out.println = Sys.out.println$O = Sys.out.println$Z = Sys.out.println$I = Sys.out.println$S = Sys.out.println$C = Sys.out.println = function(s) {
1565015656

15657+
Sys.out.flush = function() {}
15658+
1565115659
if (("" + s).indexOf("TypeError") >= 0) {
1565215660
debugger;
1565315661
}
@@ -15690,6 +15698,8 @@ Sys.err.write = function (buf, offset, len) {
1569015698
Sys.err.print(String.instantialize(buf).substring(offset, offset+len));
1569115699
};
1569215700

15701+
Sys.err.flush = function() {}
15702+
1569315703
})(Clazz.Console, System);
1569415704

1569515705

@@ -16693,8 +16703,6 @@ return Clazz.array(Byte.TYPE, -1, arrs);
1669316703
sp.contains$S = function(a) {return this.indexOf(a) >= 0} // bh added
1669416704
sp.compareTo$S = sp.compareTo$TT = function(a){return this > a ? 1 : this < a ? -1 : 0} // bh added
1669516705

16696-
16697-
1669816706
sp.toCharArray=function(){
1669916707
var result=new Array(this.length);
1670016708
for(var i=0;i<this.length;i++){
@@ -16960,6 +16968,16 @@ default:
1696016968

1696116969
})(Clazz._Encoding);
1696216970

16971+
String.copyValueOf$CA$I$I = function(data,offset,count) {
16972+
var s = "";
16973+
for (var pt = offset, n = offset+count;pt < n;pt++)s += data[pt];
16974+
return s;
16975+
}
16976+
String.copyValueOf$CA = function(data) {
16977+
return sp.copyValueOf$CA$I$I(data, 0, data.length);
16978+
}
16979+
16980+
1696316981
C$=Clazz.newClass(java.lang,"Character",function(){
1696416982
if (typeof arguments[0] != "object")this.c$(arguments[0]);
1696516983
},null,[java.io.Serializable,Comparable]);
@@ -18053,7 +18071,7 @@ Clazz.cloneFinals = function () {
1805318071
return o;
1805418072
};
1805518073
*/
18056-
// SJSApplet.js
18074+
// SwingJSApplet.js
1805718075

1805818076
// generic SwingJS Applet
1805918077

0 commit comments

Comments
 (0)