java.lang.Object
com.inductiveautomation.factorypmi.application.components.alarm.AlarmRowStyle

public class AlarmRowStyle extends Object
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 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 compiled Expression.
      style - The CellStyle to apply if the expression evaluates to true.
      ref - The AlarmRef used for efficient evaluation.
      logger - The logger for reporting execution errors.
  • Method Details

    • applies

      public boolean applies(AlarmEvent event)
      Checks if this style applies to the given alarm event. This updates the internal AlarmRef, 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

      public String getExpressionSource()
    • getStyle

      public com.jidesoft.grid.CellStyle getStyle()