Class BookImpl

    • 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 interface Book
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getBookName

        public String getBookName()
        Description copied from interface: Book
        Gets the book name
        Specified by:
        getBookName in interface Book
        Returns:
        tge book name
      • getType

        public Book.BookType getType()
        Description copied from interface: Book
        Gets the book type
        Specified by:
        getType in interface Book
        Returns:
        the book type
      • getSheetIndex

        public int getSheetIndex​(Sheet sheet)
        Description copied from interface: Book
        Gets the index of sheet
        Specified by:
        getSheetIndex in interface Book
        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 interface Book
        Returns:
        the number of sheet
      • getSheetAt

        public SheetImpl getSheetAt​(int index)
        Description copied from interface: Book
        Gets sheet by index
        Specified by:
        getSheetAt in interface Book
        Parameters:
        index - index of sheet
        Returns:
      • getSheet

        public SheetImpl getSheet​(String name)
        Description copied from interface: Book
        Gets sheet by sheet name
        Specified by:
        getSheet in interface Book
        Parameters:
        name - name of sheet
        Returns:
        the sheet or null if not found
      • 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 interface Book
      • getShareScope

        public String getShareScope()
        Description copied from interface: Book
        Gets share scope of this book
        Specified by:
        getShareScope in interface Book
        Returns:
      • hasNameRange

        public boolean hasNameRange​(String name)
        Description copied from interface: Book
        check if this book has named range
        Specified by:
        hasNameRange in interface Book
        Parameters:
        name - the name to check
        Returns:
        true if it has a range of the name
      • getMaxRows

        public int getMaxRows()
        Specified by:
        getMaxRows in interface Book
        Returns:
        the maximum number of usable rows in each sheet
      • getMaxColumns

        public int getMaxColumns()
        Specified by:
        getMaxColumns in interface Book
        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
        Specified by:
        getLock in interface Book
        Returns:
      • cloneBook

        public Book cloneBook()
        Description copied from interface: Book
        Clones a new book.
        Specified by:
        cloneBook in interface Book
        Returns:
        a new book