You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.spreadsheet.

Class Spreadsheet.SheetChangeEvent

    • Constructor Detail

      • SheetChangeEvent

        public SheetChangeEvent​(Component source,
                                org.apache.poi.ss.usermodel.Sheet newSheet,
                                org.apache.poi.ss.usermodel.Sheet previousSheet,
                                int newSheetVisibleIndex,
                                int newSheetPOIIndex)

        Creates a new SheetChangeEvent.

        Parameters:

        source - Spreadsheet that triggered the event

        newSheet - New selection

        previousSheet - Previous selection

        newSheetVisibleIndex - New visible index of selection

        newSheetPOIIndex - New POI index of selection

    • Method Detail

      • getNewSheet

        public org.apache.poi.ss.usermodel.Sheet getNewSheet()

        Gets the newly selected sheet.

        Returns:

        The new selection

      • getPreviousSheet

        public org.apache.poi.ss.usermodel.Sheet getPreviousSheet()

        Gets the sheet that was previously selected.

        Returns:

        The previous selection

      • getNewSheetVisibleIndex

        public int getNewSheetVisibleIndex()

        Gets the index of the newly selected sheet among all visible sheets.

        Returns:

        Index of new selection among visible sheets

      • getNewSheetPOIIndex

        public int getNewSheetPOIIndex()

        Gets the POI index of the newly selected sheet.

        Returns:

        POI index of new selection