|
EchoPoint 2.1.0rc4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The AutoLookupModel provides for support for looking up
AutoLookupModel.Entry's based on partial-string matching.
The client cache uses a combination of Entry value, sortValue and
XhtmlFragement to produce a unique key for the
AutoLookupModel.Entry. This is then used to keep unique
copies of the entries in the client side cache and duplicates will not be
shown.
If you have values that map to one of more display values (such as postcode) then you should ensure that the value/sortValue/xhtml combination is indeed unique.
| Nested Class Summary | |
static class |
AutoLookupModel.DefaultEntry
A simple implementation of AutoLookupModel.Entry is
provided. |
static interface |
AutoLookupModel.Entry
AutoLookupModel.Entry represents the entries that can be
returned by the AutoLookupModel. |
| Field Summary | |
static int |
MATCH_IS_CASE_SENSITIVE
When this match option is in used, the lookup matching is case sensitive. |
static int |
MATCH_ONLY_FROM_START
When this match option is in used, the lookup matching is expected to only match from the start of the value string. |
| Method Summary | |
int |
getMatchOptions()
|
int |
getMaximumCacheAge()
|
int |
getMaximumCacheSize()
|
AutoLookupModel.Entry[] |
prePopulate()
This is called to prepopulate a cache of AutoLookupModel.Entry's on the client. |
AutoLookupModel.Entry[] |
searchEntries(java.lang.String partialSearchValue,
int matchOptions)
This is called to populate a cache of AutoLookupModel.Entry's
on the client based on the partial search value |
| Field Detail |
public static final int MATCH_ONLY_FROM_START
public static final int MATCH_IS_CASE_SENSITIVE
| Method Detail |
public int getMaximumCacheAge()
public int getMaximumCacheSize()
public int getMatchOptions()
public AutoLookupModel.Entry[] prePopulate()
AutoLookupModel.Entry's on the client.
AutoLookupModel.Entry's. This
may be zero length but may not be null.
public AutoLookupModel.Entry[] searchEntries(java.lang.String partialSearchValue,
int matchOptions)
AutoLookupModel.Entry's
on the client based on the partial search value
partialSearchValue - -
the partial search value to usematchOptions - -
the matching options in play which can be on of the following
values:
AutoLookupModel.Entry's. This
may be zeor length but may not be null.
|
EchoPoint 2.1.0rc4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||