Home Reference Source
public class | source

Exporter

Extends:

TypedObject → Exporter

Indirect Subclass:

DocExporter, ExcelExporter

psuedo abstract class responsible for most export functionality.

Static Method Summary

Static Public Methods
public static

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

Gets the header for the row

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

allRecords: *[]

public
public
public
public

Method Summary

Public Methods
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

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.

Static Public Methods

public static getColumnHeader(col: *, colIndex: *): * source

Gets the header for the row

Params:

NameTypeAttributeDescription
col *
colIndex *

Return:

*

Public Constructors

public constructor() source

Override:

TypedObject#constructor

Public Members

public allRecords: *[] source

public exportOptions: * source

public nestDepth: number source

public nestIndent: number source

public reusePreviousLevelColumns: boolean source

Public Methods

public getClassNames(): string[] source

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

Override:

TypedObject#getClassNames

Return:

string[]

public getContentType(): String source

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

Return:

String

public getExtension(): String source

Extension of the download file.

Return:

String

public getName(): String source

Name of the exporter

Return:

String

public getNestDepth(): Number source

The current nest depth of the record being exported

Return:

Number

public getNestIndent(): Number source

The nest indent on basis of the nest depth

Return:

Number

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

Depending on the level, gets indentation spaces

Params:

NameTypeAttributeDescription
col *
spChar *

Return:

String

public isIncludedInExport(col: *): Boolean | * source

Checks whether this column should be exported

Params:

NameTypeAttributeDescription
col *

Return:

Boolean | *

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

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

Params:

NameTypeAttributeDescription
body *
fileName *
exportOptions *

Return:

*

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

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

Params:

NameTypeAttributeDescription
body *
exportOptions *

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

Not used

Params:

NameTypeAttributeDescription
body *
exportOptions *

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

Writes out the footer for the row

Params:

NameTypeAttributeDescription
grid *
dataProvider *

Return:

String

public writeHeader(grid: *): String source

Writes out the header for the row

Params:

NameTypeAttributeDescription
grid *

Return:

String

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

Writes out the record for the row

Params:

NameTypeAttributeDescription
grid *
record *

Return:

String