gwtquery

GWT (2.7) Compile fails when declaring a GwtQuery (1.0.6) Widget in UiBinder in GWTP (1.5.1) project

[亡魂溺海] 提交于 2020-01-06 19:33:29
问题 When I simply just declare a GwtQuery DragAndDropCellTree in my MyView.ui.xml UiBinder in my GWTP project, I cannot GWT Compile it: [3] xmlns:gq="urn:import:gwtquery.plugins.droppable.client.gwt" ... [59] <gq:DragAndDropCellTree></gq:DragAndDropCellTree> [ERROR] No class matching "DragAndDropCellTree" in urn:import:gwtquery.plugins.droppable.client.gwt: < gq:DragAndDropCellTree > (:59) [ERROR] Errors in 'gen/my/package/com_gwtplatform_mvp_client_DesktopGinjector_DesktopGinjectorGinjector

Using GWTquery with GWT

落花浮王杯 提交于 2019-12-23 19:24:58
问题 Can anyone tell me how to use GWTquery along with GWT? The GWTquery tutorial page mainly deals with how to use jQuery, it doesn't much explain how to embed it. If, for example, I want to use it with the default Stockwatcher app that comes with GWT, and use jQuery inside the java file just like the GWTquery tutorial says, where to install the jar file, and how to import it? 回答1: GWTquery does not use jQuery, it is jQuery-like API implemented in GWT and it does not require jquery.js file inside

GWT Timer cancel not working

旧街凉风 提交于 2019-12-22 12:46:30
问题 I am trying to write a code to differentiate between simgle and double clicks using GWT and GWTQuery. I got the idea here. So I translated it into GWT like this: (my app can't have global variables, so I am doing that part with element attributes instead): $("img").live("click", new Function() { public boolean f(Event event) { String clicksString = $(event).attr("clicks"); int clicks = Integer.parseInt(clicksString); clicks++; $(event).attr("clicks",String.valueOf(clicks)); Timer t = new

Calling GWT Java function from JavaScript

巧了我就是萌 提交于 2019-12-17 07:31:07
问题 I am a newcomer to GWT and JavaScript. There are similar question of this type I have tried to follow, but I keep failing. I have a GWT app, I need to call a Java function from Javascript( on the onclick of a href tag, in particular.) Following is what I have done. public class JSNITest { public static void handleAnchorClick(int a , int b) { Window.alert("Current row and Column is " + a + " " + b); } public static native void exportMyFunction()/*-{ $wnd.handleAnchorClick = function(param1

Calling GWT Java function from JavaScript

僤鯓⒐⒋嵵緔 提交于 2019-12-17 07:31:04
问题 I am a newcomer to GWT and JavaScript. There are similar question of this type I have tried to follow, but I keep failing. I have a GWT app, I need to call a Java function from Javascript( on the onclick of a href tag, in particular.) Following is what I have done. public class JSNITest { public static void handleAnchorClick(int a , int b) { Window.alert("Current row and Column is " + a + " " + b); } public static native void exportMyFunction()/*-{ $wnd.handleAnchorClick = function(param1

Use jquery inside GWT jsni

孤街浪徒 提交于 2019-12-13 11:33:24
问题 I am not able to use $("#"+profileId).offset().top from inside my gwt jsni function. I tried this $wnd.$("#"+profileId).offset().top but this is also not working. I feel i am missing syntax here. Could anybody help 回答1: Three solutions for this question: 1- Your Jsni code looks fine except that you have to enclose it in the corresponding native function and return a double (or any other number type if you want gwt to make the casting). native double getTop(String profileId) /*-{ return $wnd.$

GWT: I am using jScrollPane with jquery, is it messing with my ClickHandlers?

时光怂恿深爱的人放手 提交于 2019-12-13 02:40:34
问题 I implemented the JScrollPane for a cleaner look inside my Page. function scrollPane() { $(".gwt-content").jScrollPane(); } A custom Widget gets added: $(".jspPane").append($(new Content()); works $(html).click(new Function() { public boolean f(Event e) { System.out.println("yo"); return true; } }); doesn't html.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { System.out.println("yo1"); } }); html is a HTML Widget with some Text and another HTML widget in

How to communicate two modules in GWT

强颜欢笑 提交于 2019-12-12 04:58:07
问题 I have created two module name module1 and module2 in gwt application. I want to pass message from module1 to module2 and module2 to module1 simultaneously after some seconds. I write the following code, but it gives me error unable to find module1.gwt.xml in classpath. public void onModuleLoad() { mainBus.fireEvent(new PingEvent("-----Simulation Started-----")); } module1 public void onModuleLoad() { GWTEventBus.mainBus.addHandler(PingEvent.TYPE, new PingEventHandler(){ public void onEvent

How would you add maven to an existing GWT project in Eclipse with m2e installed?

风格不统一 提交于 2019-12-11 23:52:34
问题 The project has GWTQuery included. I'd like to have the pom.xml generated in the existing project so I can configure the build. 回答1: The best way I see is to create a new maven-ready project using gwtquery archetype and setting the same namespaces and module name that you use in your current project. mvn archetype:generate -DarchetypeGroupId=com.googlecode.gwtquery \ -DarchetypeArtifactId=gquery-archetype \ -DarchetypeVersion=1.3.3 \ -DgroupId=com.mycompany \ -DartifactId=myproject \

No GWTquery function is working

Deadly 提交于 2019-12-11 15:11:58
问题 I am trying to use GWTquery in my project. I have successfully added the jar file, added it to the class-path, imported all classes, but still nothing is working. Can anyone tell me what I am missing? Here is the code: import static com.google.gwt.query.client.GQuery.*; import com.google.gwt.query.client.plugins.Effects; public class myfoo implements EntryPoint { public void onModuleLoad() { final TextBox tb = new TextBox(); tb.setStyleName("foo"); VerticalPanel panel = new VerticalPanel();