| Package | org.granite.validation |
| Class | public class ConstraintViolationEvent |
| Inheritance | ConstraintViolationEvent flash.events.Event |
Event that is dispatched when a validation failed.
| Property | Defined by | ||
|---|---|---|---|
| violation : ConstraintViolation
[read-only]
The
ConstraintViolation passed to this
ConstraintViolationEvent construtor. | ConstraintViolationEvent | ||
| Method | Defined by | ||
|---|---|---|---|
|
ConstraintViolationEvent(violation:ConstraintViolation, bubbles:Boolean = false, cancelable:Boolean = false)
Constructs a new
ConstraintViolationsEvent. | ConstraintViolationEvent | ||
| Constant | Defined by | ||
|---|---|---|---|
| CONSTRAINT_VIOLATION : String = "constraintViolation" [static]
The ConstraintViolationsEvent.CONSTRAINT_VIOLATION constant defines
the value of the type property of a constraint violation event object.
| ConstraintViolationEvent | ||
| violation | property |
violation:ConstraintViolation [read-only]
The ConstraintViolation passed to this
ConstraintViolationEvent construtor.
public function get violation():ConstraintViolation
| ConstraintViolationEvent | () | constructor |
public function ConstraintViolationEvent(violation:ConstraintViolation, bubbles:Boolean = false, cancelable:Boolean = false)
Constructs a new ConstraintViolationsEvent.
violation:ConstraintViolation — a ConstraintViolation describing
the failure for a given property.
|
|
bubbles:Boolean (default = false) — determines whether the Event object participates in
the bubbling stage of the event flow.
|
|
cancelable:Boolean (default = false) — determines whether the Event object can be canceled.
|
| CONSTRAINT_VIOLATION | constant |
public static const CONSTRAINT_VIOLATION:String = "constraintViolation"The ConstraintViolationsEvent.CONSTRAINT_VIOLATION constant defines the value of the type property of a constraint violation event object.