org.wicketstuff.datatable_autocomplete.provider
Class TrieDataProvider<C>

java.lang.Object
  extended by org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<C>
      extended by org.wicketstuff.datatable_autocomplete.provider.TrieDataProvider<C>
All Implemented Interfaces:
Serializable, ISortStateLocator, ISortableDataProvider<C>, IClusterable, IDataProvider<C>, IDetachable

public class TrieDataProvider<C>
extends SortableDataProvider<C>

Author:
mocleiri A SortableDataProvider connector which loads the data from the backing Trie.
See Also:
Serialized Form

Field Summary
protected  ITrieProvider<C> trieProvider
           
 
Constructor Summary
TrieDataProvider(ITrieProvider<C> trieProvider, org.wicketstuff.datatable_autocomplete.trie.ITrieFilter<C> resultFilter, IModel<String> fieldStringModel, IProviderSorter<C> sorter, IModelProvider<C> modelProvider)
           
 
Method Summary
 void clear()
           
 void detach()
           
protected  IModel<String> getInputModel()
           
 boolean isMatchAnyWhereInString()
           
 Iterator<C> iterator(int first, int count)
           
 IModel<C> model(C object)
           
 void setMatchAnyWhereInString(boolean matchAnyWhereInString)
           
 void setMaxResultMap(Map<Integer,Integer> resultMatchMap)
          Used to set the upper bounds on results returned based on the length of the prefix being searched.
 void setNoResultsOnEmptyString(boolean noResultsOnEmptyString)
           
 int size()
           
 
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider
getSort, getSortState, setSort, setSort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trieProvider

protected final ITrieProvider<C> trieProvider
Constructor Detail

TrieDataProvider

public TrieDataProvider(ITrieProvider<C> trieProvider,
                        org.wicketstuff.datatable_autocomplete.trie.ITrieFilter<C> resultFilter,
                        IModel<String> fieldStringModel,
                        IProviderSorter<C> sorter,
                        IModelProvider<C> modelProvider)
Parameters:
fieldStringModel -
Method Detail

getInputModel

protected IModel<String> getInputModel()

setNoResultsOnEmptyString

public void setNoResultsOnEmptyString(boolean noResultsOnEmptyString)
Parameters:
noResultsOnEmptyString - the noResultsOnEmptyString to set

setMatchAnyWhereInString

public void setMatchAnyWhereInString(boolean matchAnyWhereInString)
Parameters:
matchAnyWhereInString - the matchAnyWhereInString to set

isMatchAnyWhereInString

public boolean isMatchAnyWhereInString()
Returns:
the matchAnyWhereInString

detach

public void detach()
Specified by:
detach in interface IDetachable
Overrides:
detach in class SortableDataProvider<C>

clear

public final void clear()

size

public int size()

iterator

public Iterator<C> iterator(int first,
                            int count)

model

public IModel<C> model(C object)

setMaxResultMap

public void setMaxResultMap(Map<Integer,Integer> resultMatchMap)
Used to set the upper bounds on results returned based on the length of the prefix being searched.

Parameters:
resultMatchMap -


Copyright © 2009-2013. All Rights Reserved.