Revision: 7922
Author: [email protected]
Date: Wed Apr 14 18:32:33 2010
Log: Fix ExpensesCustomized after ListView.Delegate refactor.
http://code.google.com/p/google-web-toolkit/source/detail?r=7922
Modified:
/trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/customized/CustomizedShell.java
=======================================
---
/trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/customized/CustomizedShell.java
Fri Apr 9 11:12:18 2010
+++
/trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/customized/CustomizedShell.java
Wed Apr 14 18:32:33 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
@@ -42,7 +42,8 @@
* UI shell for expenses sample app. A horrible clump of stuff that should
be
* refactored into proper MVP pieces.
*/
-public class CustomizedShell extends Composite implements
TakesValueList<Values<ReportKey>>, ReportChanged.Handler {
+public class CustomizedShell extends Composite implements
+ TakesValueList<Values<ReportKey>>, ReportChanged.Handler {
interface Listener {
void setPurpose(Values<ReportKey> report, String purpose);
}
@@ -120,7 +121,10 @@
@UiFactory
PagingTableListView<Values<ReportKey>> createListView() {
- return new PagingTableListView<Values<ReportKey>>(adapter, 10);
+ PagingTableListView<Values<ReportKey>> table = new
PagingTableListView<Values<ReportKey>>(
+ adapter, 10);
+ adapter.addView(table);
+ return table;
}
private void refresh() {
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
To unsubscribe, reply using "remove me" as the subject.