public static class Spreadsheet.SelectionChangeEvent
extends com.vaadin.ui.Component.Event
source| Constructor and Description |
|---|
SelectionChangeEvent(com.vaadin.ui.Component source,
org.apache.poi.ss.util.CellReference selectedCellReference,
List<org.apache.poi.ss.util.CellReference> individualSelectedCells,
org.apache.poi.ss.util.CellRangeAddress selectedCellMergedRegion,
List<org.apache.poi.ss.util.CellRangeAddress> cellRangeAddresses)
Creates a new selection change event.
|
| Modifier and Type | Method and Description |
|---|---|
Set<org.apache.poi.ss.util.CellReference> |
getAllSelectedCells()
Gets a combination of all selected cells.
|
List<org.apache.poi.ss.util.CellRangeAddress> |
getCellRangeAddresses()
Gets all separately selected cell ranges.
|
List<org.apache.poi.ss.util.CellReference> |
getIndividualSelectedCells()
Gets all the individually selected single cells in the current
selection.
|
org.apache.poi.ss.util.CellRangeAddress |
getSelectedCellMergedRegion()
Gets the merged region the single selected cell is a part of, if
applicable.
|
org.apache.poi.ss.util.CellReference |
getSelectedCellReference()
Returns reference to the currently selected single cell OR in case of
multiple selections the last cell clicked OR in case of area select
the cell from which the area selection was started.
|
Spreadsheet |
getSpreadsheet()
Gets the Spreadsheet where this event happened.
|
getSource, toStringpublic SelectionChangeEvent(com.vaadin.ui.Component source,
org.apache.poi.ss.util.CellReference selectedCellReference,
List<org.apache.poi.ss.util.CellReference> individualSelectedCells,
org.apache.poi.ss.util.CellRangeAddress selectedCellMergedRegion,
List<org.apache.poi.ss.util.CellRangeAddress> cellRangeAddresses)
source - Source SpreadsheetselectedCellReference - see getSelectedCellReference()individualSelectedCells - see getIndividualSelectedCells()selectedCellMergedRegion - see getSelectedCellMergedRegion()cellRangeAddresses - see getCellRangeAddresses()public Spreadsheet getSpreadsheet()
public org.apache.poi.ss.util.CellReference getSelectedCellReference()
public List<org.apache.poi.ss.util.CellReference> getIndividualSelectedCells()
public org.apache.poi.ss.util.CellRangeAddress getSelectedCellMergedRegion()
CellRangeAddress described the merged region the
single selected cell is part of, if any.public List<org.apache.poi.ss.util.CellRangeAddress> getCellRangeAddresses()
public Set<org.apache.poi.ss.util.CellReference> getAllSelectedCells()
Copyright © 2013–2026 Vaadin Ltd. All rights reserved.