Packagecom.yworks.graph.model
Classpublic class StripeEvent
InheritanceStripeEvent Inheritance flash.events.Event

A specialized event class that is bound to the IStripe type and carries additional owner information.

Since for some events (STRIPE_REMOVED) it is unclear by what owner the stripe was owned by before the event, this event can be used to carry exactly that information.

See also

IStripe


Public Properties
 PropertyDefined By
  label : ILabel
[read-only] The label which was affected.
StripeEvent
  parent : IStripe
[read-only] The parent of the stripe.
StripeEvent
  stripe : IStripe
[read-only] The stripe which was affected.
StripeEvent
Public Methods
 MethodDefined By
  
StripeEvent(type:String, stripe:IStripe, parent:IStripe = null, label:ILabel = null, bubbles:Boolean = false, cancelable:Boolean = false)
Initializes a new instance.
StripeEvent
  
clone():Event
[override]
StripeEvent
Public Constants
 ConstantDefined By
  LABEL_ADDED : String = labelAdded
[static] Event which is dispatched when a new label has been added to a stripe (column or row).
StripeEvent
  LABEL_CHANGED : String = labelChanged
[static] Event which is dispatched when the label of a stripe (column or row) has been changed.
StripeEvent
  LABEL_REMOVED : String = labelRemoved
[static] Event which is dispatched when a label has been removed from its stripe (column or row).
StripeEvent
  STRIPE_CHANGED : String = stripeChanged
[static] Event which is dispatched when a stripe (column or row) has been changed.
StripeEvent
  STRIPE_CREATED : String = stripeCreated
[static] Event which is dispatched when a new stripe (column or row) is created.
StripeEvent
  STRIPE_REMOVED : String = stripeRemoved
[static] Event which is dispatched when a stripe (column or row) is removed from its parent.
StripeEvent
Property Detail
labelproperty
label:ILabel  [read-only]

The label which was affected.

This property has a meaningful value only for one of the LABEL_CHANGED, LABEL_ADDED, or LABEL_REMOVED events. For the other events it is null.


Implementation
    public function get label():ILabel
parentproperty 
parent:IStripe  [read-only]

The parent of the stripe. May be null.


Implementation
    public function get parent():IStripe
stripeproperty 
stripe:IStripe  [read-only]

The stripe which was affected.


Implementation
    public function get stripe():IStripe
Constructor Detail
StripeEvent()Constructor
public function StripeEvent(type:String, stripe:IStripe, parent:IStripe = null, label:ILabel = null, bubbles:Boolean = false, cancelable:Boolean = false)

Initializes a new instance.

Parameters
type:String — The type of the event, as defined in this class's constants.
 
stripe:IStripe — The stripe which was affected.
 
parent:IStripe (default = null) — The owner of the stripe. May be null.
 
label:ILabel (default = null) — The label which was affected in case of one of the LABEL_CHANGED, LABEL_ADDED, or LABEL_REMOVED events.
 
bubbles:Boolean (default = false) — Whether this event bubbles.
 
cancelable:Boolean (default = false) — Whether this event is cancelable.
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
LABEL_ADDEDConstant
public static const LABEL_ADDED:String = labelAdded

Event which is dispatched when a new label has been added to a stripe (column or row).

LABEL_CHANGEDConstant 
public static const LABEL_CHANGED:String = labelChanged

Event which is dispatched when the label of a stripe (column or row) has been changed.

LABEL_REMOVEDConstant 
public static const LABEL_REMOVED:String = labelRemoved

Event which is dispatched when a label has been removed from its stripe (column or row).

STRIPE_CHANGEDConstant 
public static const STRIPE_CHANGED:String = stripeChanged

Event which is dispatched when a stripe (column or row) has been changed.

STRIPE_CREATEDConstant 
public static const STRIPE_CREATED:String = stripeCreated

Event which is dispatched when a new stripe (column or row) is created.

STRIPE_REMOVEDConstant 
public static const STRIPE_REMOVED:String = stripeRemoved

Event which is dispatched when a stripe (column or row) is removed from its parent.