org.gwtbootstrap3.extras.typeahead.client.base
Class Suggestion<T>

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by org.gwtbootstrap3.extras.typeahead.client.base.Suggestion<T>

public final class Suggestion<T>
extends JavaScriptObject

Author:
Florian Kremser

Constructor Summary
protected Suggestion()
           
 
Method Summary
static
<T> Suggestion<T>
create(String value, T data, Dataset<T> dataset)
          Create a suggestion for a data instance.
 T getData()
           
 Dataset<T> getDataset()
           
 String getValue()
           
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Suggestion

protected Suggestion()
Method Detail

getValue

public String getValue()

getData

public T getData()

getDataset

public Dataset<T> getDataset()

create

public static <T> Suggestion<T> create(String value,
                                       T data,
                                       Dataset<T> dataset)
Create a suggestion for a data instance.

Type Parameters:
T - the type of the data
Parameters:
value - the display value that represents the suggestion's data
data - the suggestions data
dataset - the source dataset
Returns:
a Suggestion object


Copyright © 2015. All rights reserved.