Package | com.cyntaxic.cynmvc.view.interfaces |
Interface | public interface ICynComposite |
CynView
object that has
children that are views.
Method | Defined By | ||
---|---|---|---|
Adds a CynView to the display list. | ICynComposite | ||
Adds a CynView to the display list at the specified index. | ICynComposite | ||
Destroys a CynView from the display list. | ICynComposite | ||
destroyAt(index:int):void
Destroys a CynView from the display list at the specified index. | ICynComposite | ||
Removes a CynView from the display list. | ICynComposite | ||
Removes a CynView from the display list at the specified index. | ICynComposite |
add | () | method |
public function add(child:CynView, props:Object = null):CynView
Adds a CynView
to the display list. An optional set of properties
can be sent to the object at time of addition. These property names
match the properties of other display objects.
Parameters
child:CynView — The view to be added to the display list.
| |
props:Object (default = null ) — An object with display object properties.
|
CynView — The view that was added.
|
addAt | () | method |
public function addAt(child:CynView, index:int, props:Object = null):CynView
Adds a CynView
to the display list at the specified index.
An optional set of properties can be sent to the object at time of addition.
These property names match the properties of other display objects.
Parameters
child:CynView — The view to be added to the display list.
| |
index:int — The index to add the object at.
| |
props:Object (default = null ) — An object with display object properties.
|
CynView — The view that was added.
|
destroy | () | method |
public function destroy(view:CynView):void
Destroys a CynView
from the display list. All reference is destroyed
and the object is nulled out the object as well as its children.
Parameters
view:CynView — The view to be destroyed.
|
destroyAt | () | method |
public function destroyAt(index:int):void
Destroys a CynView
from the display list at the specified index.
All reference is destroyed and the object is nulled out the object as well as its children.
Parameters
index:int — The index at which to destroy the view.
|
CynError — If object at index is not a CynView .
|
remove | () | method |
public function remove(child:CynView, completely:Boolean = false):CynView
Removes a CynView
from the display list. When the completely flag
is set the function completely destroys all reference and nulls out the object as
well as its children.
Parameters
child:CynView — The view to be removed from the display list.
| |
completely:Boolean (default = false ) — Flag set to determine if it is removed or destroyed completely.
|
CynView — The view that has been removed.
|
See also
removeAt | () | method |
public function removeAt(index:int, completely:Boolean = false):CynView
Removes a CynView
from the display list at the specified index. When the
completely flag is set the function completely destroys all reference and nulls out the
object as well as its children.
Parameters
index:int — The index at which to remove the view.
| |
completely:Boolean (default = false ) — Flag set to determine if it is removed or destroyed completely.
|
CynView — The view that has been removed.
|
CynError — If object at index is not a CynView .
|