com.vaadin.flow.component.spreadsheet.
Class Spreadsheet.SheetChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Component>
-
- com.vaadin.flow.component.spreadsheet.Spreadsheet.SheetChangeEvent
-
All Implemented Interfaces:
Enclosing class:
public static class Spreadsheet.SheetChangeEvent extends ComponentEvent<Component>
An event that is fired to registered listeners when the selected sheet has been changed.
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Modifier and Type Method Description org.apache.poi.ss.usermodel.Sheet
getNewSheet()
Gets the newly selected sheet.
int
getNewSheetPOIIndex()
Gets the POI index of the newly selected sheet.
int
getNewSheetVisibleIndex()
Gets the index of the newly selected sheet among all visible sheets.
org.apache.poi.ss.usermodel.Sheet
getPreviousSheet()
Gets the sheet that was previously selected.
-
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
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 eventnewSheet
- New selectionpreviousSheet
- Previous selectionnewSheetVisibleIndex
- New visible index of selectionnewSheetPOIIndex
- 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
-
-