Questions tagged [gwtquery]

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.

gQuery offers a set of plugins to enhance your gwt projects, and it also allows to easily rewrite (port) jquery-code and jquery-plugins for gwt.

gQuery additionally's plenty of features like its Type safe system, its Ajax api, and its data-binding handling, which make that to consume 3party services were much easier than using RequestBuilder.

96 questions
0
votes
1 answer

Selecting DIV or Anchor with specific attribute with GwtQuery

With GwtQuery how do I select all anchor elements with a specific attribute and attach click handler for each element found: Here…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Handle Enter key up event with GwtQuery

I have this code that does not run: TextBox mobileTextBox = $("#mobile-search-input") .as(Widgets).textBox().widget(); mobileTextBox.addKeyUpHandler(new KeyUpHandler() { @Override public void onKeyUp(KeyUpEvent…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

how to remove a style from a previously selected row in a gwt grid

I want to remove a style from a previously selected row of a gwt DataGrid when clicked on a new row. Im able to do it by redrawing the grid, is it possible to do it without redrawing the grid.
0
votes
0 answers

Generic Entity interface on gwt client side while using GwtQuery

I want to have a simple generic Entity interface pretty much like a map such as on client side in a Gwt + GwtQuery project . public interface Entity extends JsonBuilder { public String JsonObject getProperty(String property) ; public…
Gautam
  • 1,030
  • 13
  • 37
0
votes
1 answer

Gwtquery stop parent from being draggable

I am working on a rotatable plugin for gwtquery. The idea is to create a seating chart app for teacher. Any how I can now get an element to rotate if as long as its not draggable. What the plugin does is appends a child and makes the child…
0
votes
1 answer

How to implement jquery rotatable plugin using gwtquery?

So I'm trying to implement this jquery plugin into a gwtquery one. I'm using the Draggable . Most of the code is easily implemented in Gwtquery but I see have two problem area 1. with how events are handled: in jquery events are just passed to the …
0
votes
1 answer

GWTQuery UI Error with .dialog()

I am trying to use dialogs with GWTQuery-UI in Kepler and can't figure out what is wrong. I followed as best I could the instructions found at https://code.google.com/p/gwtquery-ui/wiki/GettingStarted. I have the following code setup gwt.xml …
0
votes
1 answer

GwtQuery droppable compile Error with GWT 2.6.1

When compiling GwtQuery droppable plugin I get the following error: | Validating units: | [ERROR] Errors in 'gwtquery/plugins/droppable/client/gwt/DragAndDropCellBrowser.java' | [ERROR] Line 65: The type BrowserCellList is not…
Michael
  • 32,527
  • 49
  • 210
  • 370
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
2 answers

How to apply gwt-query on the elements which are declared in gwt entrypoint?

We are showing messages after successful completion of creating, saving, updating the vouchers in our application, We are using gwt to do all the above processing and will get the success message from server side by using gwt-rpc and then put that…
majji
  • 169
  • 2
  • 3
  • 19
0
votes
1 answer

GwtQuery DND - How to stop event propagation and prevent default

I have two drop panels one over the other and need the ability to grab the gwt NativeEvent from a GwtQuery DND DropEvent so that I can call stopPropagation and preventDefault. Unfortunately this appears to not be available in the GwtQuery DND…
Chris Hinshaw
  • 6,967
  • 2
  • 39
  • 65
0
votes
1 answer

GWT detach widget from DOM and add to Panel

I need to be able to detach a node from the DOM and attach it to a HorizontalPanel at runtime using GwtQuery. My code looks like this: @PageShown public void pageReady() { horizontalPanel.add($("#bar1").widget()); …
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

gwtQuery's outerWidth(true) and IE8 not working without putting a delay

I recently came across an odd behavior when trying to calculate the width (with margins) of an element using gwtQuery. The goal is to get the width (including padding, borders and margins) of a given element as a child of a certain parent. This…
Chris
  • 165
  • 1
  • 5