package edu.princeton.swing.text; import java.awt.event.*; import edu.princeton.swing.*; /** * AutoCompleter is an interface which describes the auto-completion behavior of a * PHighlightedTextArea. * * @version 7.1 * @author btsang */ public interface AutoCompleter { /** * The PHighlightedTextArea will pass all key events to its auto-completer before processing * the event for itself. * * @param comp The component which recieved the KeyEvent. * @param e The event which occurred. * @return True if the component should ignore the KeyEvent (because this method already * performed a special action associated with it). In either case, KeyListeners of the * component will still be informed of the event. */ public abstract boolean interceptKeyEvent(PHighlightedTextArea comp, KeyEvent e); }