public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
callMethodUsingReflection(Object o,
String name) |
static List<org.apache.poi.ss.util.CellReference> |
getAllReferencedCells(org.apache.poi.ss.SpreadsheetVersion version,
String formula)
Returns all the cells that the given formula references, hidden ones
included.
|
static List<org.apache.poi.ss.util.CellReference> |
getAllReferencedCells(String formula,
com.vaadin.addon.spreadsheet.Spreadsheet spreadsheet,
boolean includeHiddenCells)
This function returns all the cells that the given formula references.
|
static List<org.apache.poi.ss.util.CellReference> |
getAllReferencedVisibleCells(String formula,
com.vaadin.addon.spreadsheet.Spreadsheet spreadsheet)
This function uses the
getAllReferencedCells(String, Spreadsheet, boolean) function but
filters out all the hidden rows from the list honoring filtering of
charts based on spreadsheettable filter settings |
static org.apache.poi.ss.util.AreaReference[] |
getAreaReferences(org.apache.poi.ss.SpreadsheetVersion version,
String formula)
Returns an array of contiguous area references addressed by the given
formula.
|
static <E extends Enum> |
getEnumValueOrDefault(Class<? extends E> eClass,
String value,
E defaultValue) |
static Double |
getNumericValue(org.apache.poi.ss.util.CellReference ref,
com.vaadin.addon.spreadsheet.Spreadsheet spreadsheet) |
static String |
getStringValue(org.apache.poi.ss.util.CellReference ref,
com.vaadin.addon.spreadsheet.Spreadsheet spreadsheet) |
static String |
getStringValueFromFormula(String formula,
com.vaadin.addon.spreadsheet.Spreadsheet spreadsheet) |
static String |
join(List<String> array,
String separator) |
public static <E extends Enum> E getEnumValueOrDefault(Class<? extends E> eClass, String value, E defaultValue)
public static String getStringValueFromFormula(String formula, com.vaadin.addon.spreadsheet.Spreadsheet spreadsheet)
public static List<org.apache.poi.ss.util.CellReference> getAllReferencedCells(org.apache.poi.ss.SpreadsheetVersion version, String formula)
version - for inferring ranges for column-only referencesformula - the formula to find referenced cells forpublic static org.apache.poi.ss.util.AreaReference[] getAreaReferences(org.apache.poi.ss.SpreadsheetVersion version,
String formula)
version - to infer max # of rows for column-only formula referencesformula - containing possibly non-contiguous area refrencespublic static List<org.apache.poi.ss.util.CellReference> getAllReferencedVisibleCells(String formula, com.vaadin.addon.spreadsheet.Spreadsheet spreadsheet)
getAllReferencedCells(String, Spreadsheet, boolean) function but
filters out all the hidden rows from the list honoring filtering of
charts based on spreadsheettable filter settingsformula - the formula to find referenced cells forspreadsheet - the spreadsheet to operate onpublic static List<org.apache.poi.ss.util.CellReference> getAllReferencedCells(String formula, com.vaadin.addon.spreadsheet.Spreadsheet spreadsheet, boolean includeHiddenCells)
formula - The formula to find referenced cells forspreadsheet - Spreadsheet to operate onincludeHiddenCells - true to include cells residing on hidden rows or
columns, false to omit thempublic static String getStringValue(org.apache.poi.ss.util.CellReference ref, com.vaadin.addon.spreadsheet.Spreadsheet spreadsheet)
public static Double getNumericValue(org.apache.poi.ss.util.CellReference ref, com.vaadin.addon.spreadsheet.Spreadsheet spreadsheet)
Copyright © 2016–2025 Vaadin Ltd. All rights reserved.