*/
package com.google.gwt.query.client;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-
-import org.apache.http.MethodNotSupportedException;
-
import com.google.gwt.query.client.builders.JsonBuilder;
import com.google.gwt.query.client.builders.JsonFactory;
import com.google.gwt.query.client.plugins.ajax.Ajax.AjaxTransport;
import com.google.gwt.query.vm.AjaxTransportJre;
import com.google.gwt.query.vm.JsonFactoryJre;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+
/**
* A set of useful methods for gQuery which can be run in browser or JVM.
*/
* the License.
*/
package com.google.gwt.query.client;
-import static com.google.gwt.query.client.plugins.QueuePlugin.Queue;
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.core.client.JavaScriptObject;
-import com.google.gwt.core.client.JsArray;
-import com.google.gwt.core.client.JsArrayMixed;
-import com.google.gwt.core.client.JsArrayString;
-import com.google.gwt.core.client.ScriptInjector;
-import com.google.gwt.dom.client.BodyElement;
-import com.google.gwt.dom.client.ButtonElement;
-import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
-import com.google.gwt.dom.client.InputElement;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.dom.client.Node;
import com.google.gwt.dom.client.NodeList;
-import com.google.gwt.dom.client.OptionElement;
-import com.google.gwt.dom.client.SelectElement;
-import com.google.gwt.dom.client.Style.Display;
import com.google.gwt.dom.client.Style.HasCssName;
-import com.google.gwt.dom.client.TextAreaElement;
+import com.google.gwt.query.client.GQuery.Offset;
import com.google.gwt.query.client.css.CSS;
import com.google.gwt.query.client.css.HasCssValue;
import com.google.gwt.query.client.css.TakesCssValue;
import com.google.gwt.query.client.css.TakesCssValue.CssSetter;
-import com.google.gwt.query.client.impl.AttributeImpl;
-import com.google.gwt.query.client.impl.DocumentStyleImpl;
import com.google.gwt.query.client.impl.SelectorEngine;
-import com.google.gwt.query.client.js.JsCache;
-import com.google.gwt.query.client.js.JsMap;
import com.google.gwt.query.client.js.JsNamedArray;
import com.google.gwt.query.client.js.JsNodeArray;
-import com.google.gwt.query.client.js.JsObjectArray;
-import com.google.gwt.query.client.js.JsUtils;
import com.google.gwt.query.client.plugins.Effects;
-import com.google.gwt.query.client.plugins.Events;
-import com.google.gwt.query.client.plugins.Plugin;
-import com.google.gwt.query.client.plugins.Widgets;
-import com.google.gwt.query.client.plugins.ajax.Ajax;
-import com.google.gwt.query.client.plugins.ajax.Ajax.Settings;
-import com.google.gwt.query.client.plugins.deferred.Deferred;
import com.google.gwt.query.client.plugins.effects.PropertiesAnimation.Easing;
-import com.google.gwt.query.client.plugins.events.EventsListener;
-import com.google.gwt.query.client.plugins.widgets.WidgetsUtils;
-import com.google.gwt.regexp.shared.RegExp;
-import com.google.gwt.user.client.DOM;
-import com.google.gwt.user.client.Event;
-import com.google.gwt.user.client.EventListener;
-import com.google.gwt.user.client.Window;
-import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Widget;
-import java.util.ArrayList;
-import java.util.Arrays;
+
import java.util.List;
import java.util.Map;
-import com.google.gwt.query.client.GQuery.*;
-import com.google.gwt.query.client.LazyBase;
public interface LazyGQuery<T> extends LazyBase<T>{
public <T> boolean f(T e, int index) {
return false;
}
-
}
*/
package com.google.gwt.query.client;
-import com.google.gwt.query.client.Function;
/**
* Definition of jquery Promise interface used in gquery.
package com.google.gwt.query.client;
import static java.lang.annotation.ElementType.METHOD;
+
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
package com.google.gwt.query.client.builders;
import static java.lang.annotation.ElementType.METHOD;
+
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
*/
package com.google.gwt.query.client.builders;
-import java.util.Date;
-
import com.google.gwt.dom.client.Element;
+import java.util.Date;
+
/**
* Tagging interface used to generate XmlBuilder classes.
*/
import static com.google.gwt.query.client.GQuery.$;
-import java.util.Date;
-
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsDate;
import com.google.gwt.dom.client.Element;
import com.google.gwt.query.client.Properties;
import com.google.gwt.query.client.js.JsUtils;
+import java.util.Date;
+
public abstract class XmlBuilderBase<J extends XmlBuilderBase<?>> implements XmlBuilder {
//TODO empty document
private BackgroundAttachmentProperty() {
super(CSS_PROPERTY);
}
-
}
private BackgroundImageProperty() {
super(CSS_PROPERTY);
}
-
}
RGBColor borderColor) {
return new MultipleValueCssSetter(getCssName(), borderWidth, borderStyle, borderColor);
}
-
}
private BorderStyleProperty(String value) {
super(value);
}
-
}
public String getCssName() {
return name().toLowerCase();
}
-
}
private static final String BORDER_BOTTOM_WIDTH_PROPERTY = "borderBottomWidth";
*/
package com.google.gwt.query.client.css;
-import com.google.gwt.dom.client.Style.Cursor;
-import com.google.gwt.dom.client.Style.Display;
-import com.google.gwt.dom.client.Style.FontStyle;
-import com.google.gwt.dom.client.Style.FontWeight;
-import com.google.gwt.dom.client.Style.ListStyleType;
-import com.google.gwt.dom.client.Style.Overflow;
-import com.google.gwt.dom.client.Style.Position;
-import com.google.gwt.dom.client.Style.TextDecoration;
import com.google.gwt.dom.client.Style.VerticalAlign;
-import com.google.gwt.dom.client.Style.Visibility;
import com.google.gwt.query.client.css.BackgroundAttachmentProperty.BackgroundAttachment;
import com.google.gwt.query.client.css.BackgroundPositionProperty.BackgroundPosition;
import com.google.gwt.query.client.css.BackgroundRepeatProperty.BackgroundRepeat;
import com.google.gwt.query.client.css.BorderCollapseProperty.BorderCollapse;
import com.google.gwt.query.client.css.BorderSpacingProperty.BorderSpacing;
-import com.google.gwt.query.client.css.BorderStyleProperty.BorderStyle;
import com.google.gwt.query.client.css.BorderWidthProperty.BorderWidth;
import com.google.gwt.query.client.css.CaptionSideProperty.CaptionSide;
-import com.google.gwt.query.client.css.ClearProperty.Clear;
-import com.google.gwt.query.client.css.ClipProperty.Shape;
-import com.google.gwt.query.client.css.DirectionProperty.Direction;
import com.google.gwt.query.client.css.EmptyCellsProperty.EmptyCells;
-import com.google.gwt.query.client.css.FontSizeProperty.FontSize;
import com.google.gwt.query.client.css.FontVariantProperty.FontVariant;
import com.google.gwt.query.client.css.ListStylePositionProperty.ListStylePosition;
import com.google.gwt.query.client.css.MarginProperty.ShorthandMarginProperty;
import com.google.gwt.query.client.css.PaddingProperty.ShorthandPaddingProperty;
-import com.google.gwt.query.client.css.TextAlignProperty.TextAlign;
-import com.google.gwt.query.client.css.TextTransformProperty.TextTransform;
import com.google.gwt.query.client.css.UnicodeBidiProperty.UnicodeBidi;
-import com.google.gwt.query.client.css.WhiteSpaceProperty.WhiteSpace;
/**
* This class lists all CSS properties.
ZIndexProperty.init();
}
-
}
private CaptionSideProperty() {
super(CSS_PROPERTY);
}
-
}
public String getCssName() {
return name().toLowerCase();
}
-
}
private static final String CSS_PROPERTY = "clear";
public String getCssName() {
return value;
}
-
}
private static final String CSS_PROPERTY = "clip";
import com.google.gwt.dom.client.Style.HasCssName;
/**
- * Base class for Css property
+ * Base class for Css property.
*
* @param <T> Class of the value associated with the css property
*/
public String getCssName() {
return name().toLowerCase();
}
-
}
private static final String CSS_PROPERTY = "direction";
private EdgePositionProperty(String value) {
super(value);
}
-
}
private EmptyCellsProperty() {
super(CSS_PROPERTY);
}
-
}
private HeightProperty(String cssName) {
super(cssName);
}
-
}
private LetterSpacingProperty() {
super(CSS_PROPERTY);
}
-
}
public CssSetter with(Double value) {
return new SimpleCssSetter(CSS_PROPERTY, value != null ? "" + value : null);
}
-
}
public String getCssName() {
return name().toLowerCase();
}
-
}
private static final String CSS_PROPERTY = "listStylePosition";
return new MultipleValueCssSetter(CSS_PROPERTY, listStyleType,
listStylePosition, listStyleImage);
}
-
}
margin3, margin4);
}
-
}
private static String MARGIN_BOTTOM_PROPERTY = "marginBottom";
private MarginProperty(String cssName) {
super(cssName);
}
-
}
private static String notNull(HasCssName value) {
return value != null ? value.getCssName() + " " : "";
}
-
}
Length outlineWidth) {
return new MultipleValueCssSetter(CSS_PROPERTY, outlineColor, outlineStyle, outlineWidth);
}
-
}
padding3, padding4);
}
-
}
private static String PADDING_BOTTOM_PROPERTY = "paddingBottom";
private PaddingProperty(String cssName) {
super(cssName);
}
-
}
private PositionProperty() {
super(CSS_PROPERTY);
}
-
}
e.getStyle().setProperty(property, value != null ? value : "");
}
-
}
private TextAlignProperty() {
super(CSS_PROPERTY);
}
-
}
private TextDecorationProperty() {
super(CSS_PROPERTY);
}
-
}
private TextIdentProperty() {
super(CSS_PROPERTY);
}
-
}
private TextTransformProperty() {
super(CSS_PROPERTY);
}
-
}
public String getCssName() {
return name().toLowerCase().replace('_', '-');
}
-
}
private static final String CSS_PROPERTY = "unicodeBidi";
public String getCssName() {
return value;
}
-
}
public CssSetter with(Length value) {
return new SimpleCssSetter(this, value);
}
-
}
private VisibilityProperty() {
super(CSS_PROPERTY);
}
-
}
private WhiteSpaceProperty() {
super(CSS_PROPERTY);
}
-
}
private WidthProperty(String cssName) {
super(cssName);
}
-
}
private WordSpacingProperty() {
super(CSS_PROPERTY);
}
-
}
*/
package com.google.gwt.query.client.impl;
-import static com.google.gwt.query.client.GQuery.*;
-
-import java.util.HashSet;
+import static com.google.gwt.query.client.GQuery.document;
+import static com.google.gwt.query.client.GQuery.window;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Document;
import com.google.gwt.regexp.shared.MatchResult;
import com.google.gwt.regexp.shared.RegExp;
+import java.util.HashSet;
+
/**
* Core Selector engine functions, and native JS utility functions.
*/
import static com.google.gwt.query.client.GQuery.console;
-import java.util.ArrayList;
-
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.dom.client.Element;
import com.google.gwt.regexp.shared.MatchResult;
import com.google.gwt.regexp.shared.RegExp;
+import java.util.ArrayList;
+
/**
* Runtime selector engine implementation which translates selectors to XPath
* and delegates to document.evaluate().
import static com.google.gwt.query.client.GQuery.console;
-import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.Node;
import com.google.gwt.dom.client.NodeList;
return null;
}
}
-
}
match = true;
break;
}
-
} else if ( GQS.filter( cur, [elem] ).length > 0 ) {
match = elem;
break;
match = true;
break;
}
-
} else if ( IES.filter( cur, [elem] ).length > 0 ) {
match = elem;
break;
public Object[] elements() {
return c().elements();
}
-
}
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.JsArrayMixed;
-import com.google.gwt.core.client.JsArrayString;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.Node;
* the License.
*/
package com.google.gwt.query.client.plugins;
-import com.google.gwt.animation.client.Animation;
-import com.google.gwt.dom.client.Element;
import com.google.gwt.query.client.Function;
-import com.google.gwt.query.client.GQuery;
+import com.google.gwt.query.client.LazyBase;
import com.google.gwt.query.client.Properties;
-import com.google.gwt.query.client.plugins.effects.ClipAnimation;
-import com.google.gwt.query.client.plugins.effects.ClipAnimation.Direction;
-import com.google.gwt.query.client.plugins.effects.Fx;
import com.google.gwt.query.client.plugins.effects.PropertiesAnimation.Easing;
-import com.google.gwt.query.client.plugins.effects.PropertiesAnimation.EasingCurve;
-import com.google.gwt.query.client.plugins.effects.TransitionsAnimation.TransitionsClipAnimation;
-import com.google.gwt.query.client.GQuery.*;
-import com.google.gwt.query.client.LazyBase;
public interface LazyEffects<T> extends LazyBase<T>{
* the License.
*/
package com.google.gwt.query.client.plugins;
-import com.google.gwt.dom.client.Element;
-import com.google.gwt.dom.client.FormElement;
import com.google.gwt.dom.client.NativeEvent;
-import com.google.gwt.dom.client.Node;
import com.google.gwt.query.client.Function;
import com.google.gwt.query.client.GQuery;
-import com.google.gwt.query.client.js.JsUtils;
-import com.google.gwt.query.client.plugins.events.EventsListener;
-import com.google.gwt.query.client.plugins.events.EventsListener.SpecialEvent;
-import com.google.gwt.query.client.plugins.events.GqEvent;
-import com.google.gwt.user.client.Event;
-import com.google.gwt.query.client.GQuery.*;
import com.google.gwt.query.client.LazyBase;
public interface LazyEvents<T> extends LazyBase<T>{
* the License.
*/
package com.google.gwt.query.client.plugins;
-import java.util.ArrayList;
-import java.util.List;
-import com.google.gwt.dom.client.Element;
-import com.google.gwt.query.client.GQuery;
-import com.google.gwt.query.client.plugins.widgets.ButtonWidgetFactory;
-import com.google.gwt.query.client.plugins.widgets.HtmlPanelWidgetFactory;
-import com.google.gwt.query.client.plugins.widgets.LabelWidgetFactory;
-import com.google.gwt.query.client.plugins.widgets.PasswordTextBoxWidgetFactory;
-import com.google.gwt.query.client.plugins.widgets.TextAreaWidgetFactory;
-import com.google.gwt.query.client.plugins.widgets.TextBoxWidgetFactory;
+import com.google.gwt.query.client.LazyBase;
import com.google.gwt.query.client.plugins.widgets.WidgetFactory;
import com.google.gwt.query.client.plugins.widgets.WidgetInitializer;
-import com.google.gwt.query.client.plugins.widgets.WidgetsUtils;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;
-import com.google.gwt.query.client.GQuery.*;
-import com.google.gwt.query.client.LazyBase;
public interface LazyWidgets<T> extends LazyBase<T>{
}
});
}
-
}
/**
});
}
-
}
private boolean delayConditionMet() {
return e.getClientY();
}
}
-
}
*/
package com.google.gwt.query.client.plugins;
-import java.util.LinkedList;
-import java.util.Queue;
-
import com.google.gwt.dom.client.Element;
import com.google.gwt.query.client.Function;
import com.google.gwt.query.client.GQuery;
import com.google.gwt.query.client.plugins.deferred.Callbacks;
import com.google.gwt.user.client.Timer;
+import java.util.LinkedList;
+import java.util.Queue;
+
/**
* Class used in plugins which need a queue system.
*/
+ e.css("overflow-y", true);
return overflow.contains("auto") || overflow.contains("scroll");
}
-
}
@SuppressWarnings("unused")
return ("absolute".equals(position) || "relative".equals(position) || "static"
.equals(position));
}
-
}
public static Class<UiPlugin> GQueryUi = UiPlugin.class;
protected void trigger(GwtEvent<?> e, Function callback, Element element) {
trigger(e, callback, element, eventBus);
}
-
}
*/
package com.google.gwt.query.client.plugins;
-import java.util.ArrayList;
-import java.util.List;
-
import com.google.gwt.dom.client.Element;
import com.google.gwt.query.client.GQuery;
import com.google.gwt.query.client.plugins.widgets.ButtonWidgetFactory;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;
+import java.util.ArrayList;
+import java.util.List;
+
/**
* Widgets plugin for Gwt Query. Be careful, this plugin is still experimental.
* The api can change in next releases.
import com.google.gwt.dom.client.Element;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.Response;
-import com.google.gwt.query.client.IsProperties;
import com.google.gwt.query.client.Function;
import com.google.gwt.query.client.GQ;
import com.google.gwt.query.client.GQuery;
+import com.google.gwt.query.client.IsProperties;
import com.google.gwt.query.client.Promise;
import com.google.gwt.query.client.builders.JsonBuilder;
import com.google.gwt.query.client.js.JsUtils;
public Promise getXhr(Settings settings) {
return new PromiseReqBuilder(settings);
}
-
}
*/
package com.google.gwt.query.client.plugins.deferred;
+import com.google.gwt.query.client.Function;
+
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
-import com.google.gwt.query.client.Function;
-
/**
* Implementation of jQuery.Callbacks for gwtquery.
*/
*/
package com.google.gwt.query.client.plugins.deferred;
-import static com.google.gwt.query.client.Promise.*;
+import static com.google.gwt.query.client.Promise.PENDING;
+import static com.google.gwt.query.client.Promise.REJECTED;
+import static com.google.gwt.query.client.Promise.RESOLVED;
import com.google.gwt.query.client.Function;
import com.google.gwt.query.client.GQuery;
import com.google.gwt.http.client.RequestException;
import com.google.gwt.http.client.RequestPermissionException;
import com.google.gwt.http.client.Response;
-import com.google.gwt.query.client.IsProperties;
import com.google.gwt.query.client.Function;
+import com.google.gwt.query.client.IsProperties;
import com.google.gwt.query.client.js.JsCache;
import com.google.gwt.query.client.js.JsUtils;
import com.google.gwt.query.client.plugins.ajax.Ajax.Settings;
}
return result;
}
-
}
public String cssprop;
+ " value=" + value + " start=" + start + " end="
+ end + " unit=" + unit).replaceAll("\\.0([^\\d])", "$1");
}
-
}
protected double interpolate(double progress) {
return easing.interpolate(progress);
}
-
}
*/
package com.google.gwt.query.client.plugins.effects;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map.Entry;
-
import com.google.gwt.core.client.Duration;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.Style;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Timer;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map.Entry;
+
/**
* Transitions and transformation plugin for gQuery.
*
trsStart = "" + start;
g.css(key, start + unit);
}
-
} else {
trsStart = "";
trsEnd = val;
*/
package com.google.gwt.query.client.plugins.events;
+import static com.google.gwt.query.client.GQuery.$;
+
import com.google.gwt.core.client.Duration;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.EventTarget;
import java.util.ArrayList;
import java.util.List;
-import static com.google.gwt.query.client.GQuery.$;
-
/**
* This class implements an event queue instance for one Element. The queue instance is configured
* as the default event listener in GWT.
if (newFunctions.length() > 0) {
bindFunctionBySelector.put(cssSelector, newFunctions);
}
-
}
}
return Element.as(eventTarget);
}
-
}
public static final String EVENT_DATA = "___event_datas";
die(b, nameSpace, eventName, originalEventName, cssSelector);
}
-
}
public void die(int eventbits, String nameSpace, String eventName, String originalEventName,
return getClientY() + GQuery.document.getScrollTop();
}
}
-
}
import com.google.gwt.dom.client.ButtonElement;
import com.google.gwt.dom.client.Element;
-import com.google.gwt.query.client.plugins.widgets.WidgetFactory;
-import com.google.gwt.query.client.plugins.widgets.WidgetsUtils;
import com.google.gwt.user.client.ui.Button;
/**
public HTMLPanel create(Element e) {
return new WidgetsHtmlPanel(e);
}
-
}
WidgetsUtils.replaceOrAppend(e, label);
return label;
}
-
}
if (RootPanel.isInDetachList(w)) {
RootPanel.detachNow(w);
}
-
} else if (parent instanceof HTMLPanel) {
WidgetsUtils.doLogicalDetachFromHtmlPanel(w);
} else {
import static com.google.gwt.query.client.GQuery.$;
-import java.util.Iterator;
-
import com.google.gwt.dom.client.BodyElement;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.WidgetCollection;
+import java.util.Iterator;
+
public class WidgetsUtils {
static final String[] appendingTags = {
*/
package com.google.gwt.query.rebind;
-import java.io.PrintWriter;
-
import com.google.gwt.core.ext.BadPropertyValueException;
import com.google.gwt.core.ext.Generator;
import com.google.gwt.core.ext.GeneratorContext;
import com.google.gwt.user.rebind.ClassSourceFileComposerFactory;
import com.google.gwt.user.rebind.SourceWriter;
+import java.io.PrintWriter;
+
/**
* Creates an implementation for {@link Browser}
*/
*/
package com.google.gwt.query.rebind;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.PrintWriter;
-import java.net.HttpURLConnection;
-import java.net.URL;
-import java.util.zip.GZIPInputStream;
-import java.util.zip.InflaterInputStream;
-
-import org.apache.commons.io.output.ByteArrayOutputStream;
-
import com.google.gwt.core.ext.Generator;
import com.google.gwt.core.ext.GeneratorContext;
import com.google.gwt.core.ext.TreeLogger;
import com.google.gwt.user.rebind.ClassSourceFileComposerFactory;
import com.google.gwt.user.rebind.SourceWriter;
+import org.apache.commons.io.output.ByteArrayOutputStream;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.PrintWriter;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.util.zip.GZIPInputStream;
+import java.util.zip.InflaterInputStream;
+
/**
* Generates an implementation of a user-defined interface <code>T</code> that
* extends {@link JsniBundle}.
*/
package com.google.gwt.query.rebind;
-import java.io.PrintWriter;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.ext.Generator;
import com.google.gwt.core.ext.GeneratorContext;
import com.google.gwt.core.ext.typeinfo.JType;
import com.google.gwt.core.ext.typeinfo.TypeOracle;
import com.google.gwt.query.client.Function;
-import com.google.gwt.query.client.Properties;
import com.google.gwt.query.client.IsProperties;
+import com.google.gwt.query.client.Properties;
import com.google.gwt.query.client.builders.JsonBuilder;
import com.google.gwt.query.client.builders.JsonBuilderBase;
import com.google.gwt.query.client.builders.JsonFactory;
import com.google.gwt.user.rebind.ClassSourceFileComposerFactory;
import com.google.gwt.user.rebind.SourceWriter;
+import java.io.PrintWriter;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+
/**
*/
public class JsonBuilderGenerator extends Generator {
*/
package com.google.gwt.query.rebind;
-import java.util.ArrayList;
-import java.util.regex.MatchResult;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import javax.xml.xpath.XPath;
-import javax.xml.xpath.XPathExpressionException;
-import javax.xml.xpath.XPathFactory;
-
import com.google.gwt.core.ext.TreeLogger;
import com.google.gwt.core.ext.UnableToCompleteException;
import com.google.gwt.core.ext.typeinfo.JMethod;
import com.google.gwt.query.client.impl.SelectorEngineCssToXPath.Replacer;
import com.google.gwt.user.rebind.SourceWriter;
+import java.util.ArrayList;
+import java.util.regex.MatchResult;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import javax.xml.xpath.XPath;
+import javax.xml.xpath.XPathExpressionException;
+import javax.xml.xpath.XPathFactory;
+
/**
* Compile time selector generator which translates selector into XPath at
* compile time. It Uses the SelectorEngineCssToXpath to produce the xpath
*/
package com.google.gwt.query.rebind;
-import java.io.PrintWriter;
-
import com.google.gwt.core.ext.Generator;
import com.google.gwt.core.ext.GeneratorContext;
import com.google.gwt.core.ext.TreeLogger;
import com.google.gwt.user.rebind.ClassSourceFileComposerFactory;
import com.google.gwt.user.rebind.SourceWriter;
+import java.io.PrintWriter;
+
/**
*/
public class XmlBuilderGenerator extends Generator {
// import org.apache.http.impl.client.HttpClientBuilder;
-import java.io.BufferedReader;
-import java.io.DataOutputStream;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.net.HttpURLConnection;
-import java.net.URL;
-
import com.google.gwt.http.client.RequestException;
import com.google.gwt.http.client.Response;
-import com.google.gwt.query.client.IsProperties;
import com.google.gwt.query.client.Function;
import com.google.gwt.query.client.GQ;
import com.google.gwt.query.client.GQuery;
+import com.google.gwt.query.client.IsProperties;
import com.google.gwt.query.client.Promise;
import com.google.gwt.query.client.plugins.ajax.Ajax.AjaxTransport;
import com.google.gwt.query.client.plugins.ajax.Ajax.Settings;
import com.google.gwt.query.client.plugins.deferred.PromiseFunction;
import com.google.gwt.user.server.Base64Utils;
+import java.io.BufferedReader;
+import java.io.DataOutputStream;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+
/**
*
*/
*/
package com.google.gwt.query.vm;
-import java.util.List;
-import java.util.Map;
-
import com.google.gwt.http.client.Header;
import com.google.gwt.http.client.Response;
+import java.util.List;
+import java.util.Map;
+
/**
* Implementation of `Response` in the JVM
*/
*/
package com.google.web.bindery.requestfactory.shared.gquery;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Set;
-
-import javax.validation.ConstraintViolation;
-
-import com.google.gwt.query.client.plugins.deferred.Deferred;
import com.google.gwt.query.client.plugins.deferred.Deferred.DeferredPromiseImpl;
import com.google.web.bindery.requestfactory.shared.Receiver;
import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.ServerFailure;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Set;
+
+import javax.validation.ConstraintViolation;
+
/**
* Utility class used to create promises for RequestFactory services.
* <pre>