| Styling > Customizing Network Elements > Customizing Network Element Families |
Customizing Network Element Families |
INDEX
PREVIOUS
NEXT
|
This section describes how to create a new network element family. This operation, which is similar to adding a new function, involves the following steps:
IltNetworkElement.Family enumeration.
For example:
IltNetworkElement.Family OC999 =
new IltNetworkElement.Family("OC999");
IltSettings.SetValue("NetworkElement.Family.OC999.Label","999");
You can also create new network element families by using global CSS settings (see Using Global Settings in Chapter 2, Using Cascading Style Sheets for more information):
setting."ilog.tgo.model.IltNetworkElement"{
families[0]: @+neFamily0;
}
Subobject#neFamily0 {
class: 'ilog.tgo.model.IltNetworkElement.Family';
name: "OC999";
}
The following properties are used to customize the display of network element families:
You can map network element families to labels by using the method IltSettings.SetValue. You can also associate a network element family with a resource that is retrieved from the JViews TGO resource bundle (see About Internationalization in the Context and Deployment Descriptor documentation).)
Example:
IltSettings.SetValue("NetworkElement.Family.OC999.Label","My_NetworkElement_Family_999");
You can obtain the same customization using global CSS settings. To do so, you need to specify the full path to the object to be customized, as well as the value of its name attribute in order to match the right object in the system. The CSS property to customize here is label.
setting."ilog.tgo.model.IltNetworkElement.Family"[name="OC192-UsrDf"] {
label: "My_NetworkElement_Family_999";
}
By default, network element families and resources are associated automatically. A label and a tooltip are displayed for the new network element family provided that the following resources have been declared in the JViews TGO resource bundle:
ilog.tgo.NetworkElement_Family_<FAMILY NAME>: network element family label
ilog.tgo.NetworkElement_Family_<FAMILY NAME>_ToolTip: network element family tooltip
For the predefined network element families, you can edit the values directly in the JViews TGO resource bundle file.
For newly created network element families, the label and tooltip information will also be retrieved from this resource bundle. As you declare new network element families, register the corresponding entries into the resource bundle file.
Considering that you have created the network element family "OC999", you should declare the corresponding entries in the resource bundle file as follows:
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |