edu.princeton.swing.text
Interface AutoCompleter

All Known Implementing Classes:
DefaultAutoCompleter, IndentingAutoCompleter, TCommentingAutoCompleter, TUncommentingAutoCompleter

public interface AutoCompleter

AutoCompleter is an interface which describes the auto-completion behavior of a PHighlightedTextArea.


Method Summary
 boolean interceptKeyEvent(PHighlightedTextArea comp, KeyEvent e)
          The PHighlightedTextArea will pass all key events to its auto-completer before processing the event for itself.
 

Method Detail

interceptKeyEvent

boolean interceptKeyEvent(PHighlightedTextArea comp,
                          KeyEvent e)
The PHighlightedTextArea will pass all key events to its auto-completer before processing the event for itself.

Parameters:
comp - The component which recieved the KeyEvent.
e - The event which occurred.
Returns:
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.