Packagevegas.models.sets
Classpublic class SetModelObject
InheritanceSetModelObject Inheritance CollectionModelObject Inheritance CoreModelObject Inheritance CoreModel Inheritance CoreEventDispatcher Inheritance Object

This model use an internal Set to register value objects.



Public Properties
 PropertyDefined By
 Inheritedchannel : String
[read-only] Indicates the channel of this dispatcher if this instance is global.
CoreEventDispatcher
 Inheritedid : *
Returns the id of this IModelObject.
CoreModel
 Inheritedsecurity : Boolean = true
This property defined if the setCurrentVO method can accept the same vo in argument as the current one.
CoreModelObject
Public Methods
 MethodDefined By
  
SetModelObject(global:Boolean = true, channel:String = null, id:* = null)
Creates a new SetModelObject instance.
SetModelObject
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target.
CoreEventDispatcher
 Inherited
addVO(vo:ValueObject):Boolean
Inserts a value object in the model.
CollectionModelObject
 Inherited
clear():void
[override] Removes all value objects in the model.
CollectionModelObject
 Inherited
contains(vo:ValueObject):Boolean
Returns true if the model contains the specified ValueObject.
CollectionModelObject
 Inherited
containsByProperty(propName:String, value:*):Boolean
Returns true if the model contains the specified attribute value.
CollectionModelObject
 Inherited
Returns and creates a new empty ModelObjectEvent.
CoreModelObject
 Inherited
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
CoreEventDispatcher
 Inherited
Returns the internal Collection of this model.
CollectionModelObject
 Inherited
Returns the current ValueObject selected in this model.
CoreModelObject
 Inherited
Returns the internal system.events.EventDispatcher reference.
CoreEventDispatcher
 Inherited
Returns the event name use in the addVO method.
CollectionModelObject
 Inherited
Returns the event name use in the setCurrentVO method before is changed.
CoreModelObject
 Inherited
Returns the event name use in the setVO method.
CoreModelObject
 Inherited
Returns the event name use in the clear method.
CoreModelObject
 Inherited
Returns the event name use in the removeVO method.
CollectionModelObject
  
Returns the internal {
SetModelObject
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
CoreEventDispatcher
 Inherited
[override] This method is invoked in the constructor of the class to initialize all events.
CollectionModelObject
  
[override] Initialize the internal Collection instance in the constructor of the class.
SetModelObject
 Inherited
isEmpty():Boolean
Returns {
CollectionModelObject
 Inherited
isGlobal():Boolean
Indicates if the dispatcher use a global event flow.
CoreEventDispatcher
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreEventDispatcher
 Inherited
Returns the iterator of this model.
CollectionModelObject
 Inherited
lock():void
Locks the object.
CoreEventDispatcher
 Inherited
Notify a ModelObjectEvent when a ValueObject is inserted in the model.
CollectionModelObject
 Inherited
Notify a ModelObjectEvent before the current ValueObject selected in the model is changed.
CoreModelObject
 Inherited
Notify a ModelObjectEvent when a ValueObject change in the model.
CoreModelObject
 Inherited
Notify a ModelObjectEvent when the model is cleared.
CoreModelObject
 Inherited
Notify a ModelObjectEvent when a ValueObject is removed in the model.
CollectionModelObject
 Inherited
registerEventListener(type:String, listener:*, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target (Function or EventListener).
CoreEventDispatcher
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
CoreEventDispatcher
 Inherited
Removes a value object in the model.
CollectionModelObject
 Inherited
run(... arguments):void
Run the first process with this model.
CoreModel
 Inherited
Sets the internal Collection of this model.
CollectionModelObject
 Inherited
Sets the current ValueObject selected in this model.
CoreModelObject
 Inherited
Sets the internal EventDispatcher reference.
CoreEventDispatcher
 Inherited
setEventTypeADD(type:String):void
Sets the event name use in the addVO method.
CollectionModelObject
 Inherited
setEventTypeBEFORE_CHANGE(type:String):void
Returns the event name use in the setCurrentVO method before is changed.
CoreModelObject
 Inherited
setEventTypeCHANGE(type:String):void
Returns the event name use in the setVO method.
CoreModelObject
 Inherited
setEventTypeCLEAR(type:String):void
Returns the event name use in the clear method.
CoreModelObject
 Inherited
setEventTypeREMOVE(type:String):void
Sets the event name use in the removeVO method.
CollectionModelObject
 Inherited
setGlobal(flag:Boolean = false, channel:String = null):void
Sets if the instance use a global system.events.EventDispatcher to dispatch this events, if the flag value is false the instance use a local EventDispatcher.
CoreEventDispatcher
 Inherited
size():Number
Returns the number of ValueObject in this model.
CollectionModelObject
 Inherited
supports(value:*):Boolean
Returns true if the IValidator object validate the value.
CoreModelObject
 Inherited
toArray():Array
Returns the Array representation of this object.
CollectionModelObject
 Inherited
unlock():void
Unlocks the display.
CoreEventDispatcher
 Inherited
unregisterEventListener(type:String, listener:*, useCapture:Boolean = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object.
CoreEventDispatcher
 Inherited
validate(value:*):void
Evaluates the specified value and throw a TypeError object if the value is not valid.
CoreModelObject
 Inherited
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
CoreEventDispatcher
Protected Methods
 MethodDefined By
 Inherited
Creates and returns the internal EventDispatcher reference (this method is invoked in the constructor).
CoreEventDispatcher
Constructor Detail
SetModelObject()Constructor
public function SetModelObject(global:Boolean = true, channel:String = null, id:* = null)

Creates a new SetModelObject instance.

Parameters
global:Boolean (default = true) — the flag to use a global event flow or a local event flow (default true).
 
channel:String (default = null) — (optional) the name of the global event flow if the global argument is true.
 
id:* (default = null) — the id of this model.
Method Detail
getSet()method
public function getSet():Set

Returns the internal {

Returns
Set — the internal {
initializeCollection()method 
override public function initializeCollection():Collection

Initialize the internal Collection instance in the constructor of the class. You can overrides this method if you want change the default HashSet use in this model.

Returns
Collection