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 boolean
equals(Object obj)
Book
getBook()
List<Chart>
getCharts()
int
getColumnFreeze()
Get number of column freeze of this sheet, 0 means no column freezeint
getColumnWidth(int column)
get column width in pixelint
getFirstColumn(int row)
Get the first column of row which contains dataint
getFirstRow()
get the first row which contains data of this sheetSSheet
getInternalSheet()
get the internal model object to do advanced operation
Note : operate on internal object will not automatically update Spreadsheetint
getLastColumn(int row)
Get the last column of row which contains dataint
getLastRow()
get the last row which contains data of this sheetSSheet
getNative()
List<Picture>
getPictures()
ModelRef<SSheet>
getRef()
int
getRowFreeze()
Get number of row freeze of this sheet, 0 means no row freezeint
getRowHeight(int row)
get row height in pixelString
getSheetName()
int
hashCode()
boolean
isAutoFilterEnabled()
boolean
isColumnHidden(int column)
boolean
isDisplayGridlines()
boolean
isHidden()
Returns whether this sheet is hidden.boolean
isPrintGridlines()
boolean
isProtected()
boolean
isRowHidden(int row)
boolean
isSummaryBelow()
Returns whether to display summary below or above for rows.boolean
isSummaryRight()
Returns whether to display summary right or left for columns.boolean
isVeryHidden()
Returns whether this sheet is very hidden.static SheetAnchor
toSheetAnchor(SSheet sheet, ViewAnchor anchor)
Utility method, internal use onlystatic ViewAnchor
toViewAnchor(SSheet sheet, SheetAnchor anchor)
Utility method, internal use only
-
-
-
Method Detail
-
getNative
public SSheet getNative()
-
getInternalSheet
public SSheet getInternalSheet()
Description copied from interface:Sheet
get the internal model object to do advanced operation
Note : operate on internal object will not automatically update Spreadsheet- Specified by:
getInternalSheet
in interfaceSheet
- Returns:
-
isProtected
public boolean isProtected()
- Specified by:
isProtected
in interfaceSheet
-
isAutoFilterEnabled
public boolean isAutoFilterEnabled()
- Specified by:
isAutoFilterEnabled
in interfaceSheet
-
isDisplayGridlines
public boolean isDisplayGridlines()
- Specified by:
isDisplayGridlines
in interfaceSheet
-
getSheetName
public String getSheetName()
- Specified by:
getSheetName
in interfaceSheet
-
isRowHidden
public boolean isRowHidden(int row)
- Specified by:
isRowHidden
in interfaceSheet
-
isColumnHidden
public boolean isColumnHidden(int column)
- Specified by:
isColumnHidden
in interfaceSheet
-
getPictures
public List<Picture> getPictures()
- Specified by:
getPictures
in interfaceSheet
-
getRowFreeze
public int getRowFreeze()
Description copied from interface:Sheet
Get number of row freeze of this sheet, 0 means no row freeze- Specified by:
getRowFreeze
in interfaceSheet
- Returns:
-
getColumnFreeze
public int getColumnFreeze()
Description copied from interface:Sheet
Get number of column freeze of this sheet, 0 means no column freeze- Specified by:
getColumnFreeze
in interfaceSheet
- Returns:
-
isPrintGridlines
public boolean isPrintGridlines()
- Specified by:
isPrintGridlines
in interfaceSheet
-
getRowHeight
public int getRowHeight(int row)
Description copied from interface:Sheet
get row height in pixel- Specified by:
getRowHeight
in interfaceSheet
- Returns:
- row height in pixel
-
getColumnWidth
public int getColumnWidth(int column)
Description copied from interface:Sheet
get column width in pixel- Specified by:
getColumnWidth
in 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:Sheet
get the first row which contains data of this sheet- Specified by:
getFirstRow
in interfaceSheet
- Returns:
-
getLastRow
public int getLastRow()
Description copied from interface:Sheet
get the last row which contains data of this sheet- Specified by:
getLastRow
in interfaceSheet
- Returns:
-
getFirstColumn
public int getFirstColumn(int row)
Description copied from interface:Sheet
Get the first column of row which contains data- Specified by:
getFirstColumn
in interfaceSheet
- Returns:
- -1 if not such column or no no such row
-
getLastColumn
public int getLastColumn(int row)
Description copied from interface:Sheet
Get the last column of row which contains data- Specified by:
getLastColumn
in interfaceSheet
- Returns:
- -1 if not such column or no no such row
-
isHidden
public boolean isHidden()
Description copied from interface:Sheet
Returns whether this sheet is hidden.
-
isVeryHidden
public boolean isVeryHidden()
Description copied from interface:Sheet
Returns whether this sheet is very hidden.- Specified by:
isVeryHidden
in interfaceSheet
-
isSummaryBelow
public boolean isSummaryBelow()
Description copied from interface:Sheet
Returns whether to display summary below or above for rows.- Specified by:
isSummaryBelow
in interfaceSheet
- Returns:
- true to display summary below, unless display summary above.
-
isSummaryRight
public boolean isSummaryRight()
Description copied from interface:Sheet
Returns whether to display summary right or left for columns.- Specified by:
isSummaryRight
in interfaceSheet
- Returns:
- true to display summary right, unless display summary left.
-
-