|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IltAlarmSeverityCustomization
IltAlarmSeverityCustomization specifies the properties that can
be customized for alarm severities using CSS. The following alarm severities
can be configured:
IltSettings.setStyleSheets(String[]).
setting."ilog.tgo.model.IltAlarm.Severity"[name="Alarm.Raw.Informational"] {
color: orange;
darkColor: blue;
brightColor: yellow;
abbreviation: "i";
description: "Informational";
icon: '@|image("icon1.png")';
}
setting."ilog.tgo.model.IltAlarm.ImpactSeverity"[name="Alarm.Impact.InformationalLow"] {
color: orange;
darkColor: blue;
brightColor: yellow;
abbreviation: "IL";
description: "InformationalLow";
icon: '@|image("icon1.png")';
}
The same configuration can be achieved using the method
IltSettings.SetValue(Object, Object). This is
illustrated below:
IltSettings.SetValue("Alarm.Raw.Informational.Color", Color.orange);
IltSettings.SetValue("Alarm.Raw.Informational.DarkColor", Color.blue);
IltSettings.SetValue("Alarm.Raw.Informational.BrightColor", Color.yellow);
IltSettings.SetValue("Alarm.Raw.Informational.Abbreviation", "i");
IltSettings.SetValue("Alarm.Raw.Informational.Description", "Informational");
IltSettings.SetValue("Alarm.Raw.Informational.Icon", icon);
| Method Summary | |
|---|---|
String |
getAbbreviation()
Returns the alarm short description that is used to compose the alarm count of the business object. |
Color |
getBrightColor()
Returns the alarm bright color that represents a certain alarm severity. |
Color |
getColor()
Returns the alarm color that represents a certain alarm severity. |
Color |
getDarkColor()
Returns the alarm dark color that represents a certain alarm severity. |
String |
getDescription()
Returns the alarm long description that is used to compose the alarm balloon count. |
Image |
getIcon()
Returns the icon that will be used as part of the alarm count representation. |
| Method Detail |
|---|
Color getColor()
CSS settings:
setting."ilog.tgo.model.IltState"[name="Alarm.Raw.Critical"] {
color: orange;
}
setting."ilog.tgo.model.IltState"[name="Alarm.Impact.CriticalLow"] {
color: orange;
}
setting."ilog.tgo.model.IltState"[name="Alarm.LossOfConnectivity"] {
color: orange;
}
setting."ilog.tgo.model.IltState"[name="Trap.Type.ColdStart"] {
color: orange;
}
Color getBrightColor()
CSS settings:
setting."ilog.tgo.model.IltState"[name="Alarm.Raw.Critical"] {
brightColor: yellow;
}
setting."ilog.tgo.model.IltState"[name="Alarm.Impact.CriticalLow"] {
brightColor: yellow;
}
setting."ilog.tgo.model.IltState"[name="Alarm.LossOfConnectivity"] {
brightColor: yellow;
}
setting."ilog.tgo.model.IltState"[name="Trap.Type.ColdStart"] {
brightColor: yellow;
}
Color getDarkColor()
CSS settings:
setting."ilog.tgo.model.IltState"[name="Alarm.Raw.Critical"] {
darkColor: blue;
}
setting."ilog.tgo.model.IltState"[name="Alarm.Impact.CriticalLow"] {
darkColor: blue;
}
setting."ilog.tgo.model.IltState"[name="Alarm.LossOfConnectivity"] {
darkColor: blue;
}
setting."ilog.tgo.model.IltState"[name="Trap.Type.ColdStart"] {
darkColor: blue;
}
String getAbbreviation()
CSS settings:
setting."ilog.tgo.model.IltState"[name="Alarm.Raw.Critical"] {
abbreviation: RC;
}
setting."ilog.tgo.model.IltState"[name="Alarm.Impact.CriticalLow"] {
abbreviation: ICL;
}
setting."ilog.tgo.model.IltState"[name="Alarm.LossOfConnectivity"] {
abbreviation: LOC1;
}
setting."ilog.tgo.model.IltState"[name="Alarm.NotReporting"] {
abbreviation: NR1;
}
setting."ilog.tgo.model.IltState"[name="Trap.Type.ColdStart"] {
abbreviation: TCS;
}
String getDescription()
CSS settings:
setting."ilog.tgo.model.IltState"[name="Alarm.Raw.Critical"] {
description: "Raw Critical";
}
setting."ilog.tgo.model.IltState"[name="Alarm.Impact.CriticalLow"] {
description: "Impact Critical Low";
}
setting."ilog.tgo.model.IltState"[name="Alarm.LossOfConnectivity"] {
description: "Loss of Connectivity";
}
setting."ilog.tgo.model.IltState"[name="Trap.Type.ColdStart"] {
description: "Trap ColdStart";
}
Image getIcon()
CSS settings:
setting."ilog.tgo.model.IltState"[name="Alarm.Raw.Critical"] {
icon: '@|image("icon1.png")';
}
setting."ilog.tgo.model.IltState"[name="Alarm.Impact.CriticalLow"] {
icon: '@|image("icon1.png")';
}
setting."ilog.tgo.model.IltState"[name="Alarm.LossOfConnectivity"] {
icon: '@|image("icon1.png")';
}
setting."ilog.tgo.model.IltState"[name="Trap.Type.ColdStart"] {
icon: '@|image("icon1.png")';
}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||