Package io.keikai.api.model.impl
Class BookImpl
- java.lang.Object
-
- io.keikai.api.model.impl.BookImpl
-
- All Implemented Interfaces:
Book,Serializable
public class BookImpl extends Object implements Book, Serializable
- Since:
- 3.0.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.keikai.api.model.Book
Book.BookType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BookcloneBook()Clones a new book.booleanequals(Object obj)StringgetBookName()Gets the book nameSBookgetInternalBook()get the internal model object to do advanced operation
Note : operate on internal object will not automatically update SpreadsheetReadWriteLockgetLock()Get the read-write lock of this bookintgetMaxColumns()intgetMaxRows()SBookgetNative()intgetNumberOfSheets()Gets the number of sheetModelRef<SBook>getRef()StringgetShareScope()Gets share scope of this bookSheetImplgetSheet(String name)Gets sheet by sheet nameSheetImplgetSheetAt(int index)Gets sheet by indexintgetSheetIndex(Sheet sheet)Gets the index of sheetBook.BookTypegetType()Gets the book typeinthashCode()booleanhasNameRange(String name)check if this book has named rangevoidsetShareScope(String scope)Sets share scope of this book, the possible value is "desktop","session","application"
-
-
-
Method Detail
-
getNative
public SBook getNative()
-
getInternalBook
public SBook getInternalBook()
Description copied from interface:Bookget the internal model object to do advanced operation
Note : operate on internal object will not automatically update Spreadsheet- Specified by:
getInternalBookin interfaceBook- Returns:
-
getBookName
public String getBookName()
Description copied from interface:BookGets the book name- Specified by:
getBookNamein interfaceBook- Returns:
- tge book name
-
getType
public Book.BookType getType()
Description copied from interface:BookGets the book type
-
getSheetIndex
public int getSheetIndex(Sheet sheet)
Description copied from interface:BookGets the index of sheet- Specified by:
getSheetIndexin interfaceBook- Returns:
- the index of sheet or -1 if not found
-
getNumberOfSheets
public int getNumberOfSheets()
Description copied from interface:BookGets the number of sheet- Specified by:
getNumberOfSheetsin interfaceBook- Returns:
- the number of sheet
-
getSheetAt
public SheetImpl getSheetAt(int index)
Description copied from interface:BookGets sheet by index- Specified by:
getSheetAtin interfaceBook- Parameters:
index- index of sheet- Returns:
-
getSheet
public SheetImpl getSheet(String name)
Description copied from interface:BookGets sheet by sheet name
-
setShareScope
public void setShareScope(String scope)
Description copied from interface:BookSets share scope of this book, the possible value is "desktop","session","application"- Specified by:
setShareScopein interfaceBook
-
getShareScope
public String getShareScope()
Description copied from interface:BookGets share scope of this book- Specified by:
getShareScopein interfaceBook- Returns:
-
hasNameRange
public boolean hasNameRange(String name)
Description copied from interface:Bookcheck if this book has named range- Specified by:
hasNameRangein interfaceBook- Parameters:
name- the name to check- Returns:
- true if it has a range of the name
-
getMaxRows
public int getMaxRows()
- Specified by:
getMaxRowsin interfaceBook- Returns:
- the maximum number of usable rows in each sheet
-
getMaxColumns
public int getMaxColumns()
- Specified by:
getMaxColumnsin interfaceBook- Returns:
- the maximum number of usable column in each sheet
-
getLock
public ReadWriteLock getLock()
Description copied from interface:BookGet the read-write lock of this book
-
-