object.myNetworkElement[type=NE] {
foreground:'#FFFFFF';
}
object.myNetworkElement[type=MD] {
foreground:'#C0C0C0';
}
object.myNetworkElement[type=Server] {
foreground:'#FFCC00';
}
object.myNetworkElement[type=BSC] {
foreground:'#FFB200';
}
object.myNetworkElement[type=Desktop] {
foreground:'#FF0000';
}
In this example, the foreground color of the icon representing
business objects of the class
myNetworkElement
is set to depend on the value of the attribute
type
defined in the class
IltNetworkElement
. So
myNetworkElement
with the type NE will have a white foreground.