01: /*
02: * GWT-Ext Widget Library
03: * Copyright(c) 2007-2008, GWT-Ext.
04: * licensing@gwt-ext.com
05: *
06: * http://www.gwt-ext.com/license
07: */
08: package com.gwtext.client.data;
09:
10: /**
11: * Manager class that allows retreival of Stores by ID.
12: */
13: public class StoreMgr {
14:
15: private StoreMgr() {
16: }
17:
18: /**
19: * Gets a registered Store by id.
20: *
21: * @param storeID the Store ID
22: * @return the Store or null if not found
23: */
24: public static native Store lookup(String storeID) /*-{
25: var store = $wnd.Ext.StoreMgr.lookup(storeID);
26: if(store == null || store === undefined) {
27: return null;
28: }
29: return @com.gwtext.client.data.Store::instance(Lcom/google/gwt/core/client/JavaScriptObject;)(store);
30: }-*/;
31: }
|