Class DetailViewerField
- All Implemented Interfaces:
HasHandlers
DetailViewer
.-
Field Summary
Fields inherited from class com.smartgwt.client.core.RefDataClass
id
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDictates whether the data in this field be exported.Determines whether this field can be hilited.If specified, cells in this field will be rendered using this css className rather thanDetailViewer.cellStyle
dataPath property allows this field to display detail from nested data structuresDisplay format to use for date type values within this field.Applies only to fields of type "float" and enforces a minimum number of digits shown after the decimal point.Applies only to fields of type "float" and affects how many significant digits are shown.IfdisplayField
is defined for the field then the DetailViewer will display thedisplayField
attribute of records instead of the attribute given by thename
of the field.The value to display for a cell whose value is null or the empty string after applying formatCellValue and valueMap (if any).By default HTML values in DetailViewer cells will be interpreted by the browser.FormatString
used during exports for numeric or date formatting.Dictates whether the data in this field should be exported raw byexportClientData()
.FormatString
for numeric or date formatting.Fortype
:"separator"
, this attribute specifies the height of the separator.Height for hilite icons for this field.How much padding should there be on the left ofhilite icons
for this field? OverridesDetailViewer.hiliteIconLeftPadding
WhenDetailViewer.hiliteIcons
are present, where the hilite icon will be placed relative to the field value.How much padding should there be on the right ofhilite icons
for this field? OverridesDetailViewer.hiliteIconRightPadding
Default width and height ofhilite icons
in this field.Width for hilite icons for this field.Height of image shown for fieldTypes image in this field.Height of image shown for fieldTypes image in this field.Size of images shown for fieldTypes image in this field.Size of images shown for fieldTypes image in this field.If this field has type set to"image"
and the URL for the image displayed is not absolute, the path of the URL will be relative to this string.If this field has type set to"image"
, the value of this property will be appended to the end of the URL for the icon displayed.Width of images shown for fieldTypes image in this field.Width of images shown for fieldTypes image in this field.Indicates this field's values come from another, related DataSource.The HTML to display for values of this field if the field type is set to "link".Name of the property in a DetailViewerRecord that holds the HTML to display for values of this field if the field type is set to "link".If this field has type set to"link"
, setting this property will apply a standard prefix to the link URL when displaying values of this field.If this field has type set to"link"
, setting this property will apply a standard suffix to the link URL when displaying values of this field.getName()
Name property used to identify the field, and determines which attribute from records will be displayed in this field.static DetailViewerField
getOrCreateRef
(JavaScriptObject jsObj) If specified, when generating print HTML for this detailViewer, cells in this field will be rendered using this css className rather thanDetailViewer.printCellStyle
For a field of type:"imageFile", indicates whether to stream the image and display it inline or to display the View and Download icons.By default, clicking a link rendered by this item opens it in a new browser window.Time-format to apply to date type values within this field.getTitle()
The title of the field as displayed on the left-hand side.getType()
Specifies the type of this DetailViewerField.Formula definition for this field.Summary definition for this field.getValue()
When a field specifies itstype
to be "header", the value of this attribute specifies the header text.setCanExport
(Boolean canExport) Dictates whether the data in this field be exported.setCanHilite
(Boolean canHilite) Determines whether this field can be hilited.setCellStyle
(String cellStyle) If specified, cells in this field will be rendered using this css className rather thanDetailViewer.cellStyle
void
setCellStyleHandler
(CellStyleHandler handler) Return the CSS class for a cell.setDataPath
(String dataPath) dataPath property allows this field to display detail from nested data structuressetDateFormatter
(DateDisplayFormat dateFormatter) Display format to use for date type values within this field.setDecimalPad
(Integer decimalPad) Applies only to fields of type "float" and enforces a minimum number of digits shown after the decimal point.setDecimalPrecision
(Integer decimalPrecision) Applies only to fields of type "float" and affects how many significant digits are shown.void
setDetailFormatter
(DetailFormatter formatter) setDisplayField
(String displayField) IfdisplayField
is defined for the field then the DetailViewer will display thedisplayField
attribute of records instead of the attribute given by thename
of the field.setEmptyCellValue
(String emptyCellValue) The value to display for a cell whose value is null or the empty string after applying formatCellValue and valueMap (if any).setEscapeHTML
(Boolean escapeHTML) By default HTML values in DetailViewer cells will be interpreted by the browser.setExportFormat
(String exportFormat) FormatString
used during exports for numeric or date formatting.setExportRawValues
(Boolean exportRawValues) Dictates whether the data in this field should be exported raw byexportClientData()
.FormatString
for numeric or date formatting.Fortype
:"separator"
, this attribute specifies the height of the separator.setHiliteIconHeight
(Integer hiliteIconHeight) Height for hilite icons for this field.setHiliteIconLeftPadding
(Integer hiliteIconLeftPadding) How much padding should there be on the left ofhilite icons
for this field? OverridesDetailViewer.hiliteIconLeftPadding
setHiliteIconPosition
(HiliteIconPosition hiliteIconPosition) WhenDetailViewer.hiliteIcons
are present, where the hilite icon will be placed relative to the field value.setHiliteIconRightPadding
(Integer hiliteIconRightPadding) How much padding should there be on the right ofhilite icons
for this field? OverridesDetailViewer.hiliteIconRightPadding
setHiliteIconSize
(Integer hiliteIconSize) Default width and height ofhilite icons
in this field.setHiliteIconWidth
(Integer hiliteIconWidth) Width for hilite icons for this field.setImageHeight
(Integer imageHeight) Height of image shown for fieldTypes image in this field.setImageHeight
(String imageHeight) Height of image shown for fieldTypes image in this field.setImageSize
(Integer imageSize) Size of images shown for fieldTypes image in this field.setImageSize
(String imageSize) Size of images shown for fieldTypes image in this field.setImageURLPrefix
(String imageURLPrefix) If this field has type set to"image"
and the URL for the image displayed is not absolute, the path of the URL will be relative to this string.setImageURLSuffix
(String imageURLSuffix) If this field has type set to"image"
, the value of this property will be appended to the end of the URL for the icon displayed.setImageWidth
(Integer imageWidth) Width of images shown for fieldTypes image in this field.setImageWidth
(String imageWidth) Width of images shown for fieldTypes image in this field.setIncludeFrom
(String includeFrom) Indicates this field's values come from another, related DataSource.setLinkText
(String linkText) The HTML to display for values of this field if the field type is set to "link".setLinkTextProperty
(String linkTextProperty) Name of the property in a DetailViewerRecord that holds the HTML to display for values of this field if the field type is set to "link".setLinkURLPrefix
(String linkURLPrefix) If this field has type set to"link"
, setting this property will apply a standard prefix to the link URL when displaying values of this field.setLinkURLSuffix
(String linkURLSuffix) If this field has type set to"link"
, setting this property will apply a standard suffix to the link URL when displaying values of this field.Name property used to identify the field, and determines which attribute from records will be displayed in this field.setPrintCellStyle
(String printCellStyle) If specified, when generating print HTML for this detailViewer, cells in this field will be rendered using this css className rather thanDetailViewer.printCellStyle
setShowFileInline
(Boolean showFileInline) For a field of type:"imageFile", indicates whether to stream the image and display it inline or to display the View and Download icons.void
If specified on a field, this method is evaluated at draw time to determine whether or not to show this particular field.By default, clicking a link rendered by this item opens it in a new browser window.setTimeFormatter
(TimeDisplayFormat timeFormatter) Time-format to apply to date type values within this field.The title of the field as displayed on the left-hand side.Specifies the type of this DetailViewerField.setUserFormula
(UserFormula userFormula) Formula definition for this field.setUserSummary
(UserSummary userSummary) Summary definition for this field.When a field specifies itstype
to be "header", the value of this attribute specifies the header text.setValueMap
(Map valueMap) A property list (or an expression that evaluates to a property list) specifying a mapping of internal values to display values for the field (row).Methods inherited from class com.smartgwt.client.data.Field
getCanEdit, getExportTitle, getMultiple, getSortByField, getValueMap, setCanEdit, setExportTitle, setMultiple, setRequired, setSortByField
Methods inherited from class com.smartgwt.client.core.RefDataClass
getRef, getRef, internalSetID
Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
DetailViewerField
public DetailViewerField() -
DetailViewerField
-
DetailViewerField
-
DetailViewerField
-
-
Method Details
-
getOrCreateRef
-
setCanExport
Dictates whether the data in this field be exported. Explicitly set this to false to prevent exporting. Has no effect if the underlyingdataSourceField
is explicitly set to canExport: false.- Overrides:
setCanExport
in classField
- Parameters:
canExport
- New canExport value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls
-
getCanExport
Dictates whether the data in this field be exported. Explicitly set this to false to prevent exporting. Has no effect if the underlyingdataSourceField
is explicitly set to canExport: false.- Overrides:
getCanExport
in classField
- Returns:
- Current canExport value. Default value is null
-
setCanHilite
Determines whether this field can be hilited. Set to false to prevent this field from appearing in HiliteEditor.- Parameters:
canHilite
- New canHilite value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getCanHilite
Determines whether this field can be hilited. Set to false to prevent this field from appearing in HiliteEditor.- Returns:
- Current canHilite value. Default value is null
- See Also:
-
setCellStyle
If specified, cells in this field will be rendered using this css className rather thanDetailViewer.cellStyle
- Parameters:
cellStyle
- New cellStyle value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getCellStyle
If specified, cells in this field will be rendered using this css className rather thanDetailViewer.cellStyle
- Returns:
- Optional method to return the CSS class for cells in this field. If specified, this method will be called from
DetailViewer.getCellStyle()
, and should return a css class name. Default value is null - See Also:
-
setDataPath
dataPath property allows this field to display detail from nested data structuresNote : This is an advanced setting
- Parameters:
dataPath
- New dataPath value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls
-
getDataPath
dataPath property allows this field to display detail from nested data structures- Returns:
- Current dataPath value. Default value is null
-
setDateFormatter
Display format to use for date type values within this field.The
timeFormatter
may also be used to format underlying Date values as times (omitting the date part entirely). If bothdateFormatter
andtimeFormatter
are specified on a field, for fields specified astype "time"
thetimeFormatter
will be used, otherwise thedateFormatter
If
field.dateFormatter
andfield.timeFormatter
is unspecified, date display format may be defined at the component level viaDetailViewer.dateFormatter
, or for fields of type"datetime"
DetailViewer.datetimeFormatter
. Otherwise the default is to use the system-wide default normal date format, configured viaDateUtil.setNormalDisplayFormat()
. Specify any validDateDisplayFormat
to change the format used by this item.- Parameters:
dateFormatter
- New dateFormatter value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getDateFormatter
Display format to use for date type values within this field.The
timeFormatter
may also be used to format underlying Date values as times (omitting the date part entirely). If bothdateFormatter
andtimeFormatter
are specified on a field, for fields specified astype "time"
thetimeFormatter
will be used, otherwise thedateFormatter
If
field.dateFormatter
andfield.timeFormatter
is unspecified, date display format may be defined at the component level viaDetailViewer.dateFormatter
, or for fields of type"datetime"
DetailViewer.datetimeFormatter
. Otherwise the default is to use the system-wide default normal date format, configured viaDateUtil.setNormalDisplayFormat()
. Specify any validDateDisplayFormat
to change the format used by this item.- Returns:
- Current dateFormatter value. Default value is null
- See Also:
-
setDecimalPad
Applies only to fields of type "float" and enforces a minimum number of digits shown after the decimal point.For example, a field value of 343.1, 343.104 and 343.09872677 would all be shown as 343.10 if decimalPad is 2.
The original unpadded value is always shown when the value is edited.
- Parameters:
decimalPad
- New decimalPad value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getDecimalPad
Applies only to fields of type "float" and enforces a minimum number of digits shown after the decimal point.For example, a field value of 343.1, 343.104 and 343.09872677 would all be shown as 343.10 if decimalPad is 2.
The original unpadded value is always shown when the value is edited.
- Returns:
- Current decimalPad value. Default value is null
- See Also:
-
setDecimalPrecision
Applies only to fields of type "float" and affects how many significant digits are shown.For example, with decimalPrecision 3, if the field value is 343.672677, 343.673 is shown.
If the value is 125.2, 125.2 is shown - decimalPrecision will not cause extra zeros to be added. Use
DataSourceField.decimalPad
for this.A number is always shown with its original precision when edited.
- Parameters:
decimalPrecision
- New decimalPrecision value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getDecimalPrecision
Applies only to fields of type "float" and affects how many significant digits are shown.For example, with decimalPrecision 3, if the field value is 343.672677, 343.673 is shown.
If the value is 125.2, 125.2 is shown - decimalPrecision will not cause extra zeros to be added. Use
DataSourceField.decimalPad
for this.A number is always shown with its original precision when edited.
- Returns:
- Current decimalPrecision value. Default value is null
- See Also:
-
setDisplayField
IfdisplayField
is defined for the field then the DetailViewer will display thedisplayField
attribute of records instead of the attribute given by thename
of the field.- Parameters:
displayField
- New displayField value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls
-
getDisplayField
IfdisplayField
is defined for the field then the DetailViewer will display thedisplayField
attribute of records instead of the attribute given by thename
of the field.- Returns:
- Current displayField value. Default value is null
-
setEmptyCellValue
The value to display for a cell whose value is null or the empty string after applying formatCellValue and valueMap (if any).This is the field-specific attribute. You may also set the emptyCellValue at the viewer level to define the emptyCellValue for all empty fields in the viewer.
- Parameters:
emptyCellValue
- New emptyCellValue value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getEmptyCellValue
The value to display for a cell whose value is null or the empty string after applying formatCellValue and valueMap (if any).This is the field-specific attribute. You may also set the emptyCellValue at the viewer level to define the emptyCellValue for all empty fields in the viewer.
- Returns:
- Current emptyCellValue value. Default value is null
- See Also:
-
setEscapeHTML
By default HTML values in DetailViewer cells will be interpreted by the browser. Setting this flag to true will causes HTML characters to be escaped, meaning the raw value of the field (for example"<b>AAA</b>"
) is displayed to the user rather than the interpreted HTML (for example"AAA"
)- Overrides:
setEscapeHTML
in classField
- Parameters:
escapeHTML
- New escapeHTML value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls
-
getEscapeHTML
By default HTML values in DetailViewer cells will be interpreted by the browser. Setting this flag to true will causes HTML characters to be escaped, meaning the raw value of the field (for example"<b>AAA</b>"
) is displayed to the user rather than the interpreted HTML (for example"AAA"
)- Overrides:
getEscapeHTML
in classField
- Returns:
- Current escapeHTML value. Default value is null
-
setExportFormat
FormatString
used during exports for numeric or date formatting. SeeDataSourceField.exportFormat
.- Parameters:
exportFormat
- New exportFormat value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getExportFormat
FormatString
used during exports for numeric or date formatting. SeeDataSourceField.exportFormat
.- Returns:
- Current exportFormat value. Default value is null
- See Also:
-
setExportRawValues
Dictates whether the data in this field should be exported raw byexportClientData()
. If set to true for a field, the values in the field-formatters will not be executed for data in this field.- Parameters:
exportRawValues
- New exportRawValues value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls
-
getExportRawValues
Dictates whether the data in this field should be exported raw byexportClientData()
. If set to true for a field, the values in the field-formatters will not be executed for data in this field.- Returns:
- Current exportRawValues value. Default value is null
-
setFormat
FormatString
for numeric or date formatting. SeeDataSourceField.format
.- Parameters:
format
- New format value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getFormat
FormatString
for numeric or date formatting. SeeDataSourceField.format
.- Returns:
- Current format value. Default value is null
- See Also:
-
setHeight
Fortype
:"separator"
, this attribute specifies the height of the separator.- Parameters:
height
- New height value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls
-
getHeight
Fortype
:"separator"
, this attribute specifies the height of the separator.- Returns:
- Current height value. Default value is null
-
setHiliteIconHeight
Height for hilite icons for this field. OverridesDetailViewer.hiliteIconSize
,DetailViewer.hiliteIconHeight
, andhiliteIconSize
.- Parameters:
hiliteIconHeight
- New hiliteIconHeight value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getHiliteIconHeight
Height for hilite icons for this field. OverridesDetailViewer.hiliteIconSize
,DetailViewer.hiliteIconHeight
, andhiliteIconSize
.- Returns:
- Current hiliteIconHeight value. Default value is null
- See Also:
-
setHiliteIconLeftPadding
How much padding should there be on the left ofhilite icons
for this field? OverridesDetailViewer.hiliteIconLeftPadding
- Parameters:
hiliteIconLeftPadding
- New hiliteIconLeftPadding value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getHiliteIconLeftPadding
How much padding should there be on the left ofhilite icons
for this field? OverridesDetailViewer.hiliteIconLeftPadding
- Returns:
- Current hiliteIconLeftPadding value. Default value is null
- See Also:
-
setHiliteIconPosition
WhenDetailViewer.hiliteIcons
are present, where the hilite icon will be placed relative to the field value. SeeHiliteIconPosition
. OverridesDetailViewer.hiliteIconPosition
- Parameters:
hiliteIconPosition
- New hiliteIconPosition value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getHiliteIconPosition
WhenDetailViewer.hiliteIcons
are present, where the hilite icon will be placed relative to the field value. SeeHiliteIconPosition
. OverridesDetailViewer.hiliteIconPosition
- Returns:
- Current hiliteIconPosition value. Default value is null
- See Also:
-
setHiliteIconRightPadding
How much padding should there be on the right ofhilite icons
for this field? OverridesDetailViewer.hiliteIconRightPadding
- Parameters:
hiliteIconRightPadding
- New hiliteIconRightPadding value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getHiliteIconRightPadding
How much padding should there be on the right ofhilite icons
for this field? OverridesDetailViewer.hiliteIconRightPadding
- Returns:
- Current hiliteIconRightPadding value. Default value is null
- See Also:
-
setHiliteIconSize
Default width and height ofhilite icons
in this field. Takes precedence over hiliteIconWidth, hiliteIconHeight and hiliteIconSize specified at the component level. Can be overridden viahiliteIconWidth
andhiliteIconHeight
- Parameters:
hiliteIconSize
- New hiliteIconSize value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getHiliteIconSize
Default width and height ofhilite icons
in this field. Takes precedence over hiliteIconWidth, hiliteIconHeight and hiliteIconSize specified at the component level. Can be overridden viahiliteIconWidth
andhiliteIconHeight
- Returns:
- Current hiliteIconSize value. Default value is null
- See Also:
-
setHiliteIconWidth
Width for hilite icons for this field. OverridesDetailViewer.hiliteIconSize
,DetailViewer.hiliteIconWidth
, andhiliteIconSize
.- Parameters:
hiliteIconWidth
- New hiliteIconWidth value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getHiliteIconWidth
Width for hilite icons for this field. OverridesDetailViewer.hiliteIconSize
,DetailViewer.hiliteIconWidth
, andhiliteIconSize
.- Returns:
- Current hiliteIconWidth value. Default value is null
- See Also:
-
setImageHeight
Height of image shown for fieldTypes image in this field.If set to a String, assumed to be a property on each record that specifies the image height. For example, if
field.imageHeight
is "logoHeight",record.logoHeight
will control the height of the image.- Parameters:
imageHeight
- New imageHeight value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getImageHeight
Height of image shown for fieldTypes image in this field.If set to a String, assumed to be a property on each record that specifies the image height. For example, if
field.imageHeight
is "logoHeight",record.logoHeight
will control the height of the image.- Returns:
- Current imageHeight value. Default value is null
- See Also:
-
setImageHeight
Height of image shown for fieldTypes image in this field.If set to a String, assumed to be a property on each record that specifies the image height. For example, if
field.imageHeight
is "logoHeight",record.logoHeight
will control the height of the image.- Parameters:
imageHeight
- New imageHeight value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getImageHeightAsString
Height of image shown for fieldTypes image in this field.If set to a String, assumed to be a property on each record that specifies the image height. For example, if
field.imageHeight
is "logoHeight",record.logoHeight
will control the height of the image.- Returns:
- Current imageHeight value. Default value is null
- See Also:
-
setImageSize
Size of images shown for fieldTypes image in this field.If set to a String, assumed to be a property on each record that specifies the image height. For example, if
field.imageSize
is "logoSize",record.logoSize
will control the size of the image.- Parameters:
imageSize
- New imageSize value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getImageSize
Size of images shown for fieldTypes image in this field.If set to a String, assumed to be a property on each record that specifies the image height. For example, if
field.imageSize
is "logoSize",record.logoSize
will control the size of the image.- Returns:
- Current imageSize value. Default value is null
- See Also:
-
setImageSize
Size of images shown for fieldTypes image in this field.If set to a String, assumed to be a property on each record that specifies the image height. For example, if
field.imageSize
is "logoSize",record.logoSize
will control the size of the image.- Parameters:
imageSize
- New imageSize value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getImageSizeAsString
Size of images shown for fieldTypes image in this field.If set to a String, assumed to be a property on each record that specifies the image height. For example, if
field.imageSize
is "logoSize",record.logoSize
will control the size of the image.- Returns:
- Current imageSize value. Default value is null
- See Also:
-
setImageURLPrefix
If this field has type set to"image"
and the URL for the image displayed is not absolute, the path of the URL will be relative to this string.Note : This is an advanced setting
- Parameters:
imageURLPrefix
- New imageURLPrefix value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getImageURLPrefix
If this field has type set to"image"
and the URL for the image displayed is not absolute, the path of the URL will be relative to this string.- Returns:
- Current imageURLPrefix value. Default value is null
- See Also:
-
setImageURLSuffix
If this field has type set to"image"
, the value of this property will be appended to the end of the URL for the icon displayed.Note : This is an advanced setting
- Parameters:
imageURLSuffix
- New imageURLSuffix value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getImageURLSuffix
If this field has type set to"image"
, the value of this property will be appended to the end of the URL for the icon displayed.- Returns:
- Current imageURLSuffix value. Default value is null
- See Also:
-
setImageWidth
Width of images shown for fieldTypes image in this field.If set to a String, assumed to be a property on each record that specifies the image width. For example, if
field.imageWidth
is "logoWidth",record.logoWidth
will control the width of the image.- Parameters:
imageWidth
- New imageWidth value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getImageWidth
Width of images shown for fieldTypes image in this field.If set to a String, assumed to be a property on each record that specifies the image width. For example, if
field.imageWidth
is "logoWidth",record.logoWidth
will control the width of the image.- Returns:
- Current imageWidth value. Default value is null
- See Also:
-
setImageWidth
Width of images shown for fieldTypes image in this field.If set to a String, assumed to be a property on each record that specifies the image width. For example, if
field.imageWidth
is "logoWidth",record.logoWidth
will control the width of the image.- Parameters:
imageWidth
- New imageWidth value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getImageWidthAsString
Width of images shown for fieldTypes image in this field.If set to a String, assumed to be a property on each record that specifies the image width. For example, if
field.imageWidth
is "logoWidth",record.logoWidth
will control the width of the image.- Returns:
- Current imageWidth value. Default value is null
- See Also:
-
setIncludeFrom
Indicates this field's values come from another, related DataSource. The individual field will inherit settings such asfield.type
andfield.title
from the related DataSource just like fields from the primary DataSource.- Parameters:
includeFrom
- New includeFrom value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls
-
getIncludeFrom
Indicates this field's values come from another, related DataSource. The individual field will inherit settings such asfield.type
andfield.title
from the related DataSource just like fields from the primary DataSource.- Returns:
- Current includeFrom value. Default value is null
-
setLinkText
The HTML to display for values of this field if the field type is set to "link".This property sets linkText that will be the same for all records. You can set linkText on a per-record basis via
DetailViewerRecord.linkText
.- Parameters:
linkText
- New linkText value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getLinkText
The HTML to display for values of this field if the field type is set to "link".This property sets linkText that will be the same for all records. You can set linkText on a per-record basis via
DetailViewerRecord.linkText
.- Returns:
- Current linkText value. Default value is null
- See Also:
-
setLinkTextProperty
Name of the property in a DetailViewerRecord that holds the HTML to display for values of this field if the field type is set to "link".- Parameters:
linkTextProperty
- New linkTextProperty value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getLinkTextProperty
Name of the property in a DetailViewerRecord that holds the HTML to display for values of this field if the field type is set to "link".- Returns:
- Current linkTextProperty value. Default value is null
- See Also:
-
setLinkURLPrefix
If this field has type set to"link"
, setting this property will apply a standard prefix to the link URL when displaying values of this field.Note : This is an advanced setting
- Parameters:
linkURLPrefix
- New linkURLPrefix value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getLinkURLPrefix
If this field has type set to"link"
, setting this property will apply a standard prefix to the link URL when displaying values of this field.- Returns:
- Current linkURLPrefix value. Default value is null
- See Also:
-
setLinkURLSuffix
If this field has type set to"link"
, setting this property will apply a standard suffix to the link URL when displaying values of this field.Note : This is an advanced setting
- Parameters:
linkURLSuffix
- New linkURLSuffix value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getLinkURLSuffix
If this field has type set to"link"
, setting this property will apply a standard suffix to the link URL when displaying values of this field.- Returns:
- Current linkURLSuffix value. Default value is null
- See Also:
-
setName
Name property used to identify the field, and determines which attribute from records will be displayed in this field.Must be unique within the DetailViewer as well as a valid JavaScript identifier - see
FieldName
for details and how to check for validity.The attribute of the records to display in this field may also be set by
displayField
.- Overrides:
setName
in classDBCField
- Parameters:
name
- New name value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getName
Name property used to identify the field, and determines which attribute from records will be displayed in this field.Must be unique within the DetailViewer as well as a valid JavaScript identifier - see
FieldName
for details and how to check for validity.The attribute of the records to display in this field may also be set by
displayField
. -
setPrintCellStyle
If specified, when generating print HTML for this detailViewer, cells in this field will be rendered using this css className rather thanDetailViewer.printCellStyle
- Parameters:
printCellStyle
- New printCellStyle value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getPrintCellStyle
If specified, when generating print HTML for this detailViewer, cells in this field will be rendered using this css className rather thanDetailViewer.printCellStyle
- Returns:
- Current printCellStyle value. Default value is null
- See Also:
-
setShowFileInline
For a field of type:"imageFile", indicates whether to stream the image and display it inline or to display the View and Download icons.- Parameters:
showFileInline
- New showFileInline value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls
-
getShowFileInline
For a field of type:"imageFile", indicates whether to stream the image and display it inline or to display the View and Download icons.- Returns:
- Current showFileInline value. Default value is null
-
setTarget
By default, clicking a link rendered by this item opens it in a new browser window. You can alter this behavior by setting this property. The value of this property will be passed as the value to thetarget
attribute of the anchor tag used to render the link.target
is applicable only if the field type is set to "link".- Parameters:
target
- New target value. Default value is "_blank"- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getTarget
By default, clicking a link rendered by this item opens it in a new browser window. You can alter this behavior by setting this property. The value of this property will be passed as the value to thetarget
attribute of the anchor tag used to render the link.target
is applicable only if the field type is set to "link".- Returns:
- Current target value. Default value is "_blank"
- See Also:
-
setTimeFormatter
Time-format to apply to date type values within this field. If specified, any dates displayed in this field will be formatted as times using the appropriate format. This is most commonly only applied to fields specified as type"time"
though if no explicitdateFormatter
is specified it will be respected for other fields as well.If unspecified, a timeFormatter may be defined
at the component level
and will be respected by fields of type"time"
.Note : This is an advanced setting
- Parameters:
timeFormatter
- New timeFormatter value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getTimeFormatter
Time-format to apply to date type values within this field. If specified, any dates displayed in this field will be formatted as times using the appropriate format. This is most commonly only applied to fields specified as type"time"
though if no explicitdateFormatter
is specified it will be respected for other fields as well.If unspecified, a timeFormatter may be defined
at the component level
and will be respected by fields of type"time"
.- Returns:
- Current timeFormatter value. Default value is null
- See Also:
-
setTitle
The title of the field as displayed on the left-hand side. If left unspecified, the title of the field is thename
of the field.- Overrides:
setTitle
in classField
- Parameters:
title
- New title value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getTitle
The title of the field as displayed on the left-hand side. If left unspecified, the title of the field is thename
of the field. -
setType
Specifies the type of this DetailViewerField. By default (value isnull
) the field shows a field title on the left and the field value on the right. There are four special values for this attribute:- "header" - If you
specify type "header", the field spans both the field name and field value columns and contains text defined in the
value
attribute with the style specified byDetailViewer.headerStyle
. You can use this field type as a titled separator. - "separator" - If you specify type "separator", the field spans both the field name and the
field value columns with no text, and is styled using the style specified via
DetailViewer.separatorStyle
. The height of the separator field can be controlled viaheight
. - "image" For viewing, a thumbnail image is rendered in the field. The URL of the image is the value of the field,
and should be absolute. The size of the image is controlled by
imageSize
,imageWidth
,imageHeight
"link" For viewing, a clickable html link (using an HTML anchor tag: <A>) is rendered in the field. The target URL is the value of the field, which is also the default display value. You can override the display value by setting
DetailViewerRecord.linkText
orlinkText
.Clicking the link opens the URL in a new window by default. To change this behavior, you can set
field.target
, which works identically to the "target" attribute on an HTML anchor (<A>) tag. Seetarget
for more information.
- Parameters:
type
- New type value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls
- "header" - If you
specify type "header", the field spans both the field name and field value columns and contains text defined in the
-
getType
Specifies the type of this DetailViewerField. By default (value isnull
) the field shows a field title on the left and the field value on the right. There are four special values for this attribute:- "header" - If you
specify type "header", the field spans both the field name and field value columns and contains text defined in the
value
attribute with the style specified byDetailViewer.headerStyle
. You can use this field type as a titled separator. - "separator" - If you specify type "separator", the field spans both the field name and the
field value columns with no text, and is styled using the style specified via
DetailViewer.separatorStyle
. The height of the separator field can be controlled viaheight
. - "image" For viewing, a thumbnail image is rendered in the field. The URL of the image is the value of the field,
and should be absolute. The size of the image is controlled by
imageSize
,imageWidth
,imageHeight
"link" For viewing, a clickable html link (using an HTML anchor tag: <A>) is rendered in the field. The target URL is the value of the field, which is also the default display value. You can override the display value by setting
DetailViewerRecord.linkText
orlinkText
.Clicking the link opens the URL in a new window by default. To change this behavior, you can set
field.target
, which works identically to the "target" attribute on an HTML anchor (<A>) tag. Seetarget
for more information.
- Returns:
- Current type value. Default value is null
- "header" - If you
specify type "header", the field spans both the field name and field value columns and contains text defined in the
-
setUserFormula
Formula definition for this field.- Parameters:
userFormula
- New userFormula value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls
-
getUserFormula
Formula definition for this field.- Returns:
- Current userFormula value. Default value is null
-
setUserSummary
Summary definition for this field.- Parameters:
userSummary
- New userSummary value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls
-
getUserSummary
Summary definition for this field.- Returns:
- Current userSummary value. Default value is null
-
setValue
When a field specifies itstype
to be "header", the value of this attribute specifies the header text.- Parameters:
value
- New value value. Default value is "undefined"- Returns:
DetailViewerField
instance, for chaining setter calls- See Also:
-
getValue
When a field specifies itstype
to be "header", the value of this attribute specifies the header text.- Returns:
- Current value value. Default value is "undefined"
- See Also:
-
setValueMap
A property list (or an expression that evaluates to a property list) specifying a mapping of internal values to display values for the field (row).- Overrides:
setValueMap
in classField
- Parameters:
valueMap
- New valueMap value. Default value is null- Returns:
DetailViewerField
instance, for chaining setter calls
-
setShowIfCondition
If specified on a field, this method is evaluated at draw time to determine whether or not to show this particular field.This method can be specified either as a function or a string that will be auto-converted to a function.
- Parameters:
showIf
- the showIf criteria
-
setDetailFormatter
-
setCellStyleHandler
Return the CSS class for a cell. Not implemented by default. The state of the record is indicated by adding a suffix to the base style. There are three independant boolean states, which are combined in the order given:- "Selected" : whether cell is selected; enable by passing a Selection object as "selection"
- "Over" : mouse is over this cell; enable with showRollovers
- "Down" : mouse button is down over this cell
Cell Styles customizable by:
- implementing this function
- setting
cellStyle
- overriding
DetailViewer.getCellStyle()
-