| Styling > Customizing Object States > Customizing the Bellcore State System |
Customizing the Bellcore State System |
INDEX
PREVIOUS
NEXT
|
In the Bellcore state dictionary, a primary state is defined as holding one of the following values:
The Bellcore dictionary also includes numerous secondary states. JViews TGO provides a visual representation for the Bellcore primary state by changing the object base graphic representation. Bellcore secondary states are represented using secondary state icons. Please refer to The Bellcore State Dictionary in the Business Objects and Data Sources documentation for information on the Bellcore state system and its graphic representation.
Bellcore explains how to customize the object representation according to the Bellcore state information. You can also customize the icons that are displayed when a given Bellcore secondary state is set in the object.
Whether or not a secondary state can be applied meaningfully to a telecom object depends on whether the object is in the Out of Service, No Traffic, or Carrying Traffic condition.
The corresponding Bellcore primary states are the following:
You can customize the icon used to represent a secondary state by setting the image associated with the secondary state and the primary state combination, as follows:
Image img = IltSystem.GetDefaultContext().getImageRepository().getImage("blocked.png");
IltSettings.SetValue("Bellcore.SecState.Blocked.CT.Icon", img);
In this example, the graphic representation of status IltBellcore.SecState.Blocked has been replaced in the Carrying Traffic representation.
You can also set different images to different combinations by using the state name, for example, "Bellcore.SecState.Busy" or "Bellcore.SecState.Transferred", followed by the primary state combination (OOS, NT or CT) and the property name (Icon). For example:
IltSettings.SetValue("Bellcore.SecState.Transferred.OOS.Icon", img);
You can also customize a Bellcore secondary state icon by using global CSS settings (see Using Global Settings in Chapter 2, Using Cascading Style Sheets for more information):
You must specify the full state name, for example "Bellcore.SecState.Busy", when matching the "name" attribute. The CSS properties to be customized are ctIcon, ntIcon, oosIcon.
setting."ilog.tgo.model.IltState"[name="Bellcore.SecState.Blocked"] {
ctIcon: '@|image("blocked.png")';
}
setting."ilog.tgo.model.IltState"[name="Bellcore.SecState.Diagnostic"] {
ntIcon: '@|image("diagnostic.png")';
}
setting."ilog.tgo.model.IltState"[name="Bellcore.SecState.Transferred"] {
oosIcon: '@|image("transferred.png")';
}
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |