| CODENOTIFIER | HelpYou are not signed inSign in |
Project: gwt-ext
Revision: 1814
Author: mlim1972
Date: 30 Aug 2008 16:30:01
Changes:Issue 393. Added a local instance of the store so that it returns it when calling getStore. I don't know why it wouldn't return anything from the JSNI code.
Files:| ... | ...@@ -88,7 +88,8 @@ | |
| 88 | 88 | public class GridPanel extends Panel { |
| 89 | 89 | |
| 90 | 90 | private static JavaScriptObject configPrototype; |
| 91 | ||
| 91 | private Store store = null; | |
| 92 | ||
| 92 | 93 | static { |
| 93 | 94 | init(); |
| 94 | 95 | } |
| ... | ...@@ -193,8 +194,7 @@ | |
| 193 | 194 | * @return the Grids Store |
| 194 | 195 | */ |
| 195 | 196 | public Store getStore() { |
| 196 | JavaScriptObject storeJS = getAttributeAsJavaScriptObject("store"); | |
| 197 | return storeJS == null ? null : new Store(storeJS); | |
| 197 | return store; | |
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | /** |
| ... | ...@@ -805,6 +805,7 @@ | |
| 805 | 805 | */ |
| 806 | 806 | public void setStore(Store store) throws IllegalStateException { |
| 807 | 807 | setAttribute("store", store.getJsObj(), true); |
| 808 | this.store = store; | |
| 808 | 809 | } |
| 809 | 810 | |
| 810 | 811 | /** |