Packagevegas.models
Classpublic class ChangeModel
InheritanceChangeModel Inheritance CoreModel Inheritance CoreEventDispatcher Inheritance Object
Subclasses MapModel

This class provides a simple representation of the IModelObject interface.



Public Properties
 PropertyDefined By
 Inheritedchannel : String
[read-only] Indicates the channel of this dispatcher if this instance is global.
CoreEventDispatcher
  current : *
Determinates the selected value in this model.
ChangeModel
 Inheritedid : *
Returns the id of this IModelObject.
CoreModel
  security : Boolean = true
This property defined if the setCurrentVO method can accept the same vo in argument as the current one.
ChangeModel
Public Methods
 MethodDefined By
  
ChangeModel(global:Boolean = true, channel:String = null, id:* = null)
Creates a new ChangeModel instance.
ChangeModel
 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
  
clear():void
Clear the model.
ChangeModel
 Inherited
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
CoreEventDispatcher
 Inherited
Returns the internal system.events.EventDispatcher reference.
CoreEventDispatcher
  
Returns the event name use in the setCurrentVO method before is changed.
ChangeModel
  
Returns the event name use in the setVO method.
ChangeModel
  
Returns the event name use in the clear method.
ChangeModel
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
CoreEventDispatcher
  
This method is invoked in the constructor of the class to initialize all events.
ChangeModel
 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
lock():void
Locks the object.
CoreEventDispatcher
  
notifyBeforeChange(value:*):void
Notify an EntryEvent before the current value selected in the model is changed.
ChangeModel
  
notifyChange(value:*):void
Notify an EntryEvent when a value is selected and changed in the model.
ChangeModel
  
Notify an EntryEvent when the model is cleared.
ChangeModel
 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
run(... arguments):void
Run the first process with this model.
CoreModel
 Inherited
Sets the internal EventDispatcher reference.
CoreEventDispatcher
  
setEventTypeBEFORE_CHANGE(type:String):void
Returns the event name use in the setCurrentVO method before is changed.
ChangeModel
  
setEventTypeCHANGE(type:String):void
Returns the event name use in the setVO method.
ChangeModel
  
setEventTypeCLEAR(type:String):void
Returns the event name use in the clear method.
ChangeModel
 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
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
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
Property Detail
currentproperty
current:*

Determinates the selected value in this model.


Implementation
    public function get current():*
    public function set current(value:any):void
securityproperty 
public var security:Boolean = true

This property defined if the setCurrentVO method can accept the same vo in argument as the current one.

Constructor Detail
ChangeModel()Constructor
public function ChangeModel(global:Boolean = true, channel:String = null, id:* = null)

Creates a new ChangeModel 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) — the name of the global event flow if the global argument is true.
 
id:* (default = null) — the id of this model.
Method Detail
clear()method
public function clear():void

Clear the model.

getEventTypeBEFORE_CHANGE()method 
public function getEventTypeBEFORE_CHANGE():String

Returns the event name use in the setCurrentVO method before is changed.

Returns
String — the event name use in the setCurrentVO method before is changed.
getEventTypeCHANGE()method 
public function getEventTypeCHANGE():String

Returns the event name use in the setVO method.

Returns
String — the event name use in the setVO method.
getEventTypeCLEAR()method 
public function getEventTypeCLEAR():String

Returns the event name use in the clear method.

Returns
String — the event name use in the clear method.
initEventType()method 
public function initEventType():void

This method is invoked in the constructor of the class to initialize all events. Overrides this method.

notifyBeforeChange()method 
public function notifyBeforeChange(value:*):void

Notify an EntryEvent before the current value selected in the model is changed.

Parameters

value:*

notifyChange()method 
public function notifyChange(value:*):void

Notify an EntryEvent when a value is selected and changed in the model.

Parameters

value:*

notifyClear()method 
public function notifyClear():void

Notify an EntryEvent when the model is cleared.

setEventTypeBEFORE_CHANGE()method 
public function setEventTypeBEFORE_CHANGE(type:String):void

Returns the event name use in the setCurrentVO method before is changed.

Parameters

type:String

setEventTypeCHANGE()method 
public function setEventTypeCHANGE(type:String):void

Returns the event name use in the setVO method.

Parameters

type:String

setEventTypeCLEAR()method 
public function setEventTypeCLEAR(type:String):void

Returns the event name use in the clear method.

Parameters

type:String