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: * Store query function.
12: *
13: * @see com.gwtext.client.data.Store#queryBy(StoreQueryFunction)
14: */
15: public interface StoreQueryFunction {
16:
17: /**
18: * Callback function invoked by {@link com.gwtext.client.data.Store#queryBy(StoreQueryFunction)}.
19: * Return true if the record matches.
20: *
21: * @param record the record to test
22: * @param id the record ID
23: * @return true to include Record in result
24: * @see com.gwtext.client.data.Store#queryBy(StoreQueryFunction)
25: */
26: public boolean test(Record record, String id);
27: }
|