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 Book
cloneBook()
Clones a new book.boolean
equals(Object obj)
String
getBookName()
Gets the book nameSBook
getInternalBook()
get the internal model object to do advanced operation
Note : operate on internal object will not automatically update SpreadsheetReadWriteLock
getLock()
Get the read-write lock of this bookint
getMaxColumns()
int
getMaxRows()
SBook
getNative()
int
getNumberOfSheets()
Gets the number of sheetModelRef<SBook>
getRef()
String
getShareScope()
Gets share scope of this bookSheetImpl
getSheet(String name)
Gets sheet by sheet nameSheetImpl
getSheetAt(int index)
Gets sheet by indexint
getSheetIndex(Sheet sheet)
Gets the index of sheetBook.BookType
getType()
Gets the book typeint
hashCode()
boolean
hasNameRange(String name)
check if this book has named rangevoid
setShareScope(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:Book
get the internal model object to do advanced operation
Note : operate on internal object will not automatically update Spreadsheet- Specified by:
getInternalBook
in interfaceBook
- Returns:
-
getBookName
public String getBookName()
Description copied from interface:Book
Gets the book name- Specified by:
getBookName
in interfaceBook
- Returns:
- tge book name
-
getType
public Book.BookType getType()
Description copied from interface:Book
Gets the book type
-
getSheetIndex
public int getSheetIndex(Sheet sheet)
Description copied from interface:Book
Gets the index of sheet- Specified by:
getSheetIndex
in interfaceBook
- Returns:
- the index of sheet or -1 if not found
-
getNumberOfSheets
public int getNumberOfSheets()
Description copied from interface:Book
Gets the number of sheet- Specified by:
getNumberOfSheets
in interfaceBook
- Returns:
- the number of sheet
-
getSheetAt
public SheetImpl getSheetAt(int index)
Description copied from interface:Book
Gets sheet by index- Specified by:
getSheetAt
in interfaceBook
- Parameters:
index
- index of sheet- Returns:
-
getSheet
public SheetImpl getSheet(String name)
Description copied from interface:Book
Gets sheet by sheet name
-
setShareScope
public void setShareScope(String scope)
Description copied from interface:Book
Sets share scope of this book, the possible value is "desktop","session","application"- Specified by:
setShareScope
in interfaceBook
-
getShareScope
public String getShareScope()
Description copied from interface:Book
Gets share scope of this book- Specified by:
getShareScope
in interfaceBook
- Returns:
-
hasNameRange
public boolean hasNameRange(String name)
Description copied from interface:Book
check if this book has named range- Specified by:
hasNameRange
in interfaceBook
- Parameters:
name
- the name to check- Returns:
- true if it has a range of the name
-
getMaxRows
public int getMaxRows()
- Specified by:
getMaxRows
in interfaceBook
- Returns:
- the maximum number of usable rows in each sheet
-
getMaxColumns
public int getMaxColumns()
- Specified by:
getMaxColumns
in interfaceBook
- Returns:
- the maximum number of usable column in each sheet
-
getLock
public ReadWriteLock getLock()
Description copied from interface:Book
Get the read-write lock of this book
-
-