lexx.autocomplete
Class AutoCompleteListener

java.lang.Object
  |
  +--lexx.autocomplete.AutoCompleteListener
All Implemented Interfaces:
javax.swing.event.DocumentListener, java.util.EventListener
Direct Known Subclasses:
JavaAutoListener

public abstract class AutoCompleteListener
extends java.lang.Object
implements javax.swing.event.DocumentListener

Performs autocompletion once an AST has been produced

This class becomes activated when a DocumentEvent is called

Copyright (c) 2002-2003

Since:
15/02/2003
Version:
1.0
Author:
Mohammed Imran

Constructor Summary
AutoCompleteListener()
           
 
Method Summary
 void changedUpdate(javax.swing.event.DocumentEvent e)
           
abstract  java.util.List getCurrentDisplayedList()
          Used in automated testing
 void insertUpdate(javax.swing.event.DocumentEvent e)
           
 void removeUpdate(javax.swing.event.DocumentEvent e)
           
abstract  void update(javax.swing.event.DocumentEvent e, boolean wasInserted)
          This method is where you take the DocumentEvent and check if autocompletion can occur
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoCompleteListener

public AutoCompleteListener()
Method Detail

update

public abstract void update(javax.swing.event.DocumentEvent e,
                            boolean wasInserted)
This method is where you take the DocumentEvent and check if autocompletion can occur

Parameters:
e - when user changes the text
wasInserted - if the user inserted text into the source code

insertUpdate

public final void insertUpdate(javax.swing.event.DocumentEvent e)
Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

getCurrentDisplayedList

public abstract java.util.List getCurrentDisplayedList()
Used in automated testing

Returns:
the display of the pop

removeUpdate

public final void removeUpdate(javax.swing.event.DocumentEvent e)
Specified by:
removeUpdate in interface javax.swing.event.DocumentListener

changedUpdate

public final void changedUpdate(javax.swing.event.DocumentEvent e)
Specified by:
changedUpdate in interface javax.swing.event.DocumentListener