Package io.keikai.api.model.impl
Class SheetImpl
- java.lang.Object
-
- io.keikai.api.model.impl.SheetImpl
-
- All Implemented Interfaces:
Sheet,Serializable
public class SheetImpl extends Object implements Sheet, Serializable
- Since:
- 3.0.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)BookgetBook()List<Chart>getCharts()intgetColumnFreeze()Get 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 dataintgetFirstRow()get the first row which contains data of this sheetSSheetgetInternalSheet()get 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 dataintgetLastRow()get the last row which contains data of this sheetSSheetgetNative()List<Picture>getPictures()ModelRef<SSheet>getRef()intgetRowFreeze()Get number of row freeze of this sheet, 0 means no row freezeintgetRowHeight(int row)get row height in pixelStringgetSheetName()inthashCode()booleanisAutoFilterEnabled()booleanisColumnHidden(int column)booleanisDisplayGridlines()booleanisHidden()Returns whether this sheet is hidden.booleanisPrintGridlines()booleanisProtected()booleanisRowHidden(int row)booleanisSummaryBelow()Returns whether to display summary below or above for rows.booleanisSummaryRight()Returns whether to display summary right or left for columns.booleanisVeryHidden()Returns whether this sheet is very hidden.static SheetAnchortoSheetAnchor(SSheet sheet, ViewAnchor anchor)Utility method, internal use onlystatic ViewAnchortoViewAnchor(SSheet sheet, SheetAnchor anchor)Utility method, internal use only
-
-
-
Method Detail
-
getNative
public SSheet getNative()
-
getInternalSheet
public SSheet 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:
-
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
public String 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
-
getPictures
public List<Picture> 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
public static ViewAnchor toViewAnchor(SSheet sheet, SheetAnchor anchor)
Utility method, internal use only
-
toSheetAnchor
public static SheetAnchor toSheetAnchor(SSheet sheet, ViewAnchor anchor)
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.
-
-