Spiffy UI Framework

org.spiffyui.client.widgets.multivaluesuggest
Class MultivalueSuggestBoxBase.OptionSuggestion

java.lang.Object
  extended by org.spiffyui.client.widgets.multivaluesuggest.MultivalueSuggestBoxBase.OptionSuggestion
Enclosing class:
MultivalueSuggestBoxBase

public class MultivalueSuggestBoxBase.OptionSuggestion
extends java.lang.Object

A bean to serve as a custom suggestion so that the value is available and the replace will look like it is supporting multivalues


Constructor Summary
protected MultivalueSuggestBoxBase.OptionSuggestion(java.lang.String displ, java.lang.String val, java.lang.String replacePre, java.lang.String query)
          Constructor for regular options
 
Method Summary
 java.lang.String getDisplayString()
           
 java.lang.String getName()
          Get the name of the option.
 java.lang.String getReplacementString()
           
 java.lang.String getValue()
          Get the value of the option
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultivalueSuggestBoxBase.OptionSuggestion

protected MultivalueSuggestBoxBase.OptionSuggestion(java.lang.String displ,
                                                    java.lang.String val,
                                                    java.lang.String replacePre,
                                                    java.lang.String query)
Constructor for regular options

Parameters:
displ - - the name of the option
val - - the value of the option
replacePre - - the current contents of the text box
query - - the query
Method Detail

getDisplayString

public java.lang.String getDisplayString()

getReplacementString

public java.lang.String getReplacementString()

getValue

public java.lang.String getValue()
Get the value of the option

Returns:
value

getName

public java.lang.String getName()
Get the name of the option. (when not multivalued, this will be the same as getReplacementString)

Returns:
name

Spiffy UI Framework