Class AddressUtil
java.lang.Object
com.vaadin.flow.component.spreadsheet.testbench.AddressUtil
- All Implemented Interfaces:
Serializable
An utility class that converts Excel cell addresses to integer coordinates.
- Author:
- Vaadin Ltd.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<org.openqa.selenium.Point>addressRangeToPoints(String addressRange) Converts an address range to a set of coordinates (Points)static org.openqa.selenium.PointaddressToPoint(String address) Converts a single cell address to its integer coordinates (Point)
-
Constructor Details
-
AddressUtil
public AddressUtil()
-
-
Method Details
-
addressToPoint
Converts a single cell address to its integer coordinates (Point)- Parameters:
address- The address of the cell, e.g. A3- Returns:
- the coordinates of the cell
-
addressRangeToPoints
Converts an address range to a set of coordinates (Points)- Parameters:
addressRange- The address range, e.g. A1:B3, AA20:AZ98, etc.- Returns:
- A set of integer coordinates for all cells in the specified range.
-