Class AlarmRowStyle
java.lang.Object
com.inductiveautomation.factorypmi.application.components.alarm.AlarmRowStyle
Holds an expression and a cell style. If the expression evaluates to true for the alarm event of
a given row, then the cell style will be applied
-
Constructor Summary
ConstructorsConstructorDescriptionAlarmRowStyle(String source, Expression expression, com.jidesoft.grid.CellStyle style, AlarmRef ref, LoggerEx logger) Constructs a new AlarmRowStyle. -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplies(AlarmEvent event) Checks if this style applies to the given alarm event.com.jidesoft.grid.CellStylegetStyle()
-
Constructor Details
-
AlarmRowStyle
public AlarmRowStyle(String source, Expression expression, com.jidesoft.grid.CellStyle style, AlarmRef ref, LoggerEx logger) Constructs a new AlarmRowStyle.- Parameters:
source- The original expression source string.expression- The compiledExpression.style- TheCellStyleto apply if the expression evaluates to true.ref- TheAlarmRefused for efficient evaluation.logger- The logger for reporting execution errors.
-
-
Method Details
-
applies
Checks if this style applies to the given alarm event. This updates the internalAlarmRef, executes the expression, and returns true if the result is true and the quality is good.- Parameters:
event- The alarm event to evaluate.- Returns:
- true if the style should be applied.
-
getExpressionSource
-
getStyle
public com.jidesoft.grid.CellStyle getStyle()
-