Business class properties

The representation of each instance of a given business object class is based on the declarations defined in the business object class selector. See The CSS specification for more information on CSS syntax and selectors.
JViews TGO has two categories of business object classes:
  • Predefined
    Predefined classes are provided by JViews TGO and oriented towards telecommunications. These classes include a predefined set of attributes and a corresponding default representation.
  • User-defined
    User-defined classes are defined by you according to your business model. These classes have no predefined set of attributes and the default graphic representation is basic. You will probably want to define your own graphic settings.
JViews TGO style sheets provide a built-in inheritance mechanism based on the business class hierarchy. This inheritance mechanism allows objects of a given business class to inherit settings from their parent business class. The advantage of the inheritance mechanism is that you can have a unified look-and-feel for all subclasses of a given class. If you define a graphic setting in a base class selector, this setting will be applied to all subclasses. For example, to apply a setting to all the predefined business classes, you must define the setting in the selector object ilog.tgo.model.IltObject . The overriding mechanism allows you to define exceptions in subclasses.
In the following example, the label is defined as invisible for all IltObject instances, except for instances of IltNetworkElement .

How to override an inherited setting

object."ilog.tgo.model.IltObject" {
    labelVisible: false;
}
object."ilog.tgo.model.IltNetworkElement" {
    labelVisible: true;
}
JViews TGO provides default property values for all predefined business object classes. These default property values ensure that all graphic components have an attractive display, which underpins the JViews TGO look-and-feel. This look-and-feel follows the Telecommunications Management Network (TMN) standard. The look-and-feel can be modified by overriding default property values. See the appropriate sections in this documentation for a complete list of all properties that can be used to customize the JViews TGO look-and-feel for predefined business objects.
When you work with user-defined business classes, their default graphic representation is basic. Therefore, you must define your own look by defining your own default values for these properties. The default property values for user-defined business classes are set to give a very simple look-and-feel in all graphic components. You can customize properties for user-defined business classes using the business class hierarchy.

How to customize properties for user-defined business classes

object.MyBusinessClass {
    label: @myNameAttribute;
}
If you want to customize the representation of all business classes, regardless of whether they are predefined or user-defined business classes, use the selector based on the object type.

How to customize the representation of all business classes

object {
    foreground: gray;
}