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:
09: package com.gwtext.client.core;
10:
11: import com.google.gwt.user.client.Element;
12:
13: /**
14: * Intefrace used / returned by certain {@link com.gwtext.client.core.DomQuery} methods.
15: *
16: * @see com.gwtext.client.core.DomQuery#compile(String)
17: * @see com.gwtext.client.core.DomQuery#compile(String, com.gwtext.client.core.DomQuery.SelectorType)
18: */
19: public interface DomQueryFunction {
20:
21: /**
22: * Execute the query represented by this function.
23: *
24: * @return result of query
25: */
26: Element[] query();
27:
28: /**
29: * Execute the query represented by this function starting with the specified root element.
30: *
31: * @param root the root element
32: * @return result of query
33: */
34: Element[] query(Element root);
35: }
|