edu.princeton.swing.text
Class DefaultAutoCompleter
java.lang.Object
edu.princeton.swing.text.DefaultAutoCompleter
- All Implemented Interfaces:
- AutoCompleter
public class DefaultAutoCompleter
- extends Object
- implements AutoCompleter
DefaultAutoCompleter is the simplest implementation of AutoCompleter.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAutoCompleter
public DefaultAutoCompleter()
interceptKeyEvent
public boolean interceptKeyEvent(PHighlightedTextArea comp,
KeyEvent e)
- The PHighlightedTextArea will pass all key events to its auto-completer before processing
the event for itself.
- Specified by:
interceptKeyEvent
in interface AutoCompleter
- 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.