public class ItemFilter extends com.vaadin.ui.Panel implements SpreadsheetFilter
Has a check box for selecting all items (cell values), and one check box per unique cell value that can be found within the cells of the table column.
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenercom.vaadin.server.Sizeable.Unitcom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener| Constructor and Description |
|---|
ItemFilter(org.apache.poi.ss.util.CellRangeAddress filterRange,
Spreadsheet spreadsheet,
PopupButton popupButton,
SpreadsheetFilterTable filterTable)
Constructs a new item filter for the given spreadsheet, filtering range,
pop-up button and filtering table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearFilter()
Clear the filtering options.
|
protected Set<String> |
getAllValues()
Gets all of the unique values for this filter column.
|
Set<Integer> |
getFilteredRows()
Returns the rows that should be filtered by this filter.
|
protected Set<String> |
getVisibleValues()
Gets the currently NOT filtered cell values.
|
protected void |
initAllItemsCheckbox()
Creates the "Select All" filter component.
|
protected void |
initComponents()
Create all components of the ItemFilter.
|
protected void |
initLayouts()
Creates the base layout for the filter components.
|
protected void |
initOptions()
Creates the filter selection component.
|
protected void |
initPopupButtonListeners()
Initializes pop-up close listener for verifying that filter selections
match with what is currently shown.
|
protected void |
updateFilteredItems(Collection<String> visibleValues)
Updates the filtered rows to reflect the new filtered values.
|
void |
updateOptions()
Updates the filtering options based on the values within the column.
|
addAction, addActionHandler, addClickListener, changeVariables, focus, getActionManager, getCustomAttributes, getScrollLeft, getScrollTop, getState, getState, getTabIndex, paintContent, readDesign, removeAction, removeActionHandler, removeAllActionHandlers, removeClickListener, setCaption, setScrollLeft, setScrollTop, setTabIndex, writeDesignaddComponentAttachListener, addComponentDetachListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentCount, getContent, iterator, readDesignChildren, removeComponentAttachListener, removeComponentDetachListener, removeFromParent, setContent, setHeight, setWidthaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisibleaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefinedforEach, spliteratorpublic ItemFilter(org.apache.poi.ss.util.CellRangeAddress filterRange,
Spreadsheet spreadsheet,
PopupButton popupButton,
SpreadsheetFilterTable filterTable)
filterRange - Range of cells to filterspreadsheet - Target SpreadsheetpopupButton - Pop-up button to insert the filter components infilterTable - Target SpreadsheetFilterTableprotected void initComponents()
protected void initLayouts()
protected void initPopupButtonListeners()
protected void initAllItemsCheckbox()
protected void initOptions()
public void updateOptions()
protected Set<String> getVisibleValues()
protected Set<String> getAllValues()
protected void updateFilteredItems(Collection<String> visibleValues)
visibleValues - the values that are NOT filteredpublic Set<Integer> getFilteredRows()
SpreadsheetFiltergetFilteredRows in interface SpreadsheetFilterpublic void clearFilter()
SpreadsheetFilterSpreadsheetFilter.getFilteredRows() for this filter should return an empty set.clearFilter in interface SpreadsheetFilterCopyright © 2013–2026 Vaadin Ltd. All rights reserved.