01: /*
02: * @(#)SearchableProvider.java 10/11/2005
03: *
04: * Copyright 2002 - 2005 JIDE Software Inc. All rights reserved.
05: */
06: package com.jidesoft.swing;
07:
08: import java.awt.event.KeyEvent;
09:
10: /**
11: * <code>SearchableProvider</code> is an interface that works with {@link Searchable} to
12: * provide different way to supply the searching text.
13: */
14: public interface SearchableProvider {
15: /**
16: * Gets the searching text.
17: *
18: * @return the searching text.
19: */
20: String getSearchingText();
21:
22: /**
23: * Returns true if the SearchableProvider doesn't accept keyboard input directly. In this case,
24: * the Searchable component (such as JTextComponent, JTable, JList or JComboBox) will
25: *
26: * @return true or false.
27: */
28: boolean isPassive();
29:
30: void processKeyEvent(KeyEvent e);
31: }
|