public class BookImpl extends Object implements Book, Serializable
Book.BookType
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getBookName()
Gets the book name
|
SBook |
getInternalBook()
get the internal model object to do advanced operation
Note : operate on internal object will not automatically update Spreadsheet |
ReadWriteLock |
getLock()
Get the read-write lock of this book
|
int |
getMaxColumns() |
int |
getMaxRows() |
SBook |
getNative() |
int |
getNumberOfSheets()
Gets the number of sheet
|
ModelRef<SBook> |
getRef() |
String |
getShareScope()
Gets share scope of this book
|
SheetImpl |
getSheet(String name)
Gets sheet by sheet name
|
SheetImpl |
getSheetAt(int index)
Gets sheet by index
|
int |
getSheetIndex(Sheet sheet)
Gets the index of sheet
|
Object |
getSync()
Deprecated.
|
Book.BookType |
getType()
Gets the book type
|
int |
hashCode() |
boolean |
hasNameRange(String name)
check if this book has named range
|
void |
setShareScope(String scope)
Sets share scope of this book, the possible value is "desktop","session","application"
|
public SBook getNative()
public SBook getInternalBook()
Book
getInternalBook
in interface Book
public String getBookName()
Book
getBookName
in interface Book
public Book.BookType getType()
Book
public int getSheetIndex(Sheet sheet)
Book
getSheetIndex
in interface Book
public int getNumberOfSheets()
Book
getNumberOfSheets
in interface Book
public SheetImpl getSheetAt(int index)
Book
getSheetAt
in interface Book
index
- index of sheetpublic SheetImpl getSheet(String name)
Book
public void setShareScope(String scope)
Book
setShareScope
in interface Book
public String getShareScope()
Book
getShareScope
in interface Book
@Deprecated public Object getSync()
Book
public boolean hasNameRange(String name)
Book
hasNameRange
in interface Book
name
- the name to checkpublic int getMaxRows()
getMaxRows
in interface Book
public int getMaxColumns()
getMaxColumns
in interface Book
public ReadWriteLock getLock()
Book
Copyright © 2020. All rights reserved.