Package io.keikai.api.model
Interface Sheet
- All Known Implementing Classes:
SheetImpl
public interface Sheet
This interface provides the access to a sheet of a
Book.- Since:
- 3.0.0
- Author:
- dennis
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCellRegionValueChangeListener(CellRegion cellRegion, SerializableConsumer<CellRegion> listener) Adds the listener when specific cell region value change.addChart(String name, SChart.ChartType type, ViewAnchor anchor) Add a chart with name, type and anchorgetBook()getChartByName(String name) Returns the first chart with specific namegetChartsByName(String name) Returns the charts with specific nameintGet number of column freeze of this sheet, 0 means no column freezeintgetColumnWidth(int column) get column width in pixelintgetFirstColumn(int row) Get the first column of row which contains dataintget the first row which contains data of this sheetget the internal model object to do advanced operation
Note : operate on internal object will not automatically update SpreadsheetintgetLastColumn(int row) Get the last column of row which contains dataintget the last row which contains data of this sheetintGet number of row freeze of this sheet, 0 means no row freezeintgetRowHeight(int row) get row height in pixelbooleanbooleanisColumnHidden(int column) booleanbooleanisHidden()Returns whether this sheet is hidden.booleanbooleanbooleanisRowHidden(int row) booleanReturns whether to display summary below or above for rows.booleanReturns whether to display summary right or left for columns.booleanReturns whether this sheet is very hidden.booleanremoveCellRegionValueChangeListener(CellRegion cellRegion) Remove all cell region value change listeners of specific cell region.booleanRemove the cell region value change listener.
-
Method Details
-
getInternalSheet
SSheet getInternalSheet()get the internal model object to do advanced operation
Note : operate on internal object will not automatically update Spreadsheet- Returns:
-
getBook
Book getBook() -
isProtected
boolean isProtected() -
isAutoFilterEnabled
boolean isAutoFilterEnabled() -
isDisplayGridlines
boolean isDisplayGridlines() -
isRowHidden
boolean isRowHidden(int row) -
isColumnHidden
boolean isColumnHidden(int column) -
getSheetName
String getSheetName() -
getCharts
-
getPictures
-
getRowFreeze
int getRowFreeze()Get number of row freeze of this sheet, 0 means no row freeze- Returns:
-
getColumnFreeze
int getColumnFreeze()Get number of column freeze of this sheet, 0 means no column freeze- Returns:
-
isPrintGridlines
boolean isPrintGridlines() -
getRowHeight
int getRowHeight(int row) get row height in pixel- Parameters:
row-- Returns:
- row height in pixel
-
getColumnWidth
int getColumnWidth(int column) get column width in pixel- Parameters:
column-- Returns:
- column width in pixel
-
getFirstRow
int getFirstRow()get the first row which contains data of this sheet- Returns:
-
getLastRow
int getLastRow()get the last row which contains data of this sheet- Returns:
-
getFirstColumn
int getFirstColumn(int row) Get the first column of row which contains data- Parameters:
row-- Returns:
- -1 if not such column or no no such row
-
getLastColumn
int getLastColumn(int row) Get the last column of row which contains data- Parameters:
row-- Returns:
- -1 if not such column or no no such row
-
isHidden
boolean isHidden()Returns whether this sheet is hidden.- Since:
- 3.7.0
-
isVeryHidden
boolean isVeryHidden()Returns whether this sheet is very hidden.- Since:
- 3.7.0
-
isSummaryBelow
boolean isSummaryBelow()Returns whether to display summary below or above for rows.- Returns:
- true to display summary below, unless display summary above.
- Since:
- 6.0.0
-
isSummaryRight
boolean isSummaryRight()Returns whether to display summary right or left for columns.- Returns:
- true to display summary right, unless display summary left.
- Since:
- 6.0.0
-
addCellRegionValueChangeListener
void addCellRegionValueChangeListener(CellRegion cellRegion, SerializableConsumer<CellRegion> listener) Adds the listener when specific cell region value change.- Parameters:
cellRegion-listener-- Since:
- 6.2.0
-
removeCellRegionValueChangeListener
Remove all cell region value change listeners of specific cell region.- Parameters:
cellRegion-- Returns:
- whether the listeners are removed successfully.
- Since:
- 6.2.0
-
removeCellRegionValueChangeListener
Remove the cell region value change listener.- Parameters:
listener-- Returns:
- whether the listener is removed successfully.
- Since:
- 6.2.0
-
addChart
Add a chart with name, type and anchor- Parameters:
name-type-anchor-- Returns:
- the created chart
- Since:
- 6.2.0
-
getChartByName
Returns the first chart with specific name- Parameters:
name-- Returns:
- the chart with specific name
- Since:
- 6.2.0
-
getChartsByName
Returns the charts with specific name- Parameters:
name-- Returns:
- the charts with specific name
- Since:
- 6.2.0
-