lexx.autocomplete
Interface SelectionPopup

All Superinterfaces:
javax.swing.ListCellRenderer
All Known Implementing Classes:
JavaPopup

public interface SelectionPopup
extends javax.swing.ListCellRenderer

This is the GUI side of autocompletion

This class takes list of methods/fields and user can choose which method/field he/she would like

Copyright (c) 2002-2003

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

Method Summary
 java.util.List getDisplayedList()
          Used for testing purposes to allow automated tests
 java.awt.Component getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean cellHasFocus)
          Used in JList is allows you to put graphics instead of calling toString()
 void run()
           
 void update(boolean wasInserted)
          Updates the GUI when user presses key
 

Method Detail

update

public void update(boolean wasInserted)
Updates the GUI when user presses key

Parameters:
wasInserted - - if the user inserted some text

run

public void run()

getDisplayedList

public java.util.List getDisplayedList()
Used for testing purposes to allow automated tests

Returns:
the list that is being displayed

getListCellRendererComponent

public java.awt.Component getListCellRendererComponent(javax.swing.JList list,
                                                       java.lang.Object value,
                                                       int index,
                                                       boolean isSelected,
                                                       boolean cellHasFocus)
Used in JList is allows you to put graphics instead of calling toString()

Specified by:
getListCellRendererComponent in interface javax.swing.ListCellRenderer