com.vaadin.ui.


Interface AbstractSelect.Filtering

All Superinterfaces:

Serializable

All Known Implementing Classes:

ComboBox, Select

Enclosing class:

AbstractSelect

public static interface AbstractSelect.Filtering
extends Serializable

Interface for option filtering, used to filter options based on user entered value. The value is matched to the item caption. FILTERINGMODE_OFF (0) turns the filtering off. FILTERINGMODE_STARTSWITH (1) matches from the start of the caption. FILTERINGMODE_CONTAINS (1) matches anywhere in the caption.

Field Summary
static int FILTERINGMODE_CONTAINS
           
static int FILTERINGMODE_OFF
           
static int FILTERINGMODE_STARTSWITH
           
 
Method Summary
 int getFilteringMode()
          Gets the current filtering mode.
 void setFilteringMode(int filteringMode)
          Sets the option filtering mode.
 

Field Detail

FILTERINGMODE_OFF

static final int FILTERINGMODE_OFF

See Also:

Constant Field Values

FILTERINGMODE_STARTSWITH

static final int FILTERINGMODE_STARTSWITH

See Also:

Constant Field Values

FILTERINGMODE_CONTAINS

static final int FILTERINGMODE_CONTAINS

See Also:

Constant Field Values

Method Detail

setFilteringMode

void setFilteringMode(int filteringMode)

Sets the option filtering mode.

Parameters:
filteringMode - the filtering mode to use

getFilteringMode

int getFilteringMode()

Gets the current filtering mode.

Returns:
the filtering mode in use