Packagecom.degrafa.states
Classpublic class AddChild
ImplementsIOverride

The AddChild class adds a child Geometry object, such as a Circle, to the target as part of a view state. Degrafa states work very much like Flex 2 or 3 built in states. For further details reffer to the Flex 2 or 3 documentation.

Default MXML Propertytarget



Public Properties
 PropertyDefined by
  position : String
The position of the child.
AddChild
  relativeTo : IDegrafaStateClient
The object relative to which the child is added.
AddChild
  target : IDegrafaStateClient
The child to be added.
AddChild
Public Methods
 MethodDefined by
  
AddChild(relativeTo:IDegrafaStateClient = null, target:IDegrafaStateClient = null, position:String = "lastChild")
Constructor.
AddChild
  
Applies the override.
AddChild
  
initialize():void
Initializes the override.
AddChild
  
Removes the override.
AddChild
Property detail
positionproperty
public var position:String

The position of the child.

relativeToproperty 
public var relativeTo:IDegrafaStateClient

The object relative to which the child is added.

targetproperty 
public var target:IDegrafaStateClient

The child to be added.

Constructor detail
AddChild()constructor
public function AddChild(relativeTo:IDegrafaStateClient = null, target:IDegrafaStateClient = null, position:String = "lastChild")

Constructor.

Parameters
relativeTo:IDegrafaStateClient (default = null)
 
target:IDegrafaStateClient (default = null)
 
position:String (default = "lastChild")
Method detail
apply()method
public function apply(parent:IDegrafaStateClient):void

Applies the override.

Parameters
parent:IDegrafaStateClient
initialize()method 
public function initialize():void

Initializes the override.

remove()method 
public function remove(parent:IDegrafaStateClient):void

Removes the override.

Parameters
parent:IDegrafaStateClient