public class App
extends com.smoothcsv.core.macro.apiimpl.APIBase
Modifier and Type | Method and Description |
---|---|
static CellEditor |
getActiveCellEditor()
Returns the active
CellEditor or null if there is no active CellEditor. |
static CellEditor |
getActiveCellEditor(boolean startEdit)
Returns the active
CellEditor . |
static Range |
getActiveRange()
Returns the range of cells that is currently considered active.
|
static CsvSheet |
getActiveSheet()
Gets the active csvsheet.
|
static java.lang.String |
getName()
Returns the name of this application.
|
static CsvSheet[] |
getSheets()
Gets all the sheets in this application.
|
static java.lang.String |
getVersion()
Returns the version name of this application.
|
static void |
newSheet()
Creates a new csvsheet with the default properties.
|
static void |
newSheet(int rows,
int columns)
Creates a new csvsheet with default properties and the specified number of rows and columns.
|
static void |
newSheet(int rows,
int columns,
CsvProperties properties)
Creates a new csvsheet with the specified number of rows and columns and properties.
|
static void |
open(java.lang.String pathname)
Opens the csvsheet that corresponds to the given file path with the default properties.
|
static void |
open(java.lang.String pathname,
CsvProperties properties)
Opens the csvsheet that corresponds to the given file path with the specified properties.
|
static void |
setActiveSheet(CsvSheet csvSheet)
Sets the active csvsheet.
|
public static java.lang.String getName()
public static java.lang.String getVersion()
public static void newSheet()
public static void newSheet(int rows, int columns)
rows
- the number of rows for the csvsheetcolumns
- the number of columns for the csvsheetpublic static void newSheet(int rows, int columns, CsvProperties properties)
rows
- the number of rows for the csvsheetcolumns
- the number of columns for the csvsheetproperties
- the propertiespublic static void open(java.lang.String pathname)
pathname
- the file path to openpublic static void open(java.lang.String pathname, CsvProperties properties)
pathname
- the file path to openproperties
- the propertiespublic static CsvSheet getActiveSheet()
CsvSheet
objectpublic static void setActiveSheet(CsvSheet csvSheet)
csvSheet
- the sheet to be activatedpublic static Range getActiveRange()
public static CellEditor getActiveCellEditor()
CellEditor
or null if there is no active CellEditor.CellEditor
public static CellEditor getActiveCellEditor(boolean startEdit)
CellEditor
.startEdit
- true
to start editing if there is no active CellEditor.;
false
to return null if there is no active CellEditor.CellEditor
public static CsvSheet[] getSheets()