Skip to content
Reference > Classes

SpreadSheetFlexsheet

Definition

SpreadSheetFlexsheet var = .... ;

Extends

Extended By

None

Description

Builder for generating a Spreadsheet Worksheet

Method Summary

Owner Name Return Type Description
SpreadSheetFlexsheet constructor() SpreadSheetFlexsheet Creates an empty Flexsheet
SpreadSheetFlexsheet clearCell(dimension) Boolean Clears the specified range of cells (removes style and value)
SpreadSheetFlexsheet clearCellNamedRange(namedRange) Boolean Clears the specified named range of cells
Object getClassName() String Returns the string name of this object's class type.
SpreadSheetFlexsheet getStyle(dimension) Integer Gets the style id for a specified range cell, returns null if it does not exist
SpreadSheetFlexsheet getTitle() String Gets the name of the underlying sheet
SpreadSheetFlexsheet getValue(dimension) Object Gets the value of a single cell. Note that this is the underlying excel value not what excel might compute
SpreadSheetFlexsheet getValues(dimension, hasHeader, classes) Table Returns the specified range of cells as a table
SpreadSheetFlexsheet getValuesNamedRange(namedRange, hasHeader, classes) Table Returns the specified named range as a table
SpreadSheetFlexsheet setStyle(dimensions, id) Boolean Sets the style id for the specified range of cells
SpreadSheetFlexsheet setTitle(title) String Sets the name of the underlying sheet
SpreadSheetFlexsheet setValue(dimensions, value) Boolean Sets the value for the specified range of cells
SpreadSheetFlexsheet setValue(dimension, value, useHeader) Boolean Sets the value for the specified range of cells using a table. Expects the top left position of the table as the input dimension
SpreadSheetFlexsheet setValueNamedRange(namedRange, value) Boolean Sets the value for the specified named range of cells
Object toJson() String Returns a json representation of this object.

Method Definitions


constructor()

SpreadSheetFlexsheet spreadsheetflexsheet = new SpreadSheetFlexsheet()

Description

Creates an empty Flexsheet


clearCell(dimension)

Boolean SpreadSheetFlexsheet::clearCell(String dimension)

Description

Clears the specified range of cells (removes style and value)

Parameter Definition

Name Type Description
dimension String  Excel dimensions to be cleared (e.g. A2, or A2:C4)

clearCellNamedRange(namedRange)

Boolean SpreadSheetFlexsheet::clearCellNamedRange(String namedRange)

Description

Clears the specified named range of cells

Parameter Definition

Name Type Description
namedRange String  Excel named range to be cleared

getStyle(dimension)

Integer SpreadSheetFlexsheet::getStyle(String dimension)

Description

Gets the style id for a specified range cell, returns null if it does not exist

Parameter Definition

Name Type Description
dimension String  Single excel dimension to be used (e.g. A2)

getTitle()

String SpreadSheetFlexsheet::getTitle()

Description

Gets the name of the underlying sheet


getValue(dimension)

Object SpreadSheetFlexsheet::getValue(String dimension)

Description

Gets the value of a single cell. Note that this is the underlying excel value not what excel might compute

Parameter Definition

Name Type Description
dimension String  Excel dimensions to be used (e.g. A2, or A2:C4 for a range)

getValues(dimension,hasHeader,classes)

Table SpreadSheetFlexsheet::getValues(String dimension, Boolean hasHeader, List classes)

Description

Returns the specified range of cells as a table

Parameter Definition

Name Type Description
dimension String  Excel dimensions to be retrieved (e.g. A2:C4). Only works for ranges
hasHeader Boolean  Does the range include a table header
classes List  List of expected column class types, use null to skip, speeds up parsing by removing type deduction (Supported: "String","Boolean","Integer","Long","Float","Double")

getValuesNamedRange(namedRange,hasHeader,classes)

Table SpreadSheetFlexsheet::getValuesNamedRange(String namedRange, Boolean hasHeader, List classes)

Description

Returns the specified named range as a table

Parameter Definition

Name Type Description
namedRange String  Named excel range to be retrieved
hasHeader Boolean  Does the range include a table header
classes List  List of expected column class types, use null to skip, speeds up parsing by removing type deduction (Supported: "String","Boolean","Integer","Long","Float","Double")

setStyle(dimensions,id)

Boolean SpreadSheetFlexsheet::setStyle(String dimensions, Integer id)

Description

Sets the style id for the specified range of cells

Parameter Definition

Name Type Description
dimensions String  Excel dimensions to be applied (e.g. A2, or A2:C4 for a range)
id Integer  Style id to be set (use getStyle to retrieve an existing id)

setTitle(title)

String SpreadSheetFlexsheet::setTitle(String title)

Description

Sets the name of the underlying sheet

Parameter Definition

Name Type Description
title String  Title to be set for the sheet

setValue(dimensions,value)

Boolean SpreadSheetFlexsheet::setValue(String dimensions, Object value)

Description

Sets the value for the specified range of cells

Parameter Definition

Name Type Description
dimensions String  Excel dimensions to be applied (e.g. A2, or A2:C4 for a range)
value Object  Value to be set

setValue(dimension,value,useHeader)

Boolean SpreadSheetFlexsheet::setValue(String dimension, Table value, Boolean useHeader)

Description

Sets the value for the specified range of cells using a table. Expects the top left position of the table as the input dimension

Parameter Definition

Name Type Description
dimension String  Upper left excel dimension to be used (e.g. A2)
value Table  Table to be set
useHeader Boolean  Should the table's header be applied

setValueNamedRange(namedRange,value)

Boolean SpreadSheetFlexsheet::setValueNamedRange(String namedRange, Object value)

Description

Sets the value for the specified named range of cells

Parameter Definition

Name Type Description
namedRange String  Named excel dimensions to be used
value Object  Value to be set