jgnash.ui.components.autocomplete
Interface AutoCompleteModel

All Known Implementing Classes:
AutoCompleteFactory.MemoModel, AutoCompleteFactory.PayeeAccountModel, AutoCompleteFactory.PayeeModel, AutoCompleteFactory.TransactionModel, DefaultAutoCompleteModel

public interface AutoCompleteModel

Auto complete model interface

Version:
$Id$
Author:
Craig Cavanaugh, Don Brown

Method Summary
 java.lang.String doLookAhead(java.lang.String content)
          Performs a search to find the best matching String to the supplied String.
 java.lang.Object getExtraInfo(java.lang.String key)
          Returns extra information that might be stored with a found string returned by doLookAhead().
 

Method Detail

doLookAhead

java.lang.String doLookAhead(java.lang.String content)
Performs a search to find the best matching String to the supplied String. Returns null if nothing is found

Parameters:
content - content to search for
Returns:
string that was found if any

getExtraInfo

java.lang.Object getExtraInfo(java.lang.String key)
Returns extra information that might be stored with a found string returned by doLookAhead(). This information can be used to populate other fields based on matching the string key.

Parameters:
key - The string key most likely returned from doLookAhead()
Returns:
Any object that would give extra informaction about the key