my $class = "public interface $oclass";
if ($lazy) {
$class .= "<T> extends LazyBase<T>" if ($lazy);
- $head .= "import com.google.gwt.query.client.GQuery.Offset;\n";
+ $head .= "import com.google.gwt.query.client.GQuery.*;\n";
$head .= "import com.google.gwt.query.client.LazyBase;\n\n";
}
* Example {"user":{"name":"manolo","surname":"carrasco"}}
*/
String toJsonWithName();
-
+
/**
* return a string which represents the object in a queryString format.
*/
String getJsonName();
+ /**
+ * converts a JsonBuilder instance into another JsonBuilder type but
+ * preserving the underlying data object.
+ */
<T extends JsonBuilder> T as (Class<T> clz);
}
import java.util.List;
import java.util.Map;
import static com.google.gwt.query.client.plugins.QueuePlugin.Queue;
-import com.google.gwt.query.client.GQuery.Offset;
+import com.google.gwt.query.client.GQuery.*;
import com.google.gwt.query.client.LazyBase;
public interface LazyGQuery<T> extends LazyBase<T>{
}
public final String toJsonWithName() {
- return "{\"properties\":{" + toJson() + "}";
+ return toJsonWithName(getJsonName());
+ }
+
+ public final String toJsonWithName(String name) {
+ return "{\"" + name + "\":{" + toJson() + "}";
}
@SuppressWarnings("unchecked")
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.Offset;
+import com.google.gwt.query.client.GQuery.*;
import com.google.gwt.query.client.LazyBase;
public interface LazyEffects<T> extends LazyBase<T>{
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.Offset;
+import com.google.gwt.query.client.GQuery.*;
import com.google.gwt.query.client.LazyBase;
public interface LazyEvents<T> extends LazyBase<T>{
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.Offset;
+import com.google.gwt.query.client.GQuery.*;
import com.google.gwt.query.client.LazyBase;
public interface LazyWidgets<T> extends LazyBase<T>{