Revision: 8203
Author: rj...@google.com
Date: Mon May 24 14:18:21 2010
Log: Breaks the circular dependencies between app, user, valuestore and
requestfactory. Does so by eliminating the app.util package by:
* moving IsWidget to com.google.gwt.user.client.ui
* moving everything else, all of which is rendering and parsing
related, to a new package, com.google.gwt.input
and by moving the WriteOperations enum out of the RequestFactory
interface and into ValueStore.
Also pares down the inherits lines in ValueStore and RequestFactory to
make it clearer exactly what those modules require from the rest of
GWT.
Review at http://gwt-code-reviews.appspot.com/522803
Review by: amitman...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=8203
Added:
/branches/2.1/bikeshed/src/com/google/gwt/input
/branches/2.1/bikeshed/src/com/google/gwt/input/Input.gwt.xml
/branches/2.1/bikeshed/src/com/google/gwt/input/shared
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/BooleanParser.java
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/BooleanRenderer.java
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/DateTimeFormatRenderer.java
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/DoubleParser.java
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/DoubleRenderer.java
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/IntegerParser.java
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/IntegerRenderer.java
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/LongParser.java
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/LongRenderer.java
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/ParseException.java
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/Parser.java
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/PassthroughParser.java
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/PassthroughRenderer.java
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/Renderer.java
/branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/IsWidget.java
/branches/2.1/bikeshed/src/com/google/gwt/valuestore/shared/WriteOperation.java
Deleted:
/branches/2.1/bikeshed/src/com/google/gwt/app/util
Modified:
/branches/2.1/bikeshed/src/com/google/gwt/app/App.gwt.xml
/branches/2.1/bikeshed/src/com/google/gwt/app/client/CellListPlacePickerView.java
/branches/2.1/bikeshed/src/com/google/gwt/app/place/Activity.java
/branches/2.1/bikeshed/src/com/google/gwt/app/place/ActivityManager.java
/branches/2.1/bikeshed/src/com/google/gwt/app/place/PlacePicker.java
/branches/2.1/bikeshed/src/com/google/gwt/app/place/PlacePickerView.java
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/RequestFactory.gwt.xml
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/client/impl/RequestFactoryJsonImpl.java
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.java
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/server/SampleDataPopulator.java
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/shared/RequestFactory.java
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/shared/impl/RequestDataManager.java
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/Scaffold.java
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ScaffoldMobile.java
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/EmployeeRecordChanged.java
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/ExpenseRecordChanged.java
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/ReportRecordChanged.java
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/ScaffoldListPlaceRenderer.java
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/report/ReportListView.java
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/server/DataGenerator.java
/branches/2.1/bikeshed/src/com/google/gwt/user/User.gwt.xml
/branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/DoubleBox.java
/branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/IntegerBox.java
/branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/LongBox.java
/branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/TextBoxBase.java
/branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/ValueBox.java
/branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/ValueBoxBase.java
/branches/2.1/bikeshed/src/com/google/gwt/valuestore/ValueStore.gwt.xml
/branches/2.1/bikeshed/src/com/google/gwt/valuestore/client/DeltaValueStoreJsonImpl.java
/branches/2.1/bikeshed/src/com/google/gwt/valuestore/client/ValueStoreJsonImpl.java
/branches/2.1/bikeshed/src/com/google/gwt/valuestore/shared/RecordChangedEvent.java
/branches/2.1/bikeshed/src/com/google/gwt/valuestore/shared/impl/RecordSchema.java
/branches/2.1/bikeshed/src/com/google/gwt/valuestore/ui/AbstractRecordListActivity.java
/branches/2.1/bikeshed/src/com/google/gwt/valuestore/ui/PropertyColumn.java
/branches/2.1/bikeshed/src/com/google/gwt/valuestore/ui/RecordDetailsView.java
/branches/2.1/bikeshed/src/com/google/gwt/valuestore/ui/RecordEditView.java
/branches/2.1/bikeshed/src/com/google/gwt/valuestore/ui/RecordListView.java
/branches/2.1/bikeshed/test/com/google/gwt/app/place/ActivityManagerTest.java
=======================================
--- /dev/null
+++ /branches/2.1/bikeshed/src/com/google/gwt/input/Input.gwt.xml Mon May
24 14:18:21 2010
@@ -0,0 +1,18 @@
+<!--
+ Copyright 2010 Google Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ use this file except in compliance with the License. You may obtain a
copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations
under
+ the License.
+-->
+<module>
+ <source path="shared"/>
+</module>
=======================================
--- /dev/null
+++
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/BooleanParser.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.input.shared;
+
+/**
+ * A no-op renderer.
+ */
+public class BooleanParser implements Parser<Boolean> {
+
+ private static BooleanParser INSTANCE;
+
+ /**
+ * @return the instance of the no-op renderer
+ */
+ public static Parser<Boolean> instance() {
+ if (INSTANCE == null) {
+ INSTANCE = new BooleanParser();
+ }
+ return INSTANCE;
+ }
+
+ protected BooleanParser() {
+ }
+
+ public Boolean parse(String object) {
+ return Boolean.valueOf(object);
+ }
+}
=======================================
--- /dev/null
+++
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/BooleanRenderer.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.input.shared;
+
+/**
+ * Renderer of Boolean values.
+ */
+public class BooleanRenderer implements Renderer<Boolean> {
+ private static BooleanRenderer INSTANCE;
+
+ /**
+ * @return the instance
+ */
+ public static Renderer<Boolean> instance() {
+ if (INSTANCE == null) {
+ INSTANCE = new BooleanRenderer();
+ }
+ return INSTANCE;
+ }
+
+ protected BooleanRenderer() {
+ }
+
+ public String render(Boolean object) {
+ return String.valueOf(object);
+ }
+}
=======================================
--- /dev/null
+++
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/DateTimeFormatRenderer.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.input.shared;
+
+import com.google.gwt.i18n.client.DateTimeFormat;
+import com.google.gwt.i18n.client.TimeZone;
+
+import java.util.Date;
+
+/**
+ * Renders {...@link Date} objects with a {...@link DateTimeFormat}.
+ */
+public class DateTimeFormatRenderer implements Renderer<Date> {
+ private final DateTimeFormat format;
+ private final TimeZone timeZone;
+
+ public DateTimeFormatRenderer(DateTimeFormat format) {
+ this(format, null);
+ }
+
+ public DateTimeFormatRenderer(DateTimeFormat format, TimeZone timeZone) {
+ this.format = format;
+ this.timeZone = timeZone;
+ }
+
+ public String render(Date object) {
+ return timeZone == null ? format.format(object) : format.format(object,
+ timeZone);
+ }
+}
=======================================
--- /dev/null
+++
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/DoubleParser.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.input.shared;
+
+/**
+ * A no-op renderer.
+ */
+public class DoubleParser implements Parser<Double> {
+
+ private static DoubleParser INSTANCE;
+
+ /**
+ * @return the instance of the no-op renderer
+ */
+ public static Parser<Double> instance() {
+ if (INSTANCE == null) {
+ INSTANCE = new DoubleParser();
+ }
+ return INSTANCE;
+ }
+
+ protected DoubleParser() {
+ }
+
+ public Double parse(String object) {
+ try {
+ return Double.valueOf(object);
+ } catch (NumberFormatException e) {
+ throw new ParseException(e);
+ }
+ }
+}
=======================================
--- /dev/null
+++
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/DoubleRenderer.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.input.shared;
+
+/**
+ * Renderer of Long values.
+ */
+public class DoubleRenderer implements Renderer<Double> {
+ private static DoubleRenderer INSTANCE;
+
+ /**
+ * @return the instance
+ */
+ public static Renderer<Double> instance() {
+ if (INSTANCE == null) {
+ INSTANCE = new DoubleRenderer();
+ }
+ return INSTANCE;
+ }
+
+ protected DoubleRenderer() {
+ }
+
+ public String render(Double object) {
+ return String.valueOf(object);
+ }
+}
=======================================
--- /dev/null
+++
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/IntegerParser.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.input.shared;
+
+/**
+ * A no-op renderer.
+ */
+public class IntegerParser implements Parser<Integer> {
+
+ private static IntegerParser INSTANCE;
+
+ /**
+ * @return the instance of the no-op renderer
+ */
+ public static Parser<Integer> instance() {
+ if (INSTANCE == null) {
+ INSTANCE = new IntegerParser();
+ }
+ return INSTANCE;
+ }
+
+ protected IntegerParser() {
+ }
+
+ public Integer parse(String object) {
+ try {
+ return Integer.valueOf(object);
+ } catch (NumberFormatException e) {
+ throw new ParseException(e);
+ }
+ }
+}
=======================================
--- /dev/null
+++
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/IntegerRenderer.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.input.shared;
+
+/**
+ * Renderer of Integer values.
+ */
+public class IntegerRenderer implements Renderer<Integer> {
+ private static IntegerRenderer INSTANCE;
+
+ /**
+ * @return the instance
+ */
+ public static Renderer<Integer> instance() {
+ if (INSTANCE == null) {
+ INSTANCE = new IntegerRenderer();
+ }
+ return INSTANCE;
+ }
+
+ protected IntegerRenderer() {
+ }
+
+ public String render(Integer object) {
+ return String.valueOf(object);
+ }
+}
=======================================
--- /dev/null
+++ /branches/2.1/bikeshed/src/com/google/gwt/input/shared/LongParser.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.input.shared;
+
+/**
+ * A no-op renderer.
+ */
+public class LongParser implements Parser<Long> {
+
+ private static LongParser INSTANCE;
+
+ /**
+ * @return the instance of the no-op renderer
+ */
+ public static Parser<Long> instance() {
+ if (INSTANCE == null) {
+ INSTANCE = new LongParser();
+ }
+ return INSTANCE;
+ }
+
+ protected LongParser() {
+ }
+
+ public Long parse(String object) {
+ try {
+ return Long.valueOf(object);
+ } catch (NumberFormatException e) {
+ throw new ParseException(e);
+ }
+ }
+}
=======================================
--- /dev/null
+++
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/LongRenderer.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.input.shared;
+
+/**
+ * Renderer of Long values.
+ */
+public class LongRenderer implements Renderer<Long> {
+ private static LongRenderer INSTANCE;
+
+ /**
+ * @return the instance
+ */
+ public static Renderer<Long> instance() {
+ if (INSTANCE == null) {
+ INSTANCE = new LongRenderer();
+ }
+ return INSTANCE;
+ }
+
+ protected LongRenderer() {
+ }
+
+ public String render(Long object) {
+ return String.valueOf(object);
+ }
+}
=======================================
--- /dev/null
+++
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/ParseException.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.input.shared;
+
+/**
+ * Exception class indicating parsing errors.
+ */
+public class ParseException extends RuntimeException {
+
+ private final String rawInput;
+ private final int offset;
+
+ public ParseException(Throwable e) {
+ this("", "", 0, e);
+ }
+
+ public ParseException(String rawInput) {
+ this("", rawInput, 0, null);
+ }
+
+ public ParseException(String rawInput, int offset) {
+ this("", rawInput, offset, null);
+ }
+
+ public ParseException(String message, String rawInput, int offset) {
+ this(message, rawInput, offset, null);
+ }
+
+ public ParseException(String message, String rawInput, int offset,
Throwable e) {
+ super(message, e);
+ this.rawInput = rawInput;
+ this.offset = offset;
+ }
+
+ public String getInput() {
+ return rawInput;
+ }
+
+ public int getOffset() {
+ return offset;
+ }
+}
=======================================
--- /dev/null
+++ /branches/2.1/bikeshed/src/com/google/gwt/input/shared/Parser.java Mon
May 24 14:18:21 2010
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.input.shared;
+
+/**
+ * An object that can parse text and return a value.
+ *
+ * @param <T> the type to parse
+ */
+public interface Parser<T> {
+ T parse(String s) throws ParseException;
+}
=======================================
--- /dev/null
+++
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/PassthroughParser.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.input.shared;
+
+/**
+ * A no-op renderer.
+ */
+public class PassthroughParser implements Parser<String> {
+
+ private static PassthroughParser INSTANCE;
+
+ /**
+ * @return the instance of the no-op renderer
+ */
+ public static Parser<String> instance() {
+ if (INSTANCE == null) {
+ INSTANCE = new PassthroughParser();
+ }
+ return INSTANCE;
+ }
+
+ protected PassthroughParser() {
+ }
+
+ public String parse(String object) {
+ return object;
+ }
+}
=======================================
--- /dev/null
+++
/branches/2.1/bikeshed/src/com/google/gwt/input/shared/PassthroughRenderer.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.input.shared;
+
+/**
+ * A no-op renderer.
+ */
+public class PassthroughRenderer implements Renderer<String> {
+
+ private static PassthroughRenderer INSTANCE;
+
+ /**
+ * @return the instance of the no-op renderer
+ */
+ public static Renderer<String> instance() {
+ if (INSTANCE == null) {
+ INSTANCE = new PassthroughRenderer();
+ }
+ return INSTANCE;
+ }
+
+ protected PassthroughRenderer() {
+ }
+
+ public String render(String object) {
+ return object;
+ }
+}
=======================================
--- /dev/null
+++ /branches/2.1/bikeshed/src/com/google/gwt/input/shared/Renderer.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.input.shared;
+
+/**
+ * An object that can render other objects of a particular type into
plain-text
+ * form.
+ * <p>
+ * TODO: steal the slightly richer version from Guava
+ *
+ * @param <T> the type to render
+ */
+public interface Renderer<T> {
+ /**
+ * Renders {...@code object} as plain text.
+ */
+ String render(T object);
+}
=======================================
--- /dev/null
+++ /branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/IsWidget.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.user.client.ui;
+
+/**
+ * Extended by View interfaces that are likely to be implemented by
Widgets.
+ * Provides access to that widget, if it exists, without compromising the
+ * ability to provide mock view instance in JRE unit tests.
+ */
+public interface IsWidget {
+ Widget asWidget();
+}
=======================================
--- /dev/null
+++
/branches/2.1/bikeshed/src/com/google/gwt/valuestore/shared/WriteOperation.java
Mon May 24 14:18:21 2010
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package com.google.gwt.valuestore.shared;
+
+/**
+ * The write operation enum used in DeltaValueStore.
+ */
+public enum WriteOperation {
+ CREATE, UPDATE, DELETE
+}
=======================================
--- /branches/2.1/bikeshed/src/com/google/gwt/app/App.gwt.xml Fri May 21
11:31:55 2010
+++ /branches/2.1/bikeshed/src/com/google/gwt/app/App.gwt.xml Mon May 24
14:18:21 2010
@@ -6,7 +6,6 @@
<source path="place"/>
<source path="client"/>
- <source path="util"/>
<generate-with class="com.google.gwt.app.rebind.EditorSupportGenerator">
<when-type-assignable class='com.google.gwt.app.client.EditorSupport'/>
</generate-with>
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/app/client/CellListPlacePickerView.java
Thu May 13 09:13:58 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/app/client/CellListPlacePickerView.java
Mon May 24 14:18:21 2010
@@ -17,8 +17,8 @@
import com.google.gwt.app.place.Place;
import com.google.gwt.app.place.PlacePickerView;
-import com.google.gwt.app.util.Renderer;
import com.google.gwt.cell.client.AbstractCell;
+import com.google.gwt.input.shared.Renderer;
import com.google.gwt.user.cellview.client.CellList;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.view.client.SingleSelectionModel;
=======================================
--- /branches/2.1/bikeshed/src/com/google/gwt/app/place/Activity.java Wed
Apr 28 14:11:42 2010
+++ /branches/2.1/bikeshed/src/com/google/gwt/app/place/Activity.java Mon
May 24 14:18:21 2010
@@ -15,7 +15,7 @@
*/
package com.google.gwt.app.place;
-import com.google.gwt.app.util.IsWidget;
+import com.google.gwt.user.client.ui.IsWidget;
/**
* Implemented by objects that control a piece of user interface, with a
life
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/app/place/ActivityManager.java
Wed May 12 18:36:06 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/app/place/ActivityManager.java
Mon May 24 14:18:21 2010
@@ -16,8 +16,8 @@
package com.google.gwt.app.place;
import com.google.gwt.app.place.Activity.Display;
-import com.google.gwt.app.util.IsWidget;
import com.google.gwt.event.shared.HandlerManager;
+import com.google.gwt.user.client.ui.IsWidget;
/**
* Manages {...@link Activity} objects that should be kicked off in response
to
=======================================
--- /branches/2.1/bikeshed/src/com/google/gwt/app/place/PlacePicker.java
Tue May 11 09:04:15 2010
+++ /branches/2.1/bikeshed/src/com/google/gwt/app/place/PlacePicker.java
Mon May 24 14:18:21 2010
@@ -15,7 +15,7 @@
*/
package com.google.gwt.app.place;
-import com.google.gwt.app.util.Renderer;
+import com.google.gwt.input.shared.Renderer;
import java.util.List;
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/app/place/PlacePickerView.java
Tue May 11 09:04:15 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/app/place/PlacePickerView.java
Mon May 24 14:18:21 2010
@@ -15,8 +15,8 @@
*/
package com.google.gwt.app.place;
-import com.google.gwt.app.util.IsWidget;
-import com.google.gwt.app.util.Renderer;
+import com.google.gwt.input.shared.Renderer;
+import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Widget;
import java.util.List;
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/RequestFactory.gwt.xml
Fri Apr 9 11:25:51 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/RequestFactory.gwt.xml
Mon May 24 14:18:21 2010
@@ -16,7 +16,8 @@
the License.
-->
<module>
- <inherits name='com.google.gwt.user.User'/>
+ <inherits name='com.google.gwt.core.Core'/>
+ <inherits name='com.google.gwt.http.HTTP'/>
<inherits name='com.google.gwt.valuestore.ValueStore'/>
<source path="client"/>
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/client/impl/RequestFactoryJsonImpl.java
Thu May 13 12:50:46 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/client/impl/RequestFactoryJsonImpl.java
Mon May 24 14:18:21 2010
@@ -41,15 +41,8 @@
public abstract class RequestFactoryJsonImpl implements RequestFactory {
private ValueStoreJsonImpl valueStore;
+
private HandlerManager handlerManager;
-
- /**
- * @param handlerManager
- */
- protected void init(HandlerManager handlerManager, RecordToTypeMap map) {
- this.valueStore = new ValueStoreJsonImpl(handlerManager, map);
- this.handlerManager = handlerManager;
- }
public void fire(final RequestObject<?> requestObject) {
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,
@@ -137,6 +130,14 @@
}
};
}
+
+ /**
+ * @param handlerManager
+ */
+ protected void init(HandlerManager handlerManager, RecordToTypeMap map) {
+ this.valueStore = new ValueStoreJsonImpl(handlerManager, map);
+ this.handlerManager = handlerManager;
+ }
private void postRequestEvent(State received) {
handlerManager.fireEvent(new RequestEvent(received));
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.java
Thu May 6 12:47:56 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.java
Mon May 24 14:18:21 2010
@@ -39,7 +39,6 @@
import com.google.gwt.requestfactory.shared.RecordListRequest;
import com.google.gwt.requestfactory.shared.RecordRequest;
import com.google.gwt.requestfactory.shared.ServerOperation;
-import com.google.gwt.requestfactory.shared.RequestFactory.WriteOperation;
import com.google.gwt.requestfactory.shared.impl.RequestDataManager;
import com.google.gwt.user.rebind.ClassSourceFileComposerFactory;
import com.google.gwt.user.rebind.PrintWriterManager;
@@ -47,6 +46,7 @@
import com.google.gwt.valuestore.shared.Property;
import com.google.gwt.valuestore.shared.Record;
import com.google.gwt.valuestore.shared.RecordChangedEvent;
+import com.google.gwt.valuestore.shared.WriteOperation;
import com.google.gwt.valuestore.shared.impl.RecordImpl;
import com.google.gwt.valuestore.shared.impl.RecordJsoImpl;
import com.google.gwt.valuestore.shared.impl.RecordSchema;
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java
Sat May 15 13:21:57 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java
Mon May 24 14:18:21 2010
@@ -19,10 +19,10 @@
import com.google.gwt.requestfactory.shared.ServerType;
import com.google.gwt.requestfactory.shared.RequestFactory.Config;
import
com.google.gwt.requestfactory.shared.RequestFactory.RequestDefinition;
-import com.google.gwt.requestfactory.shared.RequestFactory.WriteOperation;
import com.google.gwt.requestfactory.shared.impl.RequestDataManager;
import com.google.gwt.valuestore.shared.Property;
import com.google.gwt.valuestore.shared.Record;
+import com.google.gwt.valuestore.shared.WriteOperation;
import org.json.JSONArray;
import org.json.JSONException;
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/server/SampleDataPopulator.java
Thu May 13 07:44:39 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/server/SampleDataPopulator.java
Mon May 24 14:18:21 2010
@@ -17,8 +17,8 @@
import com.google.gwt.dev.util.Util;
import com.google.gwt.requestfactory.shared.RequestFactory;
-import com.google.gwt.requestfactory.shared.RequestFactory.WriteOperation;
import com.google.gwt.requestfactory.shared.impl.RequestDataManager;
+import com.google.gwt.valuestore.shared.WriteOperation;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/shared/RequestFactory.java
Tue May 11 18:52:23 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/shared/RequestFactory.java
Mon May 24 14:18:21 2010
@@ -103,11 +103,4 @@
void init(HandlerManager eventBus);
SyncRequest syncRequest(DeltaValueStore deltaValueStore);
-
- /**
- * The write operation enum used in DeltaValueStore.
- */
- enum WriteOperation {
- CREATE, UPDATE, DELETE
- }
-}
+}
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/shared/impl/RequestDataManager.java
Wed May 12 14:52:17 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/requestfactory/shared/impl/RequestDataManager.java
Mon May 24 14:18:21 2010
@@ -1,12 +1,12 @@
/*
* Copyright 2010 Google Inc.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License"); you may
not
* use this file except in compliance with the License. You may obtain a
copy of
* the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -21,7 +21,7 @@
/**
* An utility class to manage the encoding and decoding of parameters and
* methodNames.
- *
+ *
* TODO: add appropriate unit tests.
*/
public class RequestDataManager {
@@ -43,10 +43,10 @@
/**
* Returns the string that encodes the request data.
- *
+ *
*/
- public static Map<String, String> getRequestMap(
- String operation, Object values[], String content) {
+ public static Map<String, String> getRequestMap(String operation,
+ Object values[], String content) {
Map<String, String> requestMap = new HashMap<String, String>();
requestMap.put(OPERATION_TOKEN, operation);
if (values != null) {
@@ -63,7 +63,7 @@
/**
* Encodes parameter value.
- *
+ *
*/
private static Object encodeParameterValue(String parameterType,
String parameterValue) {
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/Scaffold.java
Tue May 18 06:37:32 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/Scaffold.java
Mon May 24 14:18:21 2010
@@ -19,7 +19,6 @@
import com.google.gwt.app.place.ActivityManager;
import com.google.gwt.app.place.PlaceController;
import com.google.gwt.app.place.PlacePicker;
-import com.google.gwt.app.util.IsWidget;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Document;
@@ -33,6 +32,7 @@
import com.google.gwt.sample.expenses.gwt.request.ExpensesRequestFactory;
import com.google.gwt.sample.expenses.gwt.ui.ListActivitiesMapper;
import com.google.gwt.sample.expenses.gwt.ui.ScaffoldListPlaceRenderer;
+import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.valuestore.shared.Record;
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ScaffoldMobile.java
Tue May 4 17:35:40 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ScaffoldMobile.java
Mon May 24 14:18:21 2010
@@ -20,7 +20,6 @@
import com.google.gwt.app.place.ActivityMapper;
import com.google.gwt.app.place.PlaceController;
import com.google.gwt.app.place.PlacePicker;
-import com.google.gwt.app.util.IsWidget;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Document;
@@ -32,6 +31,7 @@
import com.google.gwt.sample.expenses.gwt.request.ExpensesRequestFactory;
import com.google.gwt.sample.expenses.gwt.ui.ListActivitiesMapper;
import com.google.gwt.sample.expenses.gwt.ui.ScaffoldListPlaceRenderer;
+import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.valuestore.shared.Record;
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/EmployeeRecordChanged.java
Thu Apr 22 16:39:32 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/EmployeeRecordChanged.java
Mon May 24 14:18:21 2010
@@ -18,7 +18,7 @@
import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.valuestore.shared.RecordChangedEvent;
-import com.google.gwt.requestfactory.shared.RequestFactory.WriteOperation;
+import com.google.gwt.valuestore.shared.WriteOperation;
/**
* "API Generated" event posted when the values of a {...@link EmployeeRecord}
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/ExpenseRecordChanged.java
Fri Apr 30 09:10:49 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/ExpenseRecordChanged.java
Mon May 24 14:18:21 2010
@@ -18,7 +18,7 @@
import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.valuestore.shared.RecordChangedEvent;
-import com.google.gwt.requestfactory.shared.RequestFactory.WriteOperation;
+import com.google.gwt.valuestore.shared.WriteOperation;
/**
* "API Generated" event posted when the values of an {...@link ExpenseRecord}
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/ReportRecordChanged.java
Thu Apr 22 16:39:32 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/ReportRecordChanged.java
Mon May 24 14:18:21 2010
@@ -18,7 +18,7 @@
import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.valuestore.shared.RecordChangedEvent;
-import com.google.gwt.requestfactory.shared.RequestFactory.WriteOperation;
+import com.google.gwt.valuestore.shared.WriteOperation;
/**
* "API Generated" event posted when the values of a {...@link EmployeeRecord}
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/ScaffoldListPlaceRenderer.java
Wed Apr 28 13:19:55 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/ScaffoldListPlaceRenderer.java
Mon May 24 14:18:21 2010
@@ -15,7 +15,7 @@
*/
package com.google.gwt.sample.expenses.gwt.ui;
-import com.google.gwt.app.util.Renderer;
+import com.google.gwt.input.shared.Renderer;
import com.google.gwt.sample.expenses.gwt.client.place.ListScaffoldPlace;
import com.google.gwt.sample.expenses.gwt.request.EmployeeRecord;
import com.google.gwt.sample.expenses.gwt.request.ReportRecord;
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/report/ReportListView.java
Thu May 13 09:13:58 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/report/ReportListView.java
Mon May 24 14:18:21 2010
@@ -15,9 +15,9 @@
*/
package com.google.gwt.sample.expenses.gwt.ui.report;
-import com.google.gwt.app.util.DateTimeFormatRenderer;
import com.google.gwt.core.client.GWT;
import com.google.gwt.i18n.client.DateTimeFormat;
+import com.google.gwt.input.shared.DateTimeFormatRenderer;
import com.google.gwt.sample.expenses.gwt.request.ReportRecord;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/server/DataGenerator.java
Wed May 12 14:52:17 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/server/DataGenerator.java
Mon May 24 14:18:21 2010
@@ -16,10 +16,10 @@
package com.google.gwt.sample.expenses.server;
import com.google.gwt.dev.util.Util;
-import com.google.gwt.requestfactory.shared.RequestFactory.WriteOperation;
import com.google.gwt.sample.expenses.server.domain.Employee;
import com.google.gwt.sample.expenses.server.domain.Expense;
import com.google.gwt.sample.expenses.server.domain.Report;
+import com.google.gwt.valuestore.shared.WriteOperation;
import org.json.JSONArray;
import org.json.JSONException;
=======================================
--- /branches/2.1/bikeshed/src/com/google/gwt/user/User.gwt.xml Tue May 11
20:56:53 2010
+++ /branches/2.1/bikeshed/src/com/google/gwt/user/User.gwt.xml Mon May 24
14:18:21 2010
@@ -18,8 +18,7 @@
<!-- Most new code should inherit this
module. -->
<!--
-->
<module>
- <!-- TODO this is backward, app should depend upon user. Need to move
parser, renderer here -->
- <inherits name="com.google.gwt.app.App"/>
+ <inherits name="com.google.gwt.input.Input"/>
<inherits name="com.google.gwt.core.Core"/>
<inherits name="com.google.gwt.event.Event"/>
<inherits name="com.google.gwt.animation.Animation"/>
=======================================
--- /branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/DoubleBox.java
Thu May 13 07:44:39 2010
+++ /branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/DoubleBox.java
Mon May 24 14:18:21 2010
@@ -15,9 +15,9 @@
*/
package com.google.gwt.user.client.ui;
-import com.google.gwt.app.util.DoubleParser;
-import com.google.gwt.app.util.DoubleRenderer;
import com.google.gwt.dom.client.Document;
+import com.google.gwt.input.shared.DoubleParser;
+import com.google.gwt.input.shared.DoubleRenderer;
/**
* A ValueBox that uses {...@link DoubleParser} and {...@link DoubleRenderer}.
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/IntegerBox.java
Tue May 11 16:51:18 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/IntegerBox.java
Mon May 24 14:18:21 2010
@@ -15,9 +15,9 @@
*/
package com.google.gwt.user.client.ui;
-import com.google.gwt.app.util.IntegerParser;
-import com.google.gwt.app.util.IntegerRenderer;
import com.google.gwt.dom.client.Document;
+import com.google.gwt.input.shared.IntegerParser;
+import com.google.gwt.input.shared.IntegerRenderer;
/**
* A ValueBox that uses {...@link IntegerParser} and {...@link
IntegerRenderer}.
=======================================
--- /branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/LongBox.java
Thu May 13 07:44:39 2010
+++ /branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/LongBox.java
Mon May 24 14:18:21 2010
@@ -15,9 +15,9 @@
*/
package com.google.gwt.user.client.ui;
-import com.google.gwt.app.util.LongParser;
-import com.google.gwt.app.util.LongRenderer;
import com.google.gwt.dom.client.Document;
+import com.google.gwt.input.shared.LongParser;
+import com.google.gwt.input.shared.LongRenderer;
/**
* A ValueBox that uses {...@link LongParser} and {...@link LongRenderer}.
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/TextBoxBase.java
Tue May 11 16:51:18 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/TextBoxBase.java
Mon May 24 14:18:21 2010
@@ -15,9 +15,9 @@
*/
package com.google.gwt.user.client.ui;
-import com.google.gwt.app.util.PassthroughParser;
-import com.google.gwt.app.util.PassthroughRenderer;
import com.google.gwt.dom.client.Element;
+import com.google.gwt.input.shared.PassthroughParser;
+import com.google.gwt.input.shared.PassthroughRenderer;
/**
* Legacy abstract base class for all text entry widgets.
=======================================
--- /branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/ValueBox.java
Tue May 11 16:51:18 2010
+++ /branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/ValueBox.java
Mon May 24 14:18:21 2010
@@ -15,13 +15,13 @@
*/
package com.google.gwt.user.client.ui;
-import com.google.gwt.app.util.Parser;
-import com.google.gwt.app.util.Renderer;
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.i18n.client.BidiUtils;
import com.google.gwt.i18n.client.HasDirection;
+import com.google.gwt.input.shared.Parser;
+import com.google.gwt.input.shared.Renderer;
/**
* A standard single-line text box.
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/ValueBoxBase.java
Thu May 13 07:44:39 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/user/client/ui/ValueBoxBase.java
Mon May 24 14:18:21 2010
@@ -15,9 +15,6 @@
*/
package com.google.gwt.user.client.ui;
-import com.google.gwt.app.util.ParseException;
-import com.google.gwt.app.util.Parser;
-import com.google.gwt.app.util.Renderer;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.ChangeEvent;
@@ -26,6 +23,9 @@
import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.event.shared.HandlerRegistration;
+import com.google.gwt.input.shared.ParseException;
+import com.google.gwt.input.shared.Parser;
+import com.google.gwt.input.shared.Renderer;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.TextBoxBase.TextAlignConstant;
=======================================
--- /branches/2.1/bikeshed/src/com/google/gwt/valuestore/ValueStore.gwt.xml
Mon Apr 26 09:13:06 2010
+++ /branches/2.1/bikeshed/src/com/google/gwt/valuestore/ValueStore.gwt.xml
Mon May 24 14:18:21 2010
@@ -16,7 +16,8 @@
the License.
-->
<module>
- <inherits name='com.google.gwt.user.User'/>
+ <inherits name='com.google.gwt.core.Core'/>
+ <inherits name='com.google.gwt.event.EventBase'/>
<source path="client"/>
<source path="shared"/>
=======================================
---
/branches/2.1/bikeshed/src/com/google/gwt/valuestore/client/DeltaValueStoreJsonImpl.java
Fri May 7 15:22:39 2010
+++
/branches/2.1/bikeshed/src/com/google/gwt/valuestore/client/DeltaValueStoreJsonImpl.java
Mon May 24 14:18:21 2010
@@ -19,10 +19,10 @@
import com.google.gwt.core.client.JsArray;
import com.google.gwt.requestfactory.client.impl.RecordToTypeMap;
import com.google.gwt.requestfactory.shared.SyncResult;
-import com.google.gwt.requestfactory.shared.RequestFactory.WriteOperation;
import com.google.gwt.valuestore.shared.DeltaValueStore;
import com.google.gwt.valuestore.shared.Property;
import com.google.gwt.valuestore.shared.Record;
+import com.google.gwt.valuestore.shared.WriteOperation;
import com.google.gwt.valuestore.shared.impl.RecordImpl;
import com.google.gwt.valuestore.shared.impl.RecordJsoImpl;
import com.google.gwt.valuestore.shared.impl.RecordSchema;
=======================================
***Additional files exist in this changeset.***
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors