Packageorg.granite.validation
Classpublic class ConstraintViolationEvent
InheritanceConstraintViolationEvent Inheritance flash.events.Event

An Event that is dispatched when a validation failed.



Public Properties
 PropertyDefined by
  violation : ConstraintViolation
[read-only] The ConstraintViolation passed to this ConstraintViolationEvent construtor.
ConstraintViolationEvent
Public Methods
 MethodDefined by
  
ConstraintViolationEvent(violation:ConstraintViolation, bubbles:Boolean = false, cancelable:Boolean = false)
Constructs a new ConstraintViolationsEvent.
ConstraintViolationEvent
Public Constants
 ConstantDefined 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
Property detail
violationproperty
violation:ConstraintViolation  [read-only]

The ConstraintViolation passed to this ConstraintViolationEvent construtor.

Implementation
    public function get violation():ConstraintViolation
Constructor detail
ConstraintViolationEvent()constructor
public function ConstraintViolationEvent(violation:ConstraintViolation, bubbles:Boolean = false, cancelable:Boolean = false)

Constructs a new ConstraintViolationsEvent.

Parameters
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.
Constant detail
CONSTRAINT_VIOLATIONconstant
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.