Revision: 7895
Author: [email protected]
Date: Thu Apr  8 09:46:56 2010
Log: Add type params for ListRegistration instances.

Review at http://gwt-code-reviews.appspot.com/329801

http://code.google.com/p/google-web-toolkit/source/detail?r=7895

Modified:
 /trunk/bikeshed/src/com/google/gwt/bikeshed/tree/client/TreeNodeView.java
/trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksDesktop.java /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksMobile.java /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/TransactionTreeViewModel.java /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/tree/client/MyTreeViewModel.java

=======================================
--- /trunk/bikeshed/src/com/google/gwt/bikeshed/tree/client/TreeNodeView.java Fri Apr 2 11:25:19 2010 +++ /trunk/bikeshed/src/com/google/gwt/bikeshed/tree/client/TreeNodeView.java Thu Apr 8 09:46:56 2010
@@ -64,7 +64,7 @@
   /**
    * The list registration for the list of children.
    */
-  private ListRegistration listReg;
+  private ListRegistration<?> listReg;

   /**
    * The info about children of this node.
=======================================
--- /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksDesktop.java Wed Apr 7 05:51:51 2010 +++ /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksDesktop.java Thu Apr 8 09:46:56 2010
@@ -114,7 +114,7 @@
     // of the UiFactories need the models to instantiate their widgets.
     searchListModel = new AsyncListModel<StockQuote>() {
       @Override
- protected void onRangeChanged(ListRegistration reg, int start, int length) { + protected void onRangeChanged(ListRegistration<StockQuote> reg, int start, int length) {
         update();
       }
     };
@@ -122,7 +122,7 @@

     favoritesListModel = new AsyncListModel<StockQuote>() {
       @Override
- protected void onRangeChanged(ListRegistration reg, int start, int length) { + protected void onRangeChanged(ListRegistration<StockQuote> reg, int start, int length) {
         update();
       }
     };
@@ -130,7 +130,7 @@

     playerScoresListModel = new AsyncListModel<PlayerInfo>() {
       @Override
- protected void onRangeChanged(ListRegistration reg, int start, int length) { + protected void onRangeChanged(ListRegistration<PlayerInfo> reg, int start, int length) {
       }
     };

=======================================
--- /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksMobile.java Wed Apr 7 05:51:51 2010 +++ /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksMobile.java Thu Apr 8 09:46:56 2010
@@ -75,7 +75,7 @@
     // of the UiFactories need the models to instantiate their widgets.
     favoritesListModel = new AsyncListModel<StockQuote>() {
       @Override
- protected void onRangeChanged(ListRegistration reg, int start, int length) { + protected void onRangeChanged(ListRegistration<StockQuote> reg, int start, int length) {
         update();
       }
     };
=======================================
--- /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/TransactionTreeViewModel.java Wed Apr 7 05:51:51 2010 +++ /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/TransactionTreeViewModel.java Thu Apr 8 09:46:56 2010
@@ -52,7 +52,7 @@
     }

     @Override
- protected void onRangeChanged(ListRegistration reg, int start, int length) { + protected void onRangeChanged(ListRegistration<StockQuote> reg, int start, int length) {
       updater.update();
     }
   }
=======================================
--- /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/tree/client/MyTreeViewModel.java Wed Apr 7 05:51:51 2010 +++ /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/tree/client/MyTreeViewModel.java Thu Apr 8 09:46:56 2010
@@ -48,7 +48,7 @@
     }

     @Override
- protected void onRangeChanged(ListRegistration reg, int start, int length) { + protected void onRangeChanged(ListRegistration<Integer> reg, int start, int length) {
       List<Integer> values = new ArrayList<Integer>(1);
       values.add(wordLength);
       updateDataSize(1, true);
@@ -64,7 +64,7 @@
     }

     @Override
- protected void onRangeChanged(ListRegistration reg, int start, int length) { + protected void onRangeChanged(ListRegistration<String> reg, int start, int length) {
       String prefix = value.endsWith("...") ? value.substring(0,
           value.length() - 3) : value;
       dataService.getNext(prefix, new AsyncCallback<List<String>>() {

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

To unsubscribe, reply using "remove me" as the subject.

Reply via email to