Package io.keikai.api.model.impl
Class BookImpl
- java.lang.Object
-
- io.keikai.api.model.impl.BookImpl
-
- All Implemented Interfaces:
Book,java.io.Serializable
public class BookImpl extends java.lang.Object implements Book, java.io.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(java.lang.Object obj)java.lang.StringgetBookName()Gets the book nameSBookgetInternalBook()get the internal model object to do advanced operation
Note : operate on internal object will not automatically update Spreadsheetjava.util.concurrent.locks.ReadWriteLockgetLock()Get the read-write lock of this bookintgetMaxColumns()intgetMaxRows()SBookgetNative()intgetNumberOfSheets()Gets the number of sheetModelRef<SBook>getRef()java.lang.StringgetShareScope()Gets share scope of this bookSheetImplgetSheet(java.lang.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(java.lang.String name)check if this book has named rangevoidsetShareScope(java.lang.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:
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getBookName
public java.lang.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(java.lang.String name)
Description copied from interface:BookGets sheet by sheet name
-
setShareScope
public void setShareScope(java.lang.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 java.lang.String getShareScope()
Description copied from interface:BookGets share scope of this book- Specified by:
getShareScopein interfaceBook- Returns:
-
hasNameRange
public boolean hasNameRange(java.lang.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 java.util.concurrent.locks.ReadWriteLock getLock()
Description copied from interface:BookGet the read-write lock of this book
-
-