01: /** Interface to be implemented by those classes that wish to
02: * provide a customized implementation of tab expansion; The implementer
03: * would provide his own structure for the cache, and methods for searching
04: * and setting the cache, which he would use from his caller.
05: * A caller may use either of expand or getNextExpansion depending on
06: * comfort. I may remove one later if i find one particularly better.
07: * @author rahul kumar, 2001
08: */package isql;
09:
10: public interface ITabExpander {
11: /** expands the given pattern, for the given count
12: */
13: public String expand(String patt, int count);
14:
15: /** returns the first or next expansion for the given pattern
16: */
17: public String getNextExpansion(String patt);
18:
19: /** returns all expansions for the given string. This may possibly
20: * be used by methods which wish to display a list or combo.
21: */
22: public String[] getExpansions(String patt);
23:
24: /** returns all expansions for the previously searched pattern */
25: public String[] getExpansions();
26: }
|