Package io.keikai.model.impl
Class SheetViewInfoImpl
java.lang.Object
io.keikai.model.impl.SheetViewInfoImpl
- All Implemented Interfaces:
SSheetViewInfo,Serializable
- Since:
- 3.5.0
- Author:
- Dennis
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumnBreak(int column) voidaddRowBreak(int row) voidaddSelectionAreas(String selectionAreas) Add the selection area.Returns the active cell.int[]intReturns the 0-based index of the first frozen column — the column component of<sheetView topLeftCell>.intReturns the 0-based index of the first frozen row — the row component of<sheetView topLeftCell>(ECMA-376 §18.3.1.87).intintint[]Returns the selection areas.booleanbooleanReturns whether this sheet uses right-to-left column order and direction.booleanReturns whether the sheet tab is selected.voidsetActiveCell(String activeCell) Sets the active cell.voidsetColumnBreaks(int[] breaks) voidsetDisplayGridlines(boolean enable) voidsetFreezeLeftColumn(int column) Sets the 0-based first-frozen-column anchor.voidsetFreezeTopRow(int row) Sets the 0-based first-frozen-row anchor.voidsetNumOfColumnFreeze(int num) voidsetNumOfRowFreeze(int num) voidsetRightToLeft(boolean rightToLeft) Sets whether this sheet uses right-to-left direction.voidsetRowBreaks(int[] breaks) voidsetSelectionAreas(String selectionAreas) Sets the selection areas.voidsetTabSelected(boolean tabSelected) Sets to select the sheet tab.
-
Constructor Details
-
SheetViewInfoImpl
public SheetViewInfoImpl()
-
-
Method Details
-
isDisplayGridlines
public boolean isDisplayGridlines()- Specified by:
isDisplayGridlinesin interfaceSSheetViewInfo
-
setDisplayGridlines
public void setDisplayGridlines(boolean enable) - Specified by:
setDisplayGridlinesin interfaceSSheetViewInfo
-
getNumOfRowFreeze
public int getNumOfRowFreeze()- Specified by:
getNumOfRowFreezein interfaceSSheetViewInfo
-
getNumOfColumnFreeze
public int getNumOfColumnFreeze()- Specified by:
getNumOfColumnFreezein interfaceSSheetViewInfo
-
setNumOfRowFreeze
public void setNumOfRowFreeze(int num) - Specified by:
setNumOfRowFreezein interfaceSSheetViewInfo
-
setNumOfColumnFreeze
public void setNumOfColumnFreeze(int num) - Specified by:
setNumOfColumnFreezein interfaceSSheetViewInfo
-
getFreezeTopRow
public int getFreezeTopRow()Description copied from interface:SSheetViewInfoReturns the 0-based index of the first frozen row — the row component of<sheetView topLeftCell>(ECMA-376 §18.3.1.87). For a view that was scrolled before "Freeze Panes" was applied, the frozen region spans[getFreezeTopRow(), getFreezeTopRow() + getNumOfRowFreeze()), so a sheet frozen after scrolling to row 19 reports18here (KEIKAI-537).Default:
0(frozen region anchored at row 1).- Specified by:
getFreezeTopRowin interfaceSSheetViewInfo
-
setFreezeTopRow
public void setFreezeTopRow(int row) Description copied from interface:SSheetViewInfoSets the 0-based first-frozen-row anchor. SeeSSheetViewInfo.getFreezeTopRow().- Specified by:
setFreezeTopRowin interfaceSSheetViewInfo
-
getFreezeLeftColumn
public int getFreezeLeftColumn()Description copied from interface:SSheetViewInfoReturns the 0-based index of the first frozen column — the column component of<sheetView topLeftCell>. Frozen columns span[getFreezeLeftColumn(), getFreezeLeftColumn() + getNumOfColumnFreeze()).Default:
0(frozen region anchored at column A).- Specified by:
getFreezeLeftColumnin interfaceSSheetViewInfo
-
setFreezeLeftColumn
public void setFreezeLeftColumn(int column) Description copied from interface:SSheetViewInfoSets the 0-based first-frozen-column anchor. SeeSSheetViewInfo.getFreezeLeftColumn().- Specified by:
setFreezeLeftColumnin interfaceSSheetViewInfo
-
getHeader
- Specified by:
getHeaderin interfaceSSheetViewInfo
-
getRowBreaks
public int[] getRowBreaks()- Specified by:
getRowBreaksin interfaceSSheetViewInfo- Returns:
- row indexes of all the horizontal page breaks
- See Also:
-
setRowBreaks
public void setRowBreaks(int[] breaks) - Specified by:
setRowBreaksin interfaceSSheetViewInfo- See Also:
-
addRowBreak
public void addRowBreak(int row) - Specified by:
addRowBreakin interfaceSSheetViewInfo- See Also:
-
addColumnBreak
public void addColumnBreak(int column) - Specified by:
addColumnBreakin interfaceSSheetViewInfo- See Also:
-
setTabSelected
public void setTabSelected(boolean tabSelected) Description copied from interface:SSheetViewInfoSets to select the sheet tab.- Specified by:
setTabSelectedin interfaceSSheetViewInfo
-
isTabSelected
public boolean isTabSelected()Description copied from interface:SSheetViewInfoReturns whether the sheet tab is selected.Default: false
- Specified by:
isTabSelectedin interfaceSSheetViewInfo
-
setActiveCell
Description copied from interface:SSheetViewInfoSets the active cell.Default:
"A1"- Specified by:
setActiveCellin interfaceSSheetViewInfo
-
getActiveCell
Description copied from interface:SSheetViewInfoReturns the active cell.Default:
"A1"- Specified by:
getActiveCellin interfaceSSheetViewInfo
-
setSelectionAreas
Description copied from interface:SSheetViewInfoSets the selection areas.- Specified by:
setSelectionAreasin interfaceSSheetViewInfo
-
getSelectionAreas
Description copied from interface:SSheetViewInfoReturns the selection areas.Default:
"A1"- Specified by:
getSelectionAreasin interfaceSSheetViewInfo
-
addSelectionAreas
Description copied from interface:SSheetViewInfoAdd the selection area.- Specified by:
addSelectionAreasin interfaceSSheetViewInfo
-
getColumnBreaks
public int[] getColumnBreaks()- Specified by:
getColumnBreaksin interfaceSSheetViewInfo- Returns:
- column indexes of all the vertical page breaks
- See Also:
-
setColumnBreaks
public void setColumnBreaks(int[] breaks) - Specified by:
setColumnBreaksin interfaceSSheetViewInfo- See Also:
-
isRightToLeft
public boolean isRightToLeft()Description copied from interface:SSheetViewInfoReturns whether this sheet uses right-to-left column order and direction. Corresponds to ECMA-376 §18.3.1.88<sheetView rightToLeft="1"/>.Default:
false- Specified by:
isRightToLeftin interfaceSSheetViewInfo
-
setRightToLeft
public void setRightToLeft(boolean rightToLeft) Description copied from interface:SSheetViewInfoSets whether this sheet uses right-to-left direction.- Specified by:
setRightToLeftin interfaceSSheetViewInfo
-