public class TextImportSettings extends TextSettings
DataSource.recordsFromText
.config, id, scClassName
Constructor and Description |
---|
TextImportSettings() |
TextImportSettings(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.core.client.JavaScriptObject |
create() |
java.lang.Boolean |
getHasHeaderLine()
If set to true, the data is assumed to have a header line that lists titles for each field, which should be parsed.
|
static TextImportSettings |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
void |
setHasHeaderLine(java.lang.Boolean hasHeaderLine)
If set to true, the data is assumed to have a header line that lists titles for each field, which should be parsed.
|
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj) |
getEscapingMode, getFieldList, getFieldSeparator, getLineSeparator, isCreated, setEscapingMode, setFieldList, setFieldSeparator, setLineSeparator
asSGWTComponent, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getID, getJsObj, getOrCreateJsObj, getRef, getScClassName, internalSetID, internalSetID, onBind, onInit, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setID, setProperty, setProperty, setProperty, setProperty, setScClassName
public TextImportSettings()
public TextImportSettings(com.google.gwt.core.client.JavaScriptObject jsObj)
public static TextImportSettings getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
setJavaScriptObject
in class TextSettings
public com.google.gwt.core.client.JavaScriptObject create()
create
in class TextSettings
public void setHasHeaderLine(java.lang.Boolean hasHeaderLine) throws java.lang.IllegalStateException
recordsFromText
will then try to find a same-named DataSourceField by checking parsed titles against
both title
and name
(titles first), doing a case-insensitive comparison with any
leading or trailing whitespace removed from the title. If no field matches, data will appear in the returned Records
under the exact title parsed from the header line.
If this approach will not find appropriate DataSourceFields,
parse the header line before calling recordsFromText()
, and provide the list of field names to use when
parsing data as fieldList
.
hasHeaderLine
- hasHeaderLine Default value is falsejava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.Boolean getHasHeaderLine()
recordsFromText
will then try to find a same-named DataSourceField by checking parsed titles against
both title
and name
(titles first), doing a case-insensitive comparison with any
leading or trailing whitespace removed from the title. If no field matches, data will appear in the returned Records
under the exact title parsed from the header line.
If this approach will not find appropriate DataSourceFields,
parse the header line before calling recordsFromText()
, and provide the list of field names to use when
parsing data as fieldList
.