Class AddressUtil
- java.lang.Object
-
- com.vaadin.flow.component.spreadsheet.testbench.AddressUtil
-
- All Implemented Interfaces:
Serializable
public class AddressUtil extends Object implements Serializable
An utility class that converts Excel cell addresses to integer coordinates.- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AddressUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
-
-
-
Method Detail
-
addressToPoint
public static org.openqa.selenium.Point addressToPoint(String address)
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
public static Set<org.openqa.selenium.Point> addressRangeToPoints(String addressRange)
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.
-
-