Questions tagged [gquery]

GwtQuery a.k.a. gQuery is a jQuery-like API written in GWT. It offers the possibility to use the jquery api in gwt projects.

38 questions
1
vote
1 answer

How to consume 3party json services in GWT

I'm looking for the best way in GWT to access a 3party json rest service and parse its response quickly. The rest service offers the callback parameter, and the example they gave us is using jQuery.jsonp: $.ajax({ type: 'GET', url:…
user2116390
0
votes
1 answer

Configuring Gquery in gwt in netbeans

I am trying to create a GWT application which uses GQuery in Netbeans.I have referred to http://code.google.com/p/gwtquery/wiki/GettingStarted But when I am importing the package of GQuery in my Entrpoint.java file and trying to build it is giving…
Amandeep Singh
  • 3,754
  • 8
  • 51
  • 72
0
votes
2 answers

Using GQuery in GWT widgets

I am using the GWT application widget library and want to validate the controls in the button click event.The code I am writing GQuery input = $(e).filter("input[type='password']").widgets(); but its is giving me compile time error.Please tell me…
Amandeep Singh
  • 3,754
  • 8
  • 51
  • 72
0
votes
1 answer

How to enable text highlighting on a page using gquery gestures plugin?

I have a complex GWT application that is designed for mobile and has this gwtquery-gestures-plugin code in its (root) ApplicationPresenter: $(RootPanel.get()) .as(Gesture.Gesture) .on("tap", new Function() { …
slugmandrew
  • 1,776
  • 2
  • 25
  • 45
0
votes
3 answers

jQuery vs GQuery Benchmark

I remember stumbling upon a benchmark comparing jQuery vs GQuery (run time selectors) vs GQuery (compile time selectors). Once the site was loaded one could click "Start" and the benchmark (mostly CSS selectors) would run for all three versions and…
Julian Lettner
  • 3,309
  • 7
  • 32
  • 49
0
votes
2 answers

Usage of JsniBundle: calling methods on initialized js library

When I initialize d3.js and dc.js using JsniBundle there is no global variable "dc" or "d3" that is created. But I initialze crossfilter in the same way and there is window.crossfilter present. My question is: what is the best way to call methods…
leemon
  • 15
  • 2
0
votes
0 answers

Auto-grow / Auto-size TextArea with GwtQuery

This is my code for a TextArea that auto resize (I'm using Errai so TextArea is injected btw): @Inject @DataField TextArea content; @AfterInitialization public void afterInit(){ content.getElement().setAttribute("wrap","off"); …
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
2 answers

Query if class is already shown

Hello I need to be able to identify if a given class is already "faded in": private void fadeIn() { // TODO: Check first if class is already shown! otherwise, don't run this as it fade's out when it is run over a already faded in class …
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

GwtQuery for a "click" event it also does trigger on hover event (sometimes)

GwtQuery for a "click" event it also does trigger on hover (sometimes), why is that? $("html").bind("click", new com.google.gwt.query.client.Function() { @Override public boolean f(com.google.gwt.user.client.Event e) { …
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

How to call GWT client code from within a GQuery event handler?

I'm learning GQuery. It seems cool, but also a little confusing. I have the following GWT client code. The selected item fades out, nicely. But the delete method never gets called. There is no error. It's very odd. Is it even possible to call…
Magick
  • 4,603
  • 22
  • 66
  • 103
0
votes
1 answer

GWT Disable horizontal drag scrolling

I have a celltable inside a scroll panel. That way I can vertically scroll through all the items. I have been using the gquery plugin for drag and drop functionality. I am wanting to drag an item from one table to another. My problem is that when I…
Will
  • 292
  • 4
  • 16
0
votes
1 answer

GwtQuery - empty() Widget after fadeOut()

Out of my frustration in wrapping Bootstrap alert / notification libraries to GWT I've decided to make one using GwtQuery: public static void showErrorNotification(String message){ List allNotifications = $(".notification").widgets(); …
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
2 answers

Drag and drop in SplitLayoutPanel not working properly

I'm trying to drag row from cell table, to my other widget. To do this i created DragAndDropCellTable and DroppableWidget. While they were in same container it was working fine. But since i put them to SplitLayoutPanel, it is not working properly. I…
user902383
  • 8,420
  • 8
  • 43
  • 63
0
votes
1 answer

How to get the value of a textbox adjoining a button with gwt query

I have a custom widget like this, it's basically a couple of text boxes and buttons along with them. Lower Limit
nikhil
  • 8,925
  • 21
  • 62
  • 102
0
votes
1 answer

objects cannot be dragged - with dnd gwt query

I created the follow grid of label that i want thme to be draggable: public static Grid setLabels (String [] str){ Label [] lbl = new Label [str.length]; Grid grid = new Grid(5,1); CellFormatter cellFormatter =…
girl
  • 19
  • 8