Spiffy UI Framework

org.spiffyui.client.widgets.multivaluesuggest
Class MultivalueSuggestRESTHelper

java.lang.Object
  extended by org.spiffyui.client.widgets.multivaluesuggest.MultivalueSuggestHelper
      extended by org.spiffyui.client.widgets.multivaluesuggest.MultivalueSuggestRESTHelper

public abstract class MultivalueSuggestRESTHelper
extends MultivalueSuggestHelper

An abstract class that handles building of the REST endpoint URL and helps with parsing the JSON payload.


Constructor Summary
MultivalueSuggestRESTHelper(java.lang.String totalSizeKey, java.lang.String optionsKey, java.lang.String nameKey, java.lang.String valueKey)
          Constructor
 
Method Summary
abstract  java.lang.String buildUrl(java.lang.String q, int indexFrom, int indexTo)
          Build the REST URL with the specified parameters
 
Methods inherited from class org.spiffyui.client.widgets.multivaluesuggest.MultivalueSuggestHelper
getNameKey, getOptionsKey, getTotalSizeKey, getValueKey, setNameKey, setOptionsKey, setTotalSizeKey, setValueKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultivalueSuggestRESTHelper

public MultivalueSuggestRESTHelper(java.lang.String totalSizeKey,
                                   java.lang.String optionsKey,
                                   java.lang.String nameKey,
                                   java.lang.String valueKey)
Constructor

Parameters:
totalSizeKey - - total size JSON key
optionsKey - - options JSON key
nameKey - - name JSON key for each option
valueKey - - value JSON key for each option
Method Detail

buildUrl

public abstract java.lang.String buildUrl(java.lang.String q,
                                          int indexFrom,
                                          int indexTo)
Build the REST URL with the specified parameters

Parameters:
q - the query
indexFrom - the starting index
indexTo - the ending index
Returns:
the URL with the specified parameters

Spiffy UI Framework