| Styling > Customizing Object States > Customizing the SAN State System > Creating New SAN Secondary States |
Creating New SAN Secondary States |
INDEX
PREVIOUS
NEXT
|
You can create your own SAN secondary state, and configure how new and existing secondary states are graphically represented in your objects.
SAN secondary states are created using IltSAN.NewSecState, as follows:
IltSAN.SecState state =
IltSAN.NewSecState("SAN.SecState.CPUUtilization","Measures the CPU use rate");
IltSAN.NewSecState takes two arguments. The first one is a name that identifies the new SAN state in the application. The name must comply with the rule SAN.SecState.<value>. For example, when a new state is created with name SAN.SecState.CPUUtilization, it is referred to in XML files in the following way:
<SAN state="CPUUtilization">78</SAN>
The second argument is a description. This description is used as a tooltip to display more information about the SAN state represented in a business object. To activate the tooltip support for secondary states, see Customizing Tooltips.
IltSAN.NewSecState returns an instance of IltSAN.SecState, that you can use in exactly the same way as the predefined SAN secondary states.
Once a new SAN secondary state has been created, you need to configure its graphic representation. See Customizing SAN Secondary States for more information.
You can also create new SAN secondary states by using global CSS settings:
Settings {
san: true;
}
SAN {
states[0]: @+san0;
}
Subobject#san0 {
class: 'ilog.tgo.model.IltSAN.SecState';
name: "SAN.SecState.CPUUtilization";
}
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |