01: /** this interface defines the contract of the TabModel, which is used
02: * while creating a custom TabExpander. The TabExpander comes with a
03: * default string array TabModel, but you may override it with your own
04: * after implementing ur own TabModel.
05: * @author rahul kumar, 2001. $Author: rahul_kumar $
06: * $Id: TabModel.java,v 1.1 2001/12/31 19:51:37 rahul_kumar Exp $
07: */package isql;
08:
09: public interface TabModel {
10: /** this method is expected to do the actual matching, returning the
11: * count of matches. It is expected that the user would use this to
12: * store in his own custom strcuture. i dont know
13: * whether it makes sense since it seems like an internal thing.
14: */
15: public int doMatch(String patt);
16:
17: /** returns count of matched items */
18: public int matchedCount();
19:
20: /** returns matched item based on index, user will want to iterate
21: * trough matches */
22: public String getMatched(int index);
23:
24: /** returns all matches */
25: public String[] getMatches();
26:
27: public String[] getMatches(String pattern);
28: }
|