Class PropErrorAttrEvent

All Implemented Interfaces:
IPostEventProcessing

public class PropErrorAttrEvent extends PropAttrEvent
The event that indicates that a property error attribute has been set for the first time or when it has been changed.
Author:
Christopher Mindus
  • Field Details

    • errorID

      public final String errorID
      The errorID changed, null for entire error table.
    • item

      public final IPropErrorItem item
      The error item.
    • newMaxErrorLevel

      public final int newMaxErrorLevel
      New maximum error level.
    • oldMaxErrorLevel

      public final int oldMaxErrorLevel
      Old maximum error level.
  • Constructor Details

    • PropErrorAttrEvent

      public PropErrorAttrEvent(GProp<?> source, Object newValue, Object oldValue, String errorID, IPropErrorItem item, int newMaxErrorLevel, int oldMaxErrorLevel)
      Constructs a new property event.
      Parameters:
      source - The source property instance being changed or initialized.
      newValue - The new value.
      oldValue - The old value or null if previously uninitialized.
      errorID - The error ID changed, null for entire property error table change.
      item - The error item, null for removed (errorID is non-null).
      newMaxErrorLevel - New maximum error level.
      oldMaxErrorLevel - Old maximum error level.
  • Method Details

    • isClearCacheEvent

      public boolean isClearCacheEvent()
      Returns the state for a property container if this event is received in the onEventSelf method as a helper for it would need to clear the property container cache.
      Overrides:
      isClearCacheEvent in class PropAttrEvent
      Returns:
      true, always for this event.
    • isVerifyEvent

      public boolean isVerifyEvent()
      Returns if this event is a verify event for a container that processes verification.
      Overrides:
      isVerifyEvent in class PropAttrEvent
      Returns:
      true always.
    • paramString

      protected StringBuilder paramString(StringBuilder buf)
      Returns the parameter string representing the state of this event. This string is useful for debugging. Super classes adds extra information to the string by preceding it with a comma followed by the extra information.
      Overrides:
      paramString in class PropAttrEvent
      Parameters:
      buf - The StringBuilder to append the string to.
      Returns:
      The StringBuilder, i.e. the buf input parameter.