Class ErrorEvent

All Implemented Interfaces:
Serializable

public class ErrorEvent extends InputEvent
Represents an event cause by user's entering a wrong data or clearing the last wrong data.
Author:
tomyeh
See Also:
  • Constructor Details

    • ErrorEvent

      public ErrorEvent(String name, Component target, String val, Object oldValue, String msg)
      Constructs an error-relevant event.
      Parameters:
      name - the name of the event
      target - the component to receive this event, or null to indicate broadcasting the event to all root components.
      val - the new value that caused the error
      oldValue - the previous value.
      msg - the error message if not null. If null, it means the error (notified by previous ErrorEvent) is cleared.
      Since:
      5.0.4
  • Method Details

    • getErrorEvent

      public static final ErrorEvent getErrorEvent(AuRequest request, Object oldValue)
      Converts an AU request to an error event.
      Since:
      5.0.4
    • getMessage

      public final String getMessage()
      Returns the error message if this event is caused by a wrong data, or null if it is to clear message.