Property
Name |
Type
of Value |
Default
|
Description
|
---|---|---|---|
focusBorderColor
|
Color
|
null
|
Color to be used for the focus border of the cell. The focus
border shows which cell has the focus. The default color is
the same as in a
JTable
.
|
focusBorderWidth
|
Integer
|
1
|
Width
of the focus border of the cell. |
horizontalAlignment
|
SwingConstants
|
Left
|
Horizontal
position of the label and icon in the cell. Possible values
are:
Center
Left
Right
.
|
icon
|
Image
|
null
|
Icon
to be displayed. By default, no icon is displayed. |
iconVisible
|
Boolean
|
true
|
Determines
whether the icon is displayed or not. |
labelBackground
|
Color
|
null
|
Color
to be used for the label background of a cell. By default,
the color is white. |
labelFont
|
Font
|
null
|
Font
to be used for the label. By default, it is a sans serif
font. |
labelForeground
|
Color
|
null
|
Color
to be used for the label foreground of a cell. By default,
the color is black. |
labelInsets
|
Integer
|
1
|
Space
in pixels around the label and icon. |
labelPosition
|
IlvDirection
|
Right
|
Position
of the label relative to the icon. Possible values are:
Center
Top
Left
Bottom
Right
.
|
labelSpacing
|
Float
|
4
|
Spacing
between the label and the icon. |
label
|
String
|
null
|
Text
to be displayed for the label. By default, no text is
displayed. |
labelVisible
|
Boolean
|
true
|
Determines
whether the label is displayed or not. |
toolTipGraphic
|
IlvGraphic
or
JComponent
|
null
|
This property accepts
IlvGraphic
and
JComponent
objects that are created in CSS using @+, @=, or @#
constructors.
|
toolTipText
|
String
|
null
|
Tooltip
text for the cell. By default, no tooltip string is
displayed. |
verticalAlignment
|
SwingConstants
|
Center
|
Vertical
position of the label and icon in the cell. Possible values
are:
Center
Top
Bottom
.
|
graphicRepresentation
. It shows the tiny representation of the business object
displayed in the table row. To customize this tiny
representation, you can use the same CSS properties as for the
symbolic representation of the specific predefined business class
(for example,
foreground
,
background
,
label
,
labelPosition
). The following code extract:
object."ilog.tgo.model.IltNetworkElement" { foreground: green; }
object
and the CSS class
<business class name/attribute
name>
, as illustrated in the following example.
object."Alarm/perceivedSeverity"[perceivedSeverity=0] { labelBackground: '#FFFFFF'; label: Cleared; toolTipText: "Cleared alarm"; } object."Alarm/perceivedSeverity"[perceivedSeverity=1] { labelBackground: '#C0C0C0'; label: Indeterminate; toolTipText: "Indeterminate alarm"; }
perceivedSeverity
.
focus
and
selected
, as follows:
object."ilog.tgo.model.IltObject/name":selected { labelForeground: red; } object."ilog.tgo.model.IltObject/name":focus { labelForeground: blue; } object."ilog.tgo.model.IltObject/name" { labelForeground: black; }
object
and the CSS class
<business class name/attribute
name>
, as illustrated in the previous example. However, you can use
the
*
wildcard to indicate that multiple attributes of a given business
class should be configured using a single selector.
ilog.tgo.model.IltNetworkElement
to have a blue background:
object."ilog.tgo.model.IltNetworkElement/*" { labelBackground: blue; }
object."ilog.tgo.model.IltObject/*larm*" { labelFont: "arial-bold-12"; }
Alarm
according to the value of the
perceivedSeverity
attribute.
object."Alarm/*"[perceivedSeverity] { labelBackground: '@|valuemap(@=perceivedSeverityBackgroundMap, @perceivedSeverity)'; } object."Alarm/*"[perceivedSeverity]:selected { labelBackground: '@|valuemap(@=perceivedSeveritySelectionBackgroundMap, @perceivedSeverity)'; }