IltMisc.SecState state = IltMisc.NewSecState("Misc.SecState.Problem", "Severe Problem");
Misc.SecState.<value>
. For example, when a new state is created with name
Misc.SecState.Problem
, it is referred to in XML files in the following way:
<misc>Problem</misc>
IltMisc.SecState
that can be used in exactly the same way as the predefined
Miscellaneous secondary states.
Settings { misc: true; } Misc { states[0]: @+misc0; } Subobject#misc0 { class: 'ilog.tgo.model.IltMisc.SecState'; name: "Misc.SecState.Problem"; }
IltSettings.SetValue
. This method requires two arguments, the first argument being
the property key name. Miscellaneous secondary state property
names are formed by: “<YOUR STATE NAME>.Icon”.
IlpImageRepository imageRep = IltSystem.GetDefaultContext().getImageRepository(); Image problemImage = imageRep.getImage("problem.png"); IltSettings.SetValue("Misc.SecState.Problem.Icon", problemImage);
IltSettings.SetValue("Misc.SecState.HighTemperatureWarning.Icon", img);
Misc.SecState.Problem
", when matching the "
name
" attribute. The CSS property to be customized is
icon
.
setting."ilog.tgo.model.IltState"[name="Misc.SecState.Problem"] { icon: '@|image("problem.png")'; }