common.gui.itemfinder
Interface ItemFinder<E>

All Known Implementing Classes:
AbstractItemFinder

public interface ItemFinder<E>

Author:
Matthieu Casanova

Method Summary
 java.lang.String getLabel()
          Returns the label for that ItemFinder.
 javax.swing.ListCellRenderer getListCellRenderer()
          Returns a ListCellRenderer that will render the celles of the dropdown list.
 javax.swing.ListModel getModel()
          The list model that is used by the ItemFinderWindow
 void selectionMade(E item)
          A selection has been made.
 void updateList(java.lang.String s)
          Some chars were typed, update the list
 

Method Detail

getLabel

java.lang.String getLabel()
Returns the label for that ItemFinder. If it is null, there is no label. Otherwise the label will be displayed on top of the textfield, if the panel is in an ItemFinderWindow, and on the left otherwise.

Returns:
the label or null

getModel

javax.swing.ListModel getModel()
The list model that is used by the ItemFinderWindow

Returns:
a listmodel

getListCellRenderer

javax.swing.ListCellRenderer getListCellRenderer()
Returns a ListCellRenderer that will render the celles of the dropdown list. If null, the default one is used

Returns:
the ListCellRenderer

updateList

void updateList(java.lang.String s)
Some chars were typed, update the list

Parameters:
s - the searched string

selectionMade

void selectionMade(E item)
A selection has been made. Do an action

Parameters:
item - the selected item