Package | com.sibirjak.angara.sequence |
Class | public class PagedSequence |
Inheritance | PagedSequence ![]() ![]() ![]() ![]() |
Implements | IPagedSequence |
Since the Sequence removes all loaders from its internal list, we need to make up another loaders list here, which keeps references to the loaders after they have been finished. This list is index based for an easy spefication of the range of loaders to be loaded at next. The list will be removed automatically after all loader items have been finished.
For performance reasons the PagedSequence stores all waiting loaders (status LoaderItemStatus.WAITING) in a separate list. The iterator of this list will be considered by the Schedules nextItems() method.
Method | Defined by | ||
---|---|---|---|
Creates a new PagedSequence object.
| PagedSequence | ||
activateLoaders(index:uint, numItems:uint):void
Resumes all loaders in the specified range and pauses all
other currently waiting loaders.
| PagedSequence | ||
![]() |
add(resourceLoader:IResourceLoader, weight:uint = 0):void
Adds a new resource loader to the sequence.
| Sequence | |
clear():void
Stops all loaders and removes all loader references from the sequence.
| PagedSequence | ||
getResourceLoaderIterator(cursor:uint = 0):IIterator
Returns in iterator over all scheduled resource loaders.
| PagedSequence | ||
iterator(cursor:*):IIterator
Returns an iterator over all not paused resource loaders.
| PagedSequence | ||
![]() |
pause():void
Marks the item to be ignored by subsequent loader manager queue pulling operations.
| Sequence | |
![]() |
remove(resourceLoader:IResourceLoader):void
Removes a loader from a sequence.
| Sequence | |
![]() |
resume():void
Marks a prior paused item to be eligible for loader manager queue polling
operations.
| Sequence | |
![]() |
stop():void
Immediately stops loading of the item or its containing items.
| Sequence | |
![]() |
toString():String
Info
| Sequence |
Method | Defined by | ||
---|---|---|---|
![]() |
dispatchAdd(resourceLoader:IResourceLoader):void
Dispatches the SequenceEvent.ADD event.
| Sequence | |
![]() |
dispatchComplete():void
Dispatches the SequenceEvent.COMPLETE event.
| Sequence | |
![]() |
dispatchPause():void
Dispatches the SequenceEvent.PAUSE event.
| Sequence | |
![]() |
dispatchProgress():void
Dispatches the SequenceEvent.PROGRESS event.
| Sequence | |
![]() |
dispatchRemove(resourceLoader:IResourceLoader):void
Dispatches the SequenceEvent.REMOVE event.
| Sequence | |
![]() |
dispatchResume():void
Dispatches the SequenceEvent.RESUME event.
| Sequence | |
![]() |
dispatchStop():void
Dispatches the SequenceEvent.STOP event.
| Sequence | |
loaderAdded(resourceLoader:IResourceLoader):void
Template method to notify subclasses after a resource loader has been added
but before the sequence dispatches the ADD event.
| PagedSequence | ||
loaderFinished(resourceLoader:IResourceLoader):void
Template method to notify subclasses after a resource has been finished.
| PagedSequence | ||
loaderPaused(resourceLoader:IResourceLoader):void
Template method to notify subclasses after a resource has been paused.
| PagedSequence | ||
loaderRemoved(resourceLoader:IResourceLoader):void
Template method to notify subclasses after a resource loader has been removed.
| PagedSequence | ||
loaderResumed(resourceLoader:IResourceLoader):void
Template method to notify subclasses after a resource has been resumed
but before the sequence dispatches its RESUME event.
| PagedSequence | ||
sequenceComplete():void
Template method to notify subclasses after the internal monitor has been completed
but before the sequence dispatches its COMPLETE event.
| PagedSequence |
PagedSequence | () | constructor |
public function PagedSequence()
Creates a new PagedSequence object.
activateLoaders | () | method |
public function activateLoaders(index:uint, numItems:uint):void
Resumes all loaders in the specified range and pauses all other currently waiting loaders.
Parametersindex:uint — The index of the first resource loader.
|
|
numItems:uint — The number of loaders to be resumed.
|
clear | () | method |
public override function clear():void
Stops all loaders and removes all loader references from the sequence.
getResourceLoaderIterator | () | method |
public function getResourceLoaderIterator(cursor:uint = 0):IIterator
Returns in iterator over all scheduled resource loaders.
Parameterscursor:uint (default = 0 ) — Not supported.
|
IIterator — Iterator over all resource loaders added to the paged sequence.
|
iterator | () | method |
public override function iterator(cursor:*):IIterator
Returns an iterator over all not paused resource loaders.
Parameterscursor:* — Not supported.
|
IIterator — Iterator over all not paused resource loaders.
|
loaderAdded | () | method |
protected override function loaderAdded(resourceLoader:IResourceLoader):void
Template method to notify subclasses after a resource loader has been added but before the sequence dispatches the ADD event.
ParametersresourceLoader:IResourceLoader |
loaderFinished | () | method |
protected override function loaderFinished(resourceLoader:IResourceLoader):void
Template method to notify subclasses after a resource has been finished.
ParametersresourceLoader:IResourceLoader |
loaderPaused | () | method |
protected override function loaderPaused(resourceLoader:IResourceLoader):void
Template method to notify subclasses after a resource has been paused.
ParametersresourceLoader:IResourceLoader |
loaderRemoved | () | method |
protected override function loaderRemoved(resourceLoader:IResourceLoader):void
Template method to notify subclasses after a resource loader has been removed.
ParametersresourceLoader:IResourceLoader |
loaderResumed | () | method |
protected override function loaderResumed(resourceLoader:IResourceLoader):void
Template method to notify subclasses after a resource has been resumed but before the sequence dispatches its RESUME event.
ParametersresourceLoader:IResourceLoader |
sequenceComplete | () | method |
protected override function sequenceComplete():void
Template method to notify subclasses after the internal monitor has been completed but before the sequence dispatches its COMPLETE event.