com.sun.j2ee.blueprints.ui.autocomplete
Class AutoCompleteUtilities

java.lang.Object
  extended by com.sun.j2ee.blueprints.ui.autocomplete.AutoCompleteUtilities

public class AutoCompleteUtilities
extends java.lang.Object

Utility methods for the AJAX Text component (and possibly other components we'll develop next)


Method Summary
static void addMatchingItems(java.lang.String[] sortedData, java.lang.String prefix, CompletionResult result)
          Return (via the result object) a short completion list from the given data using the given prefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addMatchingItems

public static void addMatchingItems(java.lang.String[] sortedData,
                                    java.lang.String prefix,
                                    CompletionResult result)
Return (via the result object) a short completion list from the given data using the given prefix

Parameters:
sortedData - A sorted array of Strings we want to pick completion results from
prefix - A prefix of some of the strings in the sortedData that the user has typed so far
result - A result object that will be populated with completion results by this method