public class SpreadsheetTable extends Object implements Serializable
CellRangeAddress), that has PopupButton
on the column header cells of the region. In this context the column header
cells refer to the cells on the first row of the region.| Modifier and Type | Field and Description |
|---|---|
protected Map<org.apache.poi.ss.util.CellReference,PopupButton> |
popupButtons |
| Constructor and Description |
|---|
SpreadsheetTable(Spreadsheet spreadsheet,
org.apache.poi.ss.util.CellRangeAddress tableRegion)
Creates a new table for the given spreadsheet component, its active sheet
(returned by
Spreadsheet.getActiveSheet()) and the given region. |
SpreadsheetTable(Spreadsheet spreadsheet,
org.apache.poi.ss.usermodel.Sheet sheet,
org.apache.poi.ss.util.CellRangeAddress fullTableRegion)
Creates a new table for the given spreadsheet component, sheet and
region.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all the table's pop-up buttons and their pop-up content.
|
org.apache.poi.ss.util.CellRangeAddress |
getFullTableRegion()
Gets the full table region,
CellRangeAddress for this table. |
PopupButton |
getPopupButton(org.apache.poi.ss.util.CellReference filterCellReference)
Gets the
PopupButton for the header cell pointed by
CellReference. |
PopupButton |
getPopupButton(int col)
Gets the
PopupButton for the given column. |
Collection<PopupButton> |
getPopupButtons()
Returns all of the
PopupButtons for this table. |
org.apache.poi.ss.usermodel.Sheet |
getSheet()
Gets the
Sheet this table belongs to. |
Spreadsheet |
getSpreadsheet()
Gets the
Spreadsheet component this table belongs to. |
protected void |
initPopupButtons()
Initializes the pop-up buttons of this table.
|
boolean |
isTableSheetCurrentlyActive()
Returns true if the spreadsheet component is currently displaying the
sheet that this table belongs to.
|
void |
reload()
Reload the table's pop-up buttons, if spreadsheet component is currently
presenting the sheet this table belongs to.
|
protected final Map<org.apache.poi.ss.util.CellReference,PopupButton> popupButtons
public SpreadsheetTable(Spreadsheet spreadsheet, org.apache.poi.ss.util.CellRangeAddress tableRegion)
Spreadsheet.getActiveSheet()) and the given region.
Adds pop-up buttons for table headers (cells in the first row).spreadsheet - Target spreadsheettableRegion - Cell range to build the table inpublic SpreadsheetTable(Spreadsheet spreadsheet, org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.util.CellRangeAddress fullTableRegion)
spreadsheet - Target spreadsheetsheet - Target sheet within the spreadsheetfullTableRegion - Cell range to build the table inpublic void reload()
If there are no pop-up buttons stored, when clear() has been
called, the pop-up buttons are recreated. Otherwise they are just added
to the spreadsheet component again.
public void clear()
public boolean isTableSheetCurrentlyActive()
protected void initPopupButtons()
public org.apache.poi.ss.usermodel.Sheet getSheet()
Sheet this table belongs to.public Spreadsheet getSpreadsheet()
Spreadsheet component this table belongs to.public org.apache.poi.ss.util.CellRangeAddress getFullTableRegion()
CellRangeAddress for this table.public PopupButton getPopupButton(int col)
PopupButton for the given column. If given column is
outside of the table region, null will be returned.col - Column index, 0-basedPopupButton contained in the header column of this
table.public PopupButton getPopupButton(org.apache.poi.ss.util.CellReference filterCellReference)
PopupButton for the header cell pointed by
CellReference. If given reference is not a header cell for this
table, or is outside of the table region, null will be
returned.filterCellReference - header cell referencepublic Collection<PopupButton> getPopupButtons()
PopupButtons for this table.Copyright © 2013–2026 Vaadin Ltd. All rights reserved.