Skip to content

Commit 8ba7785

Browse files
committed
incorporates j2sComboBox, j2sMenu, and J2sSlider into JQueryUI.java
1 parent 80a2799 commit 8ba7785

File tree

10 files changed

+2027
-19
lines changed

10 files changed

+2027
-19
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20240624194514
1+
20240627180429
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20240624194514
1+
20240627180429
51.2 KB
Binary file not shown.
0 Bytes
Binary file not shown.

sources/net.sf.j2s.java.core/src/swingjs/JSUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ static String processCSS(String css, String path) {
456456
return css;
457457
}
458458

459-
static String processJS(String js, String resourceName) {
459+
public static String processJS(String js, String resourceName) {
460460
try {
461461
/**
462462
* @j2sNative

sources/net.sf.j2s.java.core/src/swingjs/api/js/J2SInterface.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ void readyCallback(String appId, String fullId, boolean isReady,
8080

8181
JSFunction getCaller();
8282

83+
void __makeSlider();
84+
85+
void __makeMenu();
86+
87+
void __makeComboBox();
88+
8389

8490
}
8591

sources/net.sf.j2s.java.core/src/swingjs/jquery/JQueryUI.java

Lines changed: 1995 additions & 10 deletions
Large diffs are not rendered by default.

sources/net.sf.j2s.java.core/src/swingjs/jquery/j2sComboBox.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
/**
2+
* THIS FILE IS FOR REFERENCE AND DEBUGGING ONLY
3+
*
4+
* NOTE: If you change this file, copy its contents into
5+
* its spot at the end of JQueryUI.java. Or, if you are testing
6+
* work here and set JQueryUI.loadResourceInternal = false only while testing,
7+
* then do that paste.
28
*
39
* @author Bob Hanson 2019.07.06
410
*
@@ -10,8 +16,6 @@
1016

1117
// BH 2023.11.02 fixed touch issue not causing click -- hidePopup needed a 1-ms timeout
1218

13-
// NOTE: If you change this file, then you need to touch and save JQueryUI.java, as only then
14-
// will the transpiler copy this file to site/swingjs/j2s/swingjs/jquery/
1519

1620
;(function($) {
1721

sources/net.sf.j2s.java.core/src/swingjs/jquery/j2sMenu.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
/**
2+
* NOTE: If you change this file, copy its contents into
3+
* its spot at the end of JQueryUI.java. Or, if you are testing
4+
* work here and set JQueryUI.loadResourceInternal = false only while testing,
5+
* then do that paste.
6+
*
7+
8+
*/
9+
110
// BH 2023.06.06 no-move menu actuation; adds cursor:pointer to ui-j2s-menu to enable click; adds pointerdown/up;
211
// see https://stackoverflow.com/questions/3025348/how-do-i-use-jquery-for-click-event-in-iphone-web-application/4910962#4910962
312
// based on jQuery UI - v1.9.2 - 2012-12-17
4-
// NOTE: If you change this file, then you need to touch and save JQueryUI.java, as only then
5-
// will the transpiler copy this file to site/swingjs/j2s/swingjs/jquery/
613

714
;(function(Swing, $) {
815

sources/net.sf.j2s.java.core/src/swingjs/jquery/j2sSlider.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
/**
2+
* NOTE: If you change this file, copy its contents into
3+
* its spot at the end of JQueryUI.java. Or, if you are testing
4+
* work here and set JQueryUI.loadResourceInternal = false only while testing,
5+
* then do that paste.
6+
*
7+
*/
8+
19
// based on jQuery UI - v1.9.2 - 2015-05-28
210

3-
//NOTE: If you change this file, then you need to touch and save JQueryUI.java, as only then
4-
//will the transpiler copy this file to site/swingjs/j2s/swingjs/jquery/
511

612
;(function($) {
713

0 commit comments

Comments
 (0)