diff options
author | Manolo Carrasco <manolo@apache.org> | 2012-03-17 20:39:27 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2012-03-17 20:39:27 +0000 |
commit | c8468e91ffa2c0ef2734b9c01f660c92b6370266 (patch) | |
tree | fac40f152877bf737d303bc834b424122d2e14d5 /jsquery | |
parent | 9884b3fdfacd81a9da581e24883be9c455dbc381 (diff) | |
download | gwtquery-c8468e91ffa2c0ef2734b9c01f660c92b6370266.tar.gz gwtquery-c8468e91ffa2c0ef2734b9c01f660c92b6370266.zip |
move the example plugin to the plugins namespace
Diffstat (limited to 'jsquery')
-rw-r--r-- | jsquery/src/main/java/gwtquery/jsquery/client/JsQuery.java | 22 | ||||
-rw-r--r-- | jsquery/src/main/java/gwtquery/jsquery/client/plugins/menu/JsMenu.java (renamed from jsquery/src/main/java/gwtquery/jsquery/client/JsMenu.java) | 2 | ||||
-rw-r--r-- | jsquery/src/main/java/gwtquery/jsquery/client/plugins/menu/jsmenu.diff (renamed from jsquery/src/main/java/gwtquery/jsquery/client/jsmenu.diff) | 0 | ||||
-rw-r--r-- | jsquery/src/main/java/gwtquery/jsquery/public/JsQuery.html | 2 | ||||
-rw-r--r-- | jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/arrow_right.gif (renamed from jsquery/src/main/java/gwtquery/jsquery/public/arrow_right.gif) | bin | 55 -> 55 bytes | |||
-rw-r--r-- | jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/arrowdown.png (renamed from jsquery/src/main/java/gwtquery/jsquery/public/arrowdown.png) | bin | 661 -> 661 bytes | |||
-rw-r--r-- | jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/demo.html (renamed from jsquery/src/main/java/gwtquery/jsquery/public/demo.html) | 2 | ||||
-rw-r--r-- | jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/myshadow.png (renamed from jsquery/src/main/java/gwtquery/jsquery/public/myshadow.png) | bin | 5741 -> 5741 bytes | |||
-rw-r--r-- | jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/style.css (renamed from jsquery/src/main/java/gwtquery/jsquery/public/style.css) | 0 | ||||
-rw-r--r-- | jsquery/src/main/webapp/index.html | 1 |
10 files changed, 12 insertions, 17 deletions
diff --git a/jsquery/src/main/java/gwtquery/jsquery/client/JsQuery.java b/jsquery/src/main/java/gwtquery/jsquery/client/JsQuery.java index d18a5d8c..f5f2b386 100644 --- a/jsquery/src/main/java/gwtquery/jsquery/client/JsQuery.java +++ b/jsquery/src/main/java/gwtquery/jsquery/client/JsQuery.java @@ -1,5 +1,7 @@ package gwtquery.jsquery.client; +import gwtquery.jsquery.client.plugins.menu.JsMenu; + import java.util.logging.Logger; import com.google.gwt.core.client.EntryPoint; @@ -26,22 +28,14 @@ public class JsQuery implements EntryPoint { // testJs(); } + /** + * Useful to paste js code here and test in dev mode + */ private native static void testJs() /*-{ var l = @gwtquery.jsquery.client.utils.JsQueryUtils::log(Ljava/lang/Object;); + window = $wnd; + document = $doc; + $ = $wnd.$; - var options = {minWidth: 120, arrowSrc: 'arrow_right.gif', copyClassAttr: true, onClick: function(e, menuItem){ - alert('you clicked item "' + $(this).text() + '"'); - }}; - $('#menuone').menu(options); - - var items = [ {src: 'test', url:'http://www.jquery.com'}, - {src: ''}, // separator - {src: 'test2', subMenu: [ {src: 'sub 1'}, - {src: 'sub 2', url: 'http://p.sohei.org', target: '_blank'}, - {src: 'sub 3'}]}]; - $('#menutwo').menu(options, items); - - }-*/; - } diff --git a/jsquery/src/main/java/gwtquery/jsquery/client/JsMenu.java b/jsquery/src/main/java/gwtquery/jsquery/client/plugins/menu/JsMenu.java index 3c73eef9..28ce5699 100644 --- a/jsquery/src/main/java/gwtquery/jsquery/client/JsMenu.java +++ b/jsquery/src/main/java/gwtquery/jsquery/client/plugins/menu/JsMenu.java @@ -1,4 +1,4 @@ -package gwtquery.jsquery.client; +package gwtquery.jsquery.client.plugins.menu; /** * diff --git a/jsquery/src/main/java/gwtquery/jsquery/client/jsmenu.diff b/jsquery/src/main/java/gwtquery/jsquery/client/plugins/menu/jsmenu.diff index a9ac0d20..a9ac0d20 100644 --- a/jsquery/src/main/java/gwtquery/jsquery/client/jsmenu.diff +++ b/jsquery/src/main/java/gwtquery/jsquery/client/plugins/menu/jsmenu.diff diff --git a/jsquery/src/main/java/gwtquery/jsquery/public/JsQuery.html b/jsquery/src/main/java/gwtquery/jsquery/public/JsQuery.html index 2006d2e7..de1c3800 100644 --- a/jsquery/src/main/java/gwtquery/jsquery/public/JsQuery.html +++ b/jsquery/src/main/java/gwtquery/jsquery/public/JsQuery.html @@ -9,7 +9,7 @@ <script> onJsQueryLoad = function(){ $('#hello').show().attr("width", true); - alert($('#hello').text()); + $('#hello').fadeOut(1000).queue(2000).text("Hello word").fadeIn(); } if (window.$) { $(document).ready(onJsQueryLoad); diff --git a/jsquery/src/main/java/gwtquery/jsquery/public/arrow_right.gif b/jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/arrow_right.gif Binary files differindex 610344d7..610344d7 100644 --- a/jsquery/src/main/java/gwtquery/jsquery/public/arrow_right.gif +++ b/jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/arrow_right.gif diff --git a/jsquery/src/main/java/gwtquery/jsquery/public/arrowdown.png b/jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/arrowdown.png Binary files differindex 637c8d94..637c8d94 100644 --- a/jsquery/src/main/java/gwtquery/jsquery/public/arrowdown.png +++ b/jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/arrowdown.png diff --git a/jsquery/src/main/java/gwtquery/jsquery/public/demo.html b/jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/demo.html index 4168afe8..da242157 100644 --- a/jsquery/src/main/java/gwtquery/jsquery/public/demo.html +++ b/jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/demo.html @@ -4,7 +4,7 @@ <head> <title>jQuery menu plugin demo page</title> <link rel="stylesheet" type="text/css" href="style.css" /> -<script src="dev.nocache.js" ></script> +<script src="../../dev.nocache.js" ></script> <script type="text/javascript"> // JsQuery will run this function after it is asynchronously loaded diff --git a/jsquery/src/main/java/gwtquery/jsquery/public/myshadow.png b/jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/myshadow.png Binary files differindex fb6c71b5..fb6c71b5 100644 --- a/jsquery/src/main/java/gwtquery/jsquery/public/myshadow.png +++ b/jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/myshadow.png diff --git a/jsquery/src/main/java/gwtquery/jsquery/public/style.css b/jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/style.css index 965233bc..965233bc 100644 --- a/jsquery/src/main/java/gwtquery/jsquery/public/style.css +++ b/jsquery/src/main/java/gwtquery/jsquery/public/plugins/menu/style.css diff --git a/jsquery/src/main/webapp/index.html b/jsquery/src/main/webapp/index.html index 803d019b..613ed6d6 100644 --- a/jsquery/src/main/webapp/index.html +++ b/jsquery/src/main/webapp/index.html @@ -12,6 +12,7 @@ </script> <ul> <li><a href="javascript:goTo('dev/JsQuery.html')">JsQuery.html</a></li> + <li><a href="javascript:goTo('dev/plugins/menu/demo.html')">jquery.menu.html</a></li> </ul> </body> </html> |