Package io.keikai.api.model.impl
Class SheetImpl
java.lang.Object
io.keikai.api.model.impl.SheetImpl
- All Implemented Interfaces:
Sheet,Serializable
- Since:
- 3.0.0
- Author:
- dennis
- See Also:
-
Constructor Summary
Constructors -
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 anchorbooleangetBook()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 sheetgetRef()intGet number of row freeze of this sheet, 0 means no row freezeintgetRowHeight(int row) get row height in pixelinthashCode()booleanbooleanisColumnHidden(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.static SheetAnchortoSheetAnchor(SSheet sheet, ViewAnchor anchor) Utility method, internal use onlystatic ViewAnchortoViewAnchor(SSheet sheet, SheetAnchor anchor) Utility method, internal use only
-
Constructor Details
-
SheetImpl
-
-
Method Details
-
getNative
-
getInternalSheet
Description copied from interface:Sheetget the internal model object to do advanced operation
Note : operate on internal object will not automatically update Spreadsheet- Specified by:
getInternalSheetin interfaceSheet- Returns:
-
getRef
-
hashCode
public int hashCode() -
equals
-
getBook
-
isProtected
public boolean isProtected()- Specified by:
isProtectedin interfaceSheet
-
isAutoFilterEnabled
public boolean isAutoFilterEnabled()- Specified by:
isAutoFilterEnabledin interfaceSheet
-
isDisplayGridlines
public boolean isDisplayGridlines()- Specified by:
isDisplayGridlinesin interfaceSheet
-
getSheetName
- Specified by:
getSheetNamein interfaceSheet
-
isRowHidden
public boolean isRowHidden(int row) - Specified by:
isRowHiddenin interfaceSheet
-
isColumnHidden
public boolean isColumnHidden(int column) - Specified by:
isColumnHiddenin interfaceSheet
-
getCharts
-
getPictures
- Specified by:
getPicturesin interfaceSheet
-
getRowFreeze
public int getRowFreeze()Description copied from interface:SheetGet number of row freeze of this sheet, 0 means no row freeze- Specified by:
getRowFreezein interfaceSheet- Returns:
-
getColumnFreeze
public int getColumnFreeze()Description copied from interface:SheetGet number of column freeze of this sheet, 0 means no column freeze- Specified by:
getColumnFreezein interfaceSheet- Returns:
-
isPrintGridlines
public boolean isPrintGridlines()- Specified by:
isPrintGridlinesin interfaceSheet
-
getRowHeight
public int getRowHeight(int row) Description copied from interface:Sheetget row height in pixel- Specified by:
getRowHeightin interfaceSheet- Returns:
- row height in pixel
-
getColumnWidth
public int getColumnWidth(int column) Description copied from interface:Sheetget column width in pixel- Specified by:
getColumnWidthin interfaceSheet- Returns:
- column width in pixel
-
toViewAnchor
Utility method, internal use only -
toSheetAnchor
Utility method, internal use only -
getFirstRow
public int getFirstRow()Description copied from interface:Sheetget the first row which contains data of this sheet- Specified by:
getFirstRowin interfaceSheet- Returns:
-
getLastRow
public int getLastRow()Description copied from interface:Sheetget the last row which contains data of this sheet- Specified by:
getLastRowin interfaceSheet- Returns:
-
getFirstColumn
public int getFirstColumn(int row) Description copied from interface:SheetGet the first column of row which contains data- Specified by:
getFirstColumnin interfaceSheet- Returns:
- -1 if not such column or no no such row
-
getLastColumn
public int getLastColumn(int row) Description copied from interface:SheetGet the last column of row which contains data- Specified by:
getLastColumnin interfaceSheet- Returns:
- -1 if not such column or no no such row
-
isHidden
public boolean isHidden()Description copied from interface:SheetReturns whether this sheet is hidden. -
isVeryHidden
public boolean isVeryHidden()Description copied from interface:SheetReturns whether this sheet is very hidden.- Specified by:
isVeryHiddenin interfaceSheet
-
isSummaryBelow
public boolean isSummaryBelow()Description copied from interface:SheetReturns whether to display summary below or above for rows.- Specified by:
isSummaryBelowin interfaceSheet- Returns:
- true to display summary below, unless display summary above.
-
isSummaryRight
public boolean isSummaryRight()Description copied from interface:SheetReturns whether to display summary right or left for columns.- Specified by:
isSummaryRightin interfaceSheet- Returns:
- true to display summary right, unless display summary left.
-
addCellRegionValueChangeListener
public void addCellRegionValueChangeListener(CellRegion cellRegion, SerializableConsumer<CellRegion> listener) Description copied from interface:SheetAdds the listener when specific cell region value change.- Specified by:
addCellRegionValueChangeListenerin interfaceSheet
-
removeCellRegionValueChangeListener
Description copied from interface:SheetRemove all cell region value change listeners of specific cell region.- Specified by:
removeCellRegionValueChangeListenerin interfaceSheet- Returns:
- whether the listeners are removed successfully.
-
removeCellRegionValueChangeListener
Description copied from interface:SheetRemove the cell region value change listener.- Specified by:
removeCellRegionValueChangeListenerin interfaceSheet- Returns:
- whether the listener is removed successfully.
-
addChart
Description copied from interface:SheetAdd a chart with name, type and anchor -
getChartByName
Description copied from interface:SheetReturns the first chart with specific name- Specified by:
getChartByNamein interfaceSheet- Returns:
- the chart with specific name
-
getChartsByName
Description copied from interface:SheetReturns the charts with specific name- Specified by:
getChartsByNamein interfaceSheet- Returns:
- the charts with specific name
-