Home Reference Source
public class | source

Excel2007Exporter

Extends:

TypedObjectExporter → Excel2007Exporter

Exports the grid in CSV format

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

strTable(grid: *): string

Writes the header of the grid (columns) in csv format

Method Summary

Public Methods
public
public

Returns the content type so MS Excel launches when the exporter is run.

public

Extension of the download file.

public

Name of the exporter

public

uploadForEcho(body: *, exportOptions: *)

Just in case in the client wants to customize the upload behavior of their exporters.

public

writeFooter(grid: *, dataProvider: *): string

Writes the footer in CSV format

public

writeHeader(grid: flexiciousNmsp.FlexDataGrid): string

Writes the header of the grid (columns) in Excel 2007 format

public

writeRecord(grid: *, record: *): string

Writes an individual record in csv format

Inherited Summary

From class TypedObject
public

typeCache: {}

public
public

Returns a list of strings that represent the object hierarchy for this object.

public

Returns true if the class name to check is in the list of class names defined for this class.

From class Exporter
public static

getColumnHeader(col: *, colIndex: *): *

Gets the header for the row

public

allRecords: *[]

public
public
public
public
public
public

Returns the content type so the appropriate application launches when the exporter is run.

public

Extension of the download file.

public

Name of the exporter

public

The current nest depth of the record being exported

public

The nest indent on basis of the nest depth

public

getSpaces(col: *, spChar: *): String

Depending on the level, gets indentation spaces

public

Checks whether this column should be exported

public

saveFile(body: *, fileName: *, exportOptions: *): *

Saves the file to disk, or sends it to a remote server to buffer back.

public

uploadForEcho(body: *, exportOptions: *)

Just in case in the client wants to customize the upload behavior of their exporters.

public

uploadToServer(body: *, exportOptions: *)

Not used

public

writeFooter(grid: *, dataProvider: *): String

Writes out the footer for the row

public

writeHeader(grid: *): String

Writes out the header for the row

public

writeRecord(grid: *, record: *): String

Writes out the record for the row

Public Constructors

public constructor() source

Override:

Exporter#constructor

Public Members

public strTable(grid: *): string source

Writes the header of the grid (columns) in csv format

Public Methods

public getClassNames(): string[] source

Returns a list of strings that represent the object hierarchy for this object.

Override:

Exporter#getClassNames

Return:

string[]

public getContentType(): string source

Returns the content type so MS Excel launches when the exporter is run.

Override:

Exporter#getContentType

Return:

string

public getExtension(): string source

Extension of the download file.

Override:

Exporter#getExtension

Return:

string

public getName(): string source

Name of the exporter

Override:

Exporter#getName

Return:

string

public uploadForEcho(body: *, exportOptions: *) source

Just in case in the client wants to customize the upload behavior of their exporters.

Override:

Exporter#uploadForEcho

Params:

NameTypeAttributeDescription
body *
exportOptions *

public writeFooter(grid: *, dataProvider: *): string source

Writes the footer in CSV format

Override:

Exporter#writeFooter

Params:

NameTypeAttributeDescription
grid *
dataProvider *

Return:

string

public writeHeader(grid: flexiciousNmsp.FlexDataGrid): string source

Writes the header of the grid (columns) in Excel 2007 format

Override:

Exporter#writeHeader

Params:

NameTypeAttributeDescription
grid flexiciousNmsp.FlexDataGrid

Return:

string

public writeRecord(grid: *, record: *): string source

Writes an individual record in csv format

Override:

Exporter#writeRecord

Params:

NameTypeAttributeDescription
grid *
record *

Return:

string