Class fvaswing.components.reader.abstract.FvReaderDocument

Description

Abstract implementation for "PlayList reader document".

Field Index

onErrorDocumentEVENT, onLoadDocumentEVENT, onNewDocumentEVENT, onProgressDocumentEVENT, parent

Method Index

getDocument(), getPercent(), getURL(), load(), release(), setSize()

Field Detail

onNewDocumentEVENT

static public onNewDocumentEVENT:EventType
Broadcasted when a new document start loading process.

onLoadDocumentEVENT

static public onLoadDocumentEVENT:EventType
Broadcasted when document is fully loaded.

onProgressDocumentEVENT

static public onProgressDocumentEVENT:EventType
Broadcasted during loading progress.

onErrorDocumentEVENT

static public onErrorDocumentEVENT:EventType
Broadcasted when an error occured.

parent

public parent:BubbleEventBroadcaster
Reader parent

Method Detail

load

public function load(item:FvPlayListItem):Void

Loads passed-in document FvPlayListItem.

If a loading process is is running, an FvAlert dialog is open.
If passed-in url is same as current, do nothing.

Parameters

setSize

public function setSize():Void

Resize document target.

Must be override by concrete document subclass.

getDocument

public function getDocument():FvPlayListItem

Returns current loaded FvPlayListItem

getURL

public function getURL():String

Returns current document url.

getPercent

public function getPercent():Number

Returns loaded percent of current document.

Must be override by subclass ( otherwise an exception is thrown )

release

public function release():Void

Releases document and all event listeners subscription.

Must be override by subclass ( otherwise an exception is thrown )