public class TextExportSettings extends TextSettings
DataSource.recordsAsText()
.config, id, scClassName
Constructor and Description |
---|
TextExportSettings() |
TextExportSettings(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.core.client.JavaScriptObject |
create() |
DateDisplayFormat |
getDateFormat()
Format to use when outputting date values.
|
DateDisplayFormat |
getDateTimeFormat()
Format to use when outputting datetime values.
|
ForceTextApproach |
getForceText()
If set, all text fields will use the indicated
ForceTextApproach unless they have a
specific setting for DataSourceField.exportForceText() . |
java.lang.String |
getLineSeparator()
Separator between Records.
|
java.lang.String |
getNullValueText()
Text to export for a field with a null value.
|
static TextExportSettings |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.Boolean |
getQuoteValues()
Whether to surround each value with quotes ("").
|
TimeDisplayFormat |
getTimeFormat()
Format to use when outputting time values.
|
java.lang.Boolean |
getUseDisplayValue()
Whether to convert each field's value to the corresponding display value for export.
|
void |
setDateFormat(DateDisplayFormat dateFormat)
Format to use when outputting date values.
|
void |
setDateTimeFormat(DateDisplayFormat dateTimeFormat)
Format to use when outputting datetime values.
|
void |
setForceText(ForceTextApproach forceText)
If set, all text fields will use the indicated
ForceTextApproach unless they have a
specific setting for DataSourceField.exportForceText() . |
void |
setLineSeparator(java.lang.String lineSeparator)
Separator between Records.
|
void |
setNullValueText(java.lang.String nullValueText)
Text to export for a field with a null value.
|
void |
setQuoteValues(java.lang.Boolean quoteValues)
Whether to surround each value with quotes ("").
|
void |
setTimeFormat(TimeDisplayFormat timeFormat)
Format to use when outputting time values.
|
void |
setUseDisplayValue(java.lang.Boolean useDisplayValue)
Whether to convert each field's value to the corresponding display value for export.
|
getEscapingMode, getFieldList, getFieldSeparator, getJsObj, getOrCreateJsObj, isCreated, setEscapingMode, setFieldList, setFieldSeparator, setJavaScriptObject
asSGWTComponent, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getID, getRef, getScClassName, hasAutoAssignedID, internalSetID, internalSetID, onBind, onInit, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setID, setProperty, setProperty, setProperty, setProperty, setScClassName
public TextExportSettings()
public TextExportSettings(com.google.gwt.core.client.JavaScriptObject jsObj)
public static TextExportSettings getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public com.google.gwt.core.client.JavaScriptObject create()
create
in class TextSettings
public void setDateFormat(DateDisplayFormat dateFormat) throws java.lang.IllegalStateException
ExcelPasting
). The current
month-day-year order as set by Date.setInputFormat()
will be used.dateFormat
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic DateDisplayFormat getDateFormat()
ExcelPasting
). The current
month-day-year order as set by Date.setInputFormat()
will be used.public void setDateTimeFormat(DateDisplayFormat dateTimeFormat) throws java.lang.IllegalStateException
dateTimeFormat
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic DateDisplayFormat getDateTimeFormat()
public void setForceText(ForceTextApproach forceText) throws java.lang.IllegalStateException
ForceTextApproach
unless they have a
specific setting for DataSourceField.exportForceText()
.forceText
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic ForceTextApproach getForceText()
ForceTextApproach
unless they have a
specific setting for DataSourceField.exportForceText()
.public void setLineSeparator(java.lang.String lineSeparator) throws java.lang.IllegalStateException
setLineSeparator
in class TextSettings
lineSeparator
- Default value is "\n"java.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.String getLineSeparator()
getLineSeparator
in class TextSettings
public void setNullValueText(java.lang.String nullValueText) throws java.lang.IllegalStateException
nullValueText
- Default value is ""java.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.String getNullValueText()
public void setQuoteValues(java.lang.Boolean quoteValues) throws java.lang.IllegalStateException
quoteValues
- Default value is truejava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.Boolean getQuoteValues()
public void setTimeFormat(TimeDisplayFormat timeFormat) throws java.lang.IllegalStateException
timeFormat
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic TimeDisplayFormat getTimeFormat()
public void setUseDisplayValue(java.lang.Boolean useDisplayValue) throws java.lang.IllegalStateException
useDisplayValue
- Default value is falsejava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.Boolean getUseDisplayValue()