\r
package com.badlogic.gdx.backends.gwt;\r
\r
-import java.awt.Canvas;\r
-import java.awt.Panel;\r
-import java.awt.TextArea;\r
-\r
import com.badlogic.gdx.Application;\r
import com.badlogic.gdx.ApplicationListener;\r
import com.badlogic.gdx.Audio;\r
import com.badlogic.gdx.utils.Array;\r
import com.badlogic.gdx.utils.ObjectMap;\r
import com.badlogic.gdx.utils.TimeUtils;\r
+import com.google.gwt.canvas.client.Canvas;\r
+import com.google.gwt.canvas.dom.client.Context2d;\r
+import com.google.gwt.canvas.dom.client.Context2d.TextAlign;\r
+import com.google.gwt.canvas.dom.client.Context2d.TextBaseline;\r
+import com.google.gwt.core.client.EntryPoint;\r
+import com.google.gwt.core.client.GWT;\r
+import com.google.gwt.core.client.JavaScriptObject;\r
+import com.google.gwt.dom.client.Document;\r
+import com.google.gwt.dom.client.Element;\r
+import com.google.gwt.user.client.Timer;\r
+import com.google.gwt.user.client.ui.HasHorizontalAlignment;\r
+import com.google.gwt.user.client.ui.HasVerticalAlignment;\r
+import com.google.gwt.user.client.ui.Label;\r
+import com.google.gwt.user.client.ui.Panel;\r
+import com.google.gwt.user.client.ui.RootPanel;\r
+import com.google.gwt.user.client.ui.TextArea;\r
+import com.google.gwt.user.client.ui.VerticalPanel;\r
\r
/** Implementation of an {@link Application} based on GWT. Clients have to override {@link #getConfig()},\r
* {@link #getApplicationListener()} and {@link #getAssetsPath()}. Clients can override the default loading screen via\r
\r
package com.badlogic.gdx.backends.gwt;\r
\r
-import java.awt.Panel;\r
-import java.awt.TextArea;\r
+import com.google.gwt.user.client.ui.Panel;\r
+import com.google.gwt.user.client.ui.TextArea;\r
\r
public class GwtApplicationConfiguration {\r
/** the width of the drawing area in pixels **/\r
import com.badlogic.gdx.graphics.GL20;\r
import com.badlogic.gdx.graphics.Pixmap;\r
import com.badlogic.gdx.utils.GdxRuntimeException;\r
+import com.google.gwt.core.client.GWT;\r
import com.google.gwt.typedarrays.client.Float32Array;\r
import com.google.gwt.typedarrays.client.Int16Array;\r
import com.google.gwt.typedarrays.client.Int32Array;\r
\r
package com.badlogic.gdx.backends.gwt;\r
\r
-import java.awt.Canvas;\r
-import java.awt.Panel;\r
-\r
import com.badlogic.gdx.Gdx;\r
import com.badlogic.gdx.Graphics;\r
+import com.badlogic.gdx.Graphics.BufferFormat;\r
+import com.badlogic.gdx.Graphics.DisplayMode;\r
+import com.badlogic.gdx.Graphics.GraphicsType;\r
import com.badlogic.gdx.graphics.GL10;\r
import com.badlogic.gdx.graphics.GL11;\r
import com.badlogic.gdx.graphics.GL20;\r
import com.badlogic.gdx.graphics.GLCommon;\r
import com.badlogic.gdx.graphics.GLU;\r
import com.badlogic.gdx.utils.GdxRuntimeException;\r
+import com.google.gwt.canvas.client.Canvas;\r
+import com.google.gwt.dom.client.CanvasElement;\r
+import com.google.gwt.user.client.ui.Panel;\r
import com.google.gwt.webgl.client.WebGLContextAttributes;\r
import com.google.gwt.webgl.client.WebGLRenderingContext;\r
\r
import com.badlogic.gdx.backends.gwt.widgets.TextInputDialogBox;\r
import com.badlogic.gdx.backends.gwt.widgets.TextInputDialogBox.TextInputDialogListener;\r
import com.badlogic.gdx.utils.TimeUtils;\r
+import com.google.gwt.core.client.JavaScriptObject;\r
+import com.google.gwt.dom.client.CanvasElement;\r
+import com.google.gwt.dom.client.Document;\r
+import com.google.gwt.dom.client.Element;\r
+import com.google.gwt.dom.client.NativeEvent;\r
+import com.google.gwt.event.dom.client.KeyCodes;\r
\r
public class GwtInput implements Input {\r
boolean touched = false;\r
\r
package com.badlogic.gdx.graphics;\r
\r
-import java.awt.Canvas;\r
import java.nio.Buffer;\r
import java.nio.IntBuffer;\r
import java.util.HashMap;\r
import com.badlogic.gdx.utils.BufferUtils;\r
import com.badlogic.gdx.utils.Disposable;\r
import com.badlogic.gdx.utils.GdxRuntimeException;\r
+import com.google.gwt.canvas.client.Canvas;\r
+import com.google.gwt.canvas.dom.client.CanvasPixelArray;\r
+import com.google.gwt.canvas.dom.client.Context2d;\r
+import com.google.gwt.canvas.dom.client.Context2d.Composite;\r
+import com.google.gwt.dom.client.CanvasElement;\r
+import com.google.gwt.dom.client.ImageElement;\r
\r
public class Pixmap implements Disposable {\r
public static Map<Integer, Pixmap> pixmaps = new HashMap<Integer, Pixmap>();\r
import java.nio.LongBuffer;\r
import java.nio.ShortBuffer;\r
\r
+import com.google.gwt.core.client.GWT;\r
+\r
/** Class with static helper methods to increase the speed of array/direct buffer and direct buffer/direct buffer transfers\r
* \r
* @author mzechner */\r
import java.io.IOException;\r
import java.io.InputStream;\r
\r
+import com.google.gwt.xhr.client.ReadyStateChangeHandler;\r
+import com.google.gwt.xhr.client.XMLHttpRequest;\r
+\r
public class BinaryLoader {\r
private final LoaderCallback<Blob> callback;\r
\r
\r
package com.badlogic.gdx.backends.gwt.preloader;\r
\r
+import com.google.gwt.dom.client.ImageElement;\r
+import com.google.gwt.dom.client.NativeEvent;\r
+\r
/** Fugly but does the job.\r
* @author mzechner */\r
public class ImageLoader {\r
import com.badlogic.gdx.utils.Array;\r
import com.badlogic.gdx.utils.GdxRuntimeException;\r
import com.badlogic.gdx.utils.ObjectMap;\r
+import com.google.gwt.core.client.GWT;\r
+import com.google.gwt.dom.client.ImageElement;\r
\r
public class Preloader {\r
public interface PreloaderCallback {\r
\r
import java.io.PrintWriter;\r
\r
-import sun.nio.cs.Surrogate.Generator;\r
-\r
import com.badlogic.gdx.backends.gwt.preloader.AssetFilter.AssetType;\r
import com.badlogic.gdx.utils.Array;\r
import com.badlogic.gdx.utils.GdxRuntimeException;\r
+import com.google.gwt.core.ext.BadPropertyValueException;\r
+import com.google.gwt.core.ext.ConfigurationProperty;\r
+import com.google.gwt.core.ext.Generator;\r
+import com.google.gwt.core.ext.GeneratorContext;\r
+import com.google.gwt.core.ext.TreeLogger;\r
+import com.google.gwt.core.ext.UnableToCompleteException;\r
+import com.google.gwt.user.rebind.ClassSourceFileComposerFactory;\r
+import com.google.gwt.user.rebind.SourceWriter;\r
\r
/** Copies assets from the path specified in the modules gdx.assetpath configuration property to the war/ folder and generates the\r
* assets.txt file. The type of a file is determined by an {@link AssetFilter}, which is either created by instantiating the class\r
\r
package com.badlogic.gdx.backends.gwt.preloader;\r
\r
-import javax.xml.ws.Response;\r
+import com.google.gwt.http.client.Request;\r
+import com.google.gwt.http.client.RequestBuilder;\r
+import com.google.gwt.http.client.RequestCallback;\r
+import com.google.gwt.http.client.RequestException;\r
+import com.google.gwt.http.client.Response;\r
\r
public class TextLoader {\r
private final LoaderCallback<String> callback;\r
\r
package com.badlogic.gdx.backends.gwt.soundmanager2;\r
\r
+import com.google.gwt.core.client.JavaScriptObject;\r
+\r
public class SMSound extends JavaScriptObject {\r
protected SMSound () {\r
}\r
\r
package com.badlogic.gdx.backends.gwt.widgets;\r
\r
+import com.google.gwt.user.client.ui.TextBox;\r
+\r
public class PlaceholderTextBox extends TextBox {\r
\r
String placeholder = "";\r
package com.badlogic.gdx.backends.gwt.widgets;
-import com.badlogic.gdx.scenes.scene2d.ui.Widget;
-import com.sun.org.apache.xalan.internal.xsltc.DOM;
+import com.google.gwt.user.client.DOM;
+import com.google.gwt.user.client.Element;
+import com.google.gwt.user.client.ui.Widget;
/** A widget that displays progress on an arbitrary scale.
*
package com.badlogic.gdx.backends.gwt.widgets;
+import com.google.gwt.user.client.Element;
+
/** An interface that defines the methods required to support automatic resizing of the Widget element. */
public interface ResizableWidget {
/** Get the widget's element. */
import java.util.Iterator;
import java.util.Map;
+import com.google.gwt.event.logical.shared.ResizeEvent;
+import com.google.gwt.event.logical.shared.ResizeHandler;
+import com.google.gwt.event.shared.HandlerRegistration;
+import com.google.gwt.user.client.Timer;
+import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.WindowResizeListener;
+
/** A collection of {@link ResizableWidget} that periodically checks the outer dimensions of a widget and redraws it as necessary.
* Every {@link ResizableWidgetCollection} uses a timer, so consider the cost when adding one.
*
\r
package com.badlogic.gdx.backends.gwt.widgets;\r
\r
+import com.google.gwt.event.dom.client.ClickEvent;\r
+import com.google.gwt.event.dom.client.ClickHandler;\r
+import com.google.gwt.user.client.ui.Button;\r
+import com.google.gwt.user.client.ui.DialogBox;\r
+import com.google.gwt.user.client.ui.HasHorizontalAlignment;\r
+import com.google.gwt.user.client.ui.HorizontalPanel;\r
+import com.google.gwt.user.client.ui.VerticalPanel;\r
+\r
public class TextInputDialogBox extends DialogBox {\r
private PlaceholderTextBox textBox;\r
\r
\r
import java.util.Collection;\r
\r
+import com.google.gwt.core.client.GWT;\r
+\r
public class ReflectionCache {\r
public static IReflectionCache instance = GWT.create(IReflectionCache.class);\r
\r
\r
package com.badlogic.gwtref.client;\r
\r
+import com.google.gwt.core.client.EntryPoint;\r
+\r
public class Test implements EntryPoint {\r
public static enum Enu {\r
Winter, Summer, Bleh;\r
\r
package com.badlogic.gwtref.gen;\r
\r
-import sun.nio.cs.Surrogate.Generator;\r
+import com.google.gwt.core.ext.Generator;\r
+import com.google.gwt.core.ext.GeneratorContext;\r
+import com.google.gwt.core.ext.TreeLogger;\r
+import com.google.gwt.core.ext.UnableToCompleteException;\r
+import com.google.gwt.core.ext.typeinfo.JClassType;\r
+import com.google.gwt.core.ext.typeinfo.TypeOracle;\r
+import static com.google.gwt.core.ext.TreeLogger.*;\r
\r
public class ReflectionCacheGenerator extends Generator {\r
@Override\r
import java.util.List;\r
import java.util.Set;\r
\r
+import com.google.gwt.core.ext.GeneratorContext;\r
+import com.google.gwt.core.ext.TreeLogger;\r
+import com.google.gwt.core.ext.TreeLogger.Type;\r
+import com.google.gwt.core.ext.typeinfo.JArrayType;\r
+import com.google.gwt.core.ext.typeinfo.JClassType;\r
+import com.google.gwt.core.ext.typeinfo.JEnumConstant;\r
+import com.google.gwt.core.ext.typeinfo.JEnumType;\r
+import com.google.gwt.core.ext.typeinfo.JField;\r
+import com.google.gwt.core.ext.typeinfo.JMethod;\r
+import com.google.gwt.core.ext.typeinfo.JPackage;\r
+import com.google.gwt.core.ext.typeinfo.JParameter;\r
+import com.google.gwt.core.ext.typeinfo.JPrimitiveType;\r
+import com.google.gwt.core.ext.typeinfo.JType;\r
+import com.google.gwt.core.ext.typeinfo.TypeOracle;\r
+import com.google.gwt.user.rebind.ClassSourceFileComposerFactory;\r
+import com.google.gwt.user.rebind.SourceWriter;\r
+\r
public class ReflectionCacheSourceCreator {\r
final TreeLogger logger;\r
final GeneratorContext context;\r
\r
package com.google.gwt.typedarrays.client;\r
\r
+import com.google.gwt.core.client.JavaScriptObject;\r
+\r
/** The ArrayBuffer type describes a buffer used to store data for the TypedArray interface and its subclasses.\r
* \r
* Taken from the Khronos TypedArrays Draft Spec as of Aug 30, 2010. */\r
\r
package com.google.gwt.typedarrays.client;\r
\r
+import com.google.gwt.core.client.JavaScriptObject;\r
+\r
/** The ArrayBufferView type holds information shared among all of the types of views of ArrayBuffers.\r
* \r
* Taken from the Khronos TypedArrays Draft Spec as of Aug 30, 2010. */\r
\r
package com.google.gwt.typedarrays.client;\r
\r
+import com.google.gwt.core.client.JsArrayInteger;\r
+import com.google.gwt.core.client.JsArrayNumber;\r
+\r
public class ArrayUtils {\r
\r
// TODO(jgw): Get rid of these conversions in web mode.\r
\r
package com.google.gwt.typedarrays.client;\r
\r
+import com.google.gwt.core.client.JsArrayNumber;\r
+\r
/** The typed array view types represent a view of an ArrayBuffer that allows for indexing and manipulation. The length of each of\r
* these is fixed.\r
* \r
\r
package com.google.gwt.typedarrays.client;\r
\r
+import com.google.gwt.core.client.JsArrayInteger;\r
+\r
/** The typed array view types represent a view of an ArrayBuffer that allows for indexing and manipulation. The length of each of\r
* these is fixed.\r
* \r
\r
package com.google.gwt.typedarrays.client;\r
\r
+import com.google.gwt.core.client.JsArrayInteger;\r
+\r
/** The typed array view types represent a view of an ArrayBuffer that allows for indexing and manipulation. The length of each of\r
* these is fixed.\r
* \r
\r
package com.google.gwt.typedarrays.client;\r
\r
+import com.google.gwt.core.client.JsArrayInteger;\r
+\r
/** The typed array view types represent a view of an ArrayBuffer that allows for indexing and manipulation. The length of each of\r
* these is fixed.\r
* \r
\r
package com.google.gwt.typedarrays.client;\r
\r
+import com.google.gwt.core.client.JsArrayInteger;\r
+\r
/** The typed array view types represent a view of an ArrayBuffer that allows for indexing and manipulation. The length of each of\r
* these is fixed.\r
* \r
\r
package com.google.gwt.typedarrays.client;\r
\r
+import com.google.gwt.core.client.JsArrayInteger;\r
+\r
/** The typed array view types represent a view of an ArrayBuffer that allows for indexing and manipulation. The length of each of\r
* these is fixed.\r
* \r
\r
package com.google.gwt.webgl.client;\r
\r
+import com.google.gwt.core.client.JavaScriptObject;\r
+\r
public class WebGLBuffer extends JavaScriptObject {\r
\r
protected WebGLBuffer () {\r
\r
package com.google.gwt.webgl.client;\r
\r
+import com.google.gwt.core.client.JavaScriptObject;\r
+\r
/** The WebGLContextAttributes interface contains drawing surface attributes and is passed as the second parameter to getContext. A\r
* native object may be supplied as this parameter; the specified attributes will be queried from this object. */\r
public class WebGLContextAttributes extends JavaScriptObject {\r
\r
package com.google.gwt.webgl.client;\r
\r
+import com.google.gwt.core.client.JavaScriptObject;\r
+\r
public class WebGLObject extends JavaScriptObject {\r
\r
protected WebGLObject () {\r
\r
package com.google.gwt.webgl.client;\r
\r
+import com.google.gwt.canvas.dom.client.ImageData;\r
+import com.google.gwt.core.client.JavaScriptObject;\r
+import com.google.gwt.core.client.JsArray;\r
+import com.google.gwt.core.client.JsArrayString;\r
+import com.google.gwt.dom.client.CanvasElement;\r
+import com.google.gwt.dom.client.ImageElement;\r
+import com.google.gwt.dom.client.VideoElement;\r
import com.google.gwt.typedarrays.client.ArrayBuffer;\r
import com.google.gwt.typedarrays.client.ArrayBufferView;\r
import com.google.gwt.typedarrays.client.ArrayUtils;\r