org.cruxframework.crux.widgets.client.filter
Class Filterable.FilterResult<T>

java.lang.Object
  extended by org.cruxframework.crux.widgets.client.filter.Filterable.FilterResult<T>
Enclosing interface:
Filterable<T>

public static class Filterable.FilterResult<T>
extends Object

A single result of a filtering operation.

Author:
Gesse S. F. Dafe

Constructor Summary
Filterable.FilterResult(T value, String label, String shortLabel)
          Constructor.
 
Method Summary
 String getLabel()
          Returns the label of the result.
 String getShortLabel()
           
 T getValue()
          Returns the filterable's item bound in this result.
 void setShortLabel(String shortLabel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filterable.FilterResult

public Filterable.FilterResult(T value,
                               String label,
                               String shortLabel)
Constructor.

Parameters:
label - A label to be shown in the suggestion panel
value - The value to be bound to this item
shortLabel - A short label to be displayed on the filter box when this result is selected
Method Detail

getLabel

public String getLabel()
Returns the label of the result.

Returns:
the label

getValue

public T getValue()
Returns the filterable's item bound in this result.

Returns:
the value

getShortLabel

public String getShortLabel()

setShortLabel

public void setShortLabel(String shortLabel)


Copyright © 2014. All rights reserved.