flexiciousNmsp.Exporter Class
psuedo abstract class responsible for most export functionality.
Constructor
flexiciousNmsp.Exporter
()
Item Index
Methods
getColumnHeader
(
-
col -
colIndex
Gets the header for the row
Parameters:
-
colObject -
colIndexObject
Returns:
:
getContentType
()
String
Returns the content type so the appropriate application launches when the exporter is run.
Returns:
String:
getExtension
()
String
Extension of the download file.
Returns:
String:
getName
()
String
Name of the exporter
Returns:
String:
getNestDepth
()
Number
The current nest depth of the record being exported
Returns:
Number:
getNestIndent
()
Number
The nest indent on basis of the nest depth
Returns:
Number:
getSpaces
(
String
-
col -
spChar
Depending on the level, gets indentation spaces
Parameters:
-
colObject -
spCharObject
Returns:
String:
isIncludedInExport
(
Boolean |
-
col
Checks whether this column should be exported
Parameters:
-
colObject
Returns:
Boolean | :
saveFile
(
-
body -
fileName -
exportOptions
Saves the file to disk, or sends it to a remote server to buffer back.
Parameters:
-
bodyObject -
fileNameObject -
exportOptionsObject
uploadForEcho
(
-
body -
exportOptions
Just in case in the client wants to customize the upload behavior of their exporters.
Parameters:
-
bodyObject -
exportOptionsObject
uploadToServer
()
Not used
writeHeader
(
String
-
grid
Writes out the header for the row
Parameters:
-
gridObject
Returns:
String:
writeRecord
(
String
-
grid -
record
Writes out the record for the row
Parameters:
-
gridObject -
recordObject
Returns:
String:
