Packagetwaver
Interfacepublic interface ILayer extends IData, flash.events.IEventDispatcher, IClient
Implementors Layer

This class defines high level properties and behaviours for network layers. Network layer is an invisible data and container for all data contained in data box or element box. All layers of an data box will be managed by LayerBox. Layer can be moved up and down, visible or hide by layer box.

Like alarm object, layer is also a special data managed by special data box. Alarm is managed by alarm box, layer is managed by layer box. And it is easy to understand that why element is managed by element box.



Public Properties
 PropertyDefined By
 Inheritedchildren : ICollection
[read-only] Get all children data as a collection.
IData
 InheritedchildrenCount : int
[read-only] Get total children count.
IData
 InheritedclientProperties : ICollection
[read-only] Get a ICollection that contians all client proerty name.
IClient
  editable : Boolean
Get the value whether this layer is editable.
ILayer
 InheritedhasChildren : Boolean
[read-only] Check whether this data has children data.
IData
 Inheritedicon : String
The small icon of this data.
IData
 Inheritedid : Object
[read-only] The ID of this data.
IData
  movable : Boolean
Get value whether this layer is movable to up or down.
ILayer
 Inheritedname : String
Get the name of this data.
IData
 Inheritedparent : IData
Get parent data.
IData
 InheritedtoolTip : String
Get tooltip of this data.
IData
  visible : Boolean
Check whether this layer is visible.
ILayer
Public Methods
 MethodDefined By
 Inherited
addChild(child:IData, index:int = 0):Boolean
Add the specified data as a child of current data at the specified children index location.
IData
 Inherited
addPropertyChangeListener(listener:Function, priority:int = 0, useWeakReference:Boolean = false):void
Add a property change listener on this data so it can be notified on any property changed.
IData
 Inherited
clearChildren():Boolean
Clear all children objects from this data.
IData
 Inherited
deserializeXML(serializer:XMLSerializer, dataXML:XML):void
Deserialize data from specified XML data.
IData
 Inherited
dispatchPropertyChangeEvent(property:String, oldValue:Object, newValue:Object):Boolean
Dispatch property change event.
IData
 Inherited
getChildAt(index:int):IData
Get child data from specified children location.
IData
 Inherited
getClient(clientProp:String):*
Get the specified client property.
IClient
 Inherited
getPropertyValue(property:String):Object
Get an user defined property on this data.
IData
 Inherited
hasOwnProperty(name:String):Boolean
Whether current data has created specified property.
IData
 Inherited
isDescendantOf(data:IData):Boolean
Check whether this data is a descendant of the specified data.
IData
 Inherited
isParentOf(data:IData):Boolean
Check whether this data is the parent of specified data.
IData
 Inherited
isRelatedTo(data:IData):Boolean
Check whether this data and the specified data has any relationship of descendant.
IData
 Inherited
removeChild(child:IData):Boolean
Remove the specified child data from children of current data.
IData
 Inherited
removePropertyChangeListener(listener:Function):void
Remove the specified property change listener from this data.
IData
 Inherited
serializeXML(serializer:XMLSerializer, newInstance:IData):void
Serialize this data into XML.
IData
 Inherited
setClient(clientProp:String, newValue:*):IClient
Set a client property by specified property name and property value.
IClient
 Inherited
setPropertyValue(property:String, value:Object):void
Set an user defined property on this data.
IData
 Inherited
toChildren(matchFunction:Function = null):ICollection
Return all children as a collection filtered by the specified function.
IData
 Inherited
toString():String
IData
Property Detail
editableproperty
editable:Boolean

Get the value whether this layer is editable. This will decide whether elements on this layer is editable.


Implementation
    public function get editable():Boolean
    public function set editable(value:Boolean):void
movableproperty 
movable:Boolean

Get value whether this layer is movable to up or down.


Implementation
    public function get movable():Boolean
    public function set movable(value:Boolean):void
visibleproperty 
visible:Boolean

Check whether this layer is visible. This will also make elements contained visible/invisible.


Implementation
    public function get visible():Boolean
    public function set visible(value:Boolean):void