You can create an
IlvGraphic or a
JComponent
directly by declaring the
class
property and setting it in a CSS file.
The
class
property name is a reserved keyword that indicates the class name
of the generated graphic object. JViews TGO provides a
predefined representation for the objects in all graphic
components, which means that the
class
property is optional. It can be used when you want to replace the
predefined representation.
object."ilog.tgo.model.IltNetworkElement/label" {
class: ilog.views.sdm.graphic.IlvGeneralNode;
foreground: red;
label: @label;
}
IlpTableCellRenderer takes the information
present in the CSS files to define how a table cell is rendered.
If the property
class
is specified, it defines the
IlvGraphic or
JComponent
that will be used to render the table cell.
To use a cascading style sheet
class
property in a table view, do the following:
Implement your own graphic object or use an existing one,
either as an
IlvGraphic
or as a
JComponent
.
Configure
the properties of the objects or classes you want to represent
with this property using CSS.