T - the type of items in the grid.F - the type of the filters accepted by grid's ConfigurableFilterDataProvider.public class FilterRow<T,F>
Wraps HeaderRow and tracks filter components; also provides support for watching of changes to the filters.
| Constructor and Description |
|---|
FilterRow(com.vaadin.ui.Grid<T> grid,
kotlin.reflect.KClass<T> itemClass,
com.vaadin.ui.components.grid.HeaderRow headerRow,
FilterFieldFactory<T,F> filterFieldFactory,
eu.vaadinonkotlin.FilterFactory<F> filterFactory)
Wraps HeaderRow and tracks filter components; also provides support for watching of changes to the filters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Unbinds all filters and removes all filter components from this headerRow.
|
void |
generateFilterComponents(com.vaadin.shared.ui.ValueChangeMode valueChangeMode)
Re-generates all filter components in this header row. Removes all old filter components and
creates a new set and populates them into the headerRow.
|
FilterBinder<T,F> |
getBinder()
Binds filters from this row. Whenever a bound filter changes, it is set to Grid.getDataProvider.
|
com.vaadin.data.HasValue<java.lang.Object> |
getFilterComponent(kotlin.reflect.KProperty1<T,?> property)
Returns the filter component filtering given property. Fails if no filter component has been generated for
that property.
|
eu.vaadinonkotlin.FilterFactory<F> |
getFilterFactory() |
FilterFieldFactory<T,F> |
getFilterFieldFactory() |
com.vaadin.ui.Grid<T> |
getGrid()
the owner grid.
|
com.vaadin.ui.components.grid.HeaderRow |
getHeaderRow()
the wrapped header row
|
kotlin.reflect.KClass<T> |
getItemClass() |
eu.vaadinonkotlin.Listeners<com.vaadin.server.SerializableConsumer> |
getOnFilterChangeListeners()
Invoked when the filter changes.
|
void |
remove()
FilterRow.clears and removes the headerRow from the grid. |
public FilterRow(com.vaadin.ui.Grid<T> grid,
kotlin.reflect.KClass<T> itemClass,
com.vaadin.ui.components.grid.HeaderRow headerRow,
FilterFieldFactory<T,F> filterFieldFactory,
eu.vaadinonkotlin.FilterFactory<F> filterFactory)
Wraps HeaderRow and tracks filter components; also provides support for watching of changes to the filters.
grid - the owner grid.headerRow - the wrapped header rowgrid - the owner grid.public FilterBinder<T,F> getBinder()
Binds filters from this row. Whenever a bound filter changes, it is set to Grid.getDataProvider.
public eu.vaadinonkotlin.Listeners<com.vaadin.server.SerializableConsumer> getOnFilterChangeListeners()
Invoked when the filter changes.
public void generateFilterComponents(com.vaadin.shared.ui.ValueChangeMode valueChangeMode)
Re-generates all filter components in this header row. Removes all old filter components and creates a new set and populates them into the headerRow.
public void clear()
Unbinds all filters and removes all filter components from this headerRow.
public void remove()
FilterRow.clears and removes the headerRow from the grid.
FilterRow.clearpublic com.vaadin.data.HasValue<java.lang.Object> getFilterComponent(kotlin.reflect.KProperty1<T,?> property)
Returns the filter component filtering given property. Fails if no filter component has been generated for that property.
public com.vaadin.ui.Grid<T> getGrid()
the owner grid.
public kotlin.reflect.KClass<T> getItemClass()
public com.vaadin.ui.components.grid.HeaderRow getHeaderRow()
the wrapped header row
public FilterFieldFactory<T,F> getFilterFieldFactory()
public eu.vaadinonkotlin.FilterFactory<F> getFilterFactory()