| Package | vegas.models.sets |
| Class | public class SetModelObject |
| Inheritance | SetModelObject CollectionModelObject CoreModelObject CoreModel CoreEventDispatcher Object |
Set to register value objects.
| Method | Defined By | ||
|---|---|---|---|
SetModelObject(global:Boolean = true, channel:String = null, id:* = null)
Creates a new SetModelObject instance. | SetModelObject | ||
![]() | 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 | |
![]() | addVO(vo:ValueObject):Boolean
Inserts a value object in the model. | CollectionModelObject | |
![]() | clear():void [override]
Removes all value objects in the model. | CollectionModelObject | |
![]() | contains(vo:ValueObject):Boolean
Returns true if the model contains the specified ValueObject. | CollectionModelObject | |
![]() | containsByProperty(propName:String, value:*):Boolean
Returns true if the model contains the specified attribute value. | CollectionModelObject | |
![]() |
Returns and creates a new empty ModelObjectEvent. | CoreModelObject | |
![]() | dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow. | CoreEventDispatcher | |
![]() |
Returns the internal Collection of this model. | CollectionModelObject | |
![]() |
Returns the current ValueObject selected in this model. | CoreModelObject | |
![]() |
Returns the internal system.events.EventDispatcher reference. | CoreEventDispatcher | |
![]() | getEventTypeADD():String
Returns the event name use in the addVO method. | CollectionModelObject | |
![]() | getEventTypeBEFORE_CHANGE():String
Returns the event name use in the setCurrentVO method before is changed. | CoreModelObject | |
![]() | getEventTypeCHANGE():String
Returns the event name use in the setVO method. | CoreModelObject | |
![]() | getEventTypeCLEAR():String
Returns the event name use in the clear method. | CoreModelObject | |
![]() | getEventTypeREMOVE():String
Returns the event name use in the removeVO method. | CollectionModelObject | |
Returns the internal { | SetModelObject | ||
![]() | hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event. | CoreEventDispatcher | |
![]() | initEventType():void [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 | ||
![]() | isEmpty():Boolean
Returns { | CollectionModelObject | |
![]() | isGlobal():Boolean
Indicates if the dispatcher use a global event flow. | CoreEventDispatcher | |
![]() | isLocked():Boolean
Returns true if the object is locked. | CoreEventDispatcher | |
![]() |
Returns the iterator of this model. | CollectionModelObject | |
![]() | lock():void
Locks the object. | CoreEventDispatcher | |
![]() | notifyAdd(vo:ValueObject):void
Notify a ModelObjectEvent when a ValueObject is inserted in the model. | CollectionModelObject | |
![]() | notifyBeforeChange(vo:ValueObject):void
Notify a ModelObjectEvent before the current ValueObject selected in the model is changed. | CoreModelObject | |
![]() | notifyChange(vo:ValueObject):void
Notify a ModelObjectEvent when a ValueObject change in the model. | CoreModelObject | |
![]() | notifyClear():void
Notify a ModelObjectEvent when the model is cleared. | CoreModelObject | |
![]() | notifyRemove(vo:ValueObject):void
Notify a ModelObjectEvent when a ValueObject is removed in the model. | CollectionModelObject | |
![]() | 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 | |
![]() | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object. | CoreEventDispatcher | |
![]() | removeVO(vo:ValueObject):*
Removes a value object in the model. | CollectionModelObject | |
![]() | run(... arguments):void
Run the first process with this model. | CoreModel | |
![]() | setCollection(co:Collection):void
Sets the internal Collection of this model. | CollectionModelObject | |
![]() | setCurrentVO(vo:ValueObject):void
Sets the current ValueObject selected in this model. | CoreModelObject | |
![]() | setEventDispatcher(dispatcher:EventDispatcher):void
Sets the internal EventDispatcher reference. | CoreEventDispatcher | |
![]() | setEventTypeADD(type:String):void
Sets the event name use in the addVO method. | CollectionModelObject | |
![]() | setEventTypeBEFORE_CHANGE(type:String):void
Returns the event name use in the setCurrentVO method before is changed. | CoreModelObject | |
![]() | setEventTypeCHANGE(type:String):void
Returns the event name use in the setVO method. | CoreModelObject | |
![]() | setEventTypeCLEAR(type:String):void
Returns the event name use in the clear method. | CoreModelObject | |
![]() | setEventTypeREMOVE(type:String):void
Sets the event name use in the removeVO method. | CollectionModelObject | |
![]() | 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 | |
![]() | size():Number
Returns the number of ValueObject in this model. | CollectionModelObject | |
![]() | supports(value:*):Boolean
Returns true if the IValidator object validate the value. | CoreModelObject | |
![]() | toArray():Array
Returns the Array representation of this object. | CollectionModelObject | |
![]() | unlock():void
Unlocks the display. | CoreEventDispatcher | |
![]() | unregisterEventListener(type:String, listener:*, useCapture:Boolean = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object. | CoreEventDispatcher | |
![]() | validate(value:*):void
Evaluates the specified value and throw a TypeError object if the value is not valid. | CoreModelObject | |
![]() | 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 | |
| SetModelObject | () | Constructor |
public function SetModelObject(global:Boolean = true, channel:String = null, id:* = null)Creates a new SetModelObject instance.
Parametersglobal: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.
|
| getSet | () | method |
| initializeCollection | () | method |
override public function initializeCollection():CollectionInitialize 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.
ReturnsCollection |