public class ErrorEvent extends InputEvent
Constructor and Description |
---|
ErrorEvent(java.lang.String name,
Component target,
java.lang.String val,
java.lang.Object oldValue,
java.lang.String msg)
Constructs an error-relevant event.
|
Modifier and Type | Method and Description |
---|---|
static ErrorEvent |
getErrorEvent(AuRequest request,
java.lang.Object oldValue)
Converts an AU request to an error event.
|
java.lang.String |
getMessage()
Returns the error message if this event is caused by a wrong data,
or null if it is to clear message.
|
getInputEvent, getInputEvent, getPreviousValue, getStart, getValue, isChangingBySelectBack
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
public ErrorEvent(java.lang.String name, Component target, java.lang.String val, java.lang.Object oldValue, java.lang.String msg)
name
- the name of the eventtarget
- the component to receive this event,
or null to indicate broadcasting the event to all root components.val
- the new value that caused the erroroldValue
- the previous value.msg
- the error message if not null. If null, it means the
error (notified by previous ErrorEvent
) is cleared.public static final ErrorEvent getErrorEvent(AuRequest request, java.lang.Object oldValue)
public final java.lang.String getMessage()
Copyright © 2005-2023 Potix Corporation. All Rights Reserved.