Packagecom.addicted2flash.data.service
Interfacepublic interface IDataServiceGroup extends IDisposable
ImplementorsLoaderQueueServiceGroup

Interface for all objects that group a list of data services and handle their events.



Public Properties
 PropertyDefined by
  currentService : IDataService
[read-only] Returns the currently active service that has dispatched an event (f.e error events).
IDataServiceGroup
  dataProgress : DataProgress
[read-only] Returns the overall progress of the IDataServiceGroup.
IDataServiceGroup
  dataServiceCount : int
[read-only] Returns the total amount of services in the list.
IDataServiceGroup
  dataServiceObserverGroupCount : int
[read-only] Returns the number of IDataServiceGroupObserver.
IDataServiceGroup
  errorMessage : String
[read-only] Returns error message of the IDataService.
IDataServiceGroup
  httpStatus : int
[read-only] Returns http status of the IDataService.
IDataServiceGroup
Public Methods
 MethodDefined by
  
add(service:IDataService):void
Adds a service to the list of services.
IDataServiceGroup
  
Adds an IDataServiceGroupObserver to the set of observers for this object.
IDataServiceGroup
 Inherited
dispose():void
free memory for garbage collection.
IDisposable
  
Returns service at a given index.
IDataServiceGroup
  
remove(service:IDataService):void
Removes a service from the list of services.
IDataServiceGroup
  
removeAt(i:int):void
Removes a service from the list of services at a given index.
IDataServiceGroup
  
Deletes an IDataServiceGroupObserver from the set of observers of this object.
IDataServiceGroup
  
Clears the list of observers.
IDataServiceGroup
Property detail
currentServiceproperty
currentService:IDataService  [read-only]

Returns the currently active service that has dispatched an event (f.e error events).

Implementation
    public function get currentService():IDataService
dataProgressproperty 
dataProgress:DataProgress  [read-only]

Returns the overall progress of the IDataServiceGroup.

NOTE: the totalbytes are just the bytes of the services being processed by the LoaderQueue. This means that it is possible that not all totalbytes of the added services are included.

Implementation
    public function get dataProgress():DataProgress
dataServiceCountproperty 
dataServiceCount:int  [read-only]

Returns the total amount of services in the list.

Implementation
    public function get dataServiceCount():int
dataServiceObserverGroupCountproperty 
dataServiceObserverGroupCount:int  [read-only]

Returns the number of IDataServiceGroupObserver.

Implementation
    public function get dataServiceObserverGroupCount():int
errorMessageproperty 
errorMessage:String  [read-only]

Returns error message of the IDataService.

Implementation
    public function get errorMessage():String
httpStatusproperty 
httpStatus:int  [read-only]

Returns http status of the IDataService.

Implementation
    public function get httpStatus():int
Method detail
add()method
public function add(service:IDataService):void

Adds a service to the list of services.

Parameters
service:IDataService — service to be added
addDataServiceGroupObserver()method 
public function addDataServiceGroupObserver(o:IDataServiceGroupObserver):void

Adds an IDataServiceGroupObserver to the set of observers for this object.

Parameters
o:IDataServiceGroupObserverIDataServiceGroupObserver to be added.
getAt()method 
public function getAt(i:int):IDataService

Returns service at a given index.

Parameters
i:int — index of the service

Returns
IDataService — service at a given index
remove()method 
public function remove(service:IDataService):void

Removes a service from the list of services.

Parameters
service:IDataService — service to be removed
removeAt()method 
public function removeAt(i:int):void

Removes a service from the list of services at a given index.

Parameters
i:int — index of service
removeDataServiceGroupObserver()method 
public function removeDataServiceGroupObserver(o:IDataServiceGroupObserver):void

Deletes an IDataServiceGroupObserver from the set of observers of this object.

Parameters
o:IDataServiceGroupObserverIDataServiceGroupObserver to be deleted.
removeObservers()method 
public function removeObservers():void

Clears the list of observers.