Class fvaswing.components.reader.abstract.FvPlayList

Implemented Interfaces

DragListener LocalisationListener

Description

Playlist base component.

Can be popup throw JFrame or embeded into other component using getView() method.

Localisation is connected for translation.

Load / save operation used argument name in constructor call to send / retreive data.

See Also

Field Index

onCloseListEVENT, onEmbedListEVENT, onLoadListEVENT, onOpenFileEVENT

Method Index

new FvPlayList()
addDocument(), addExternalDocument(), clear(), close(), getListID(), getView(), onDragDrop(), onDragEnter(), onDragExit(), onDragOverring(), onDragStart(), onLocalisationUpdate(), open(), removeAllDocument(), removeDocument(), removeExternalDocument(), save(), setEnabled(), toString(), updateDocument()

Constructor Detail

FvPlayList

public function FvPlayList(name:String, enabledExternalLoading:Boolean)

Constructor.

Parameters

namePlaylist name
enabledExternalLoadingAllow user to load external file

Field Detail

onOpenFileEVENT

static public onOpenFileEVENT:EventType
Broadcasted when user double-click on file.

onEmbedListEVENT

static public onEmbedListEVENT:EventType
Broadcasted when user want to embed list in reader window.

onCloseListEVENT

static public onCloseListEVENT:EventType
Broadcasted when user close the list.

onLoadListEVENT

static public onLoadListEVENT:EventType
Broadcasted when user click on "open list" menubar item.

Method Detail

getListID

public function getListID():String

Returns identifier for DND support.

open

public function open(callPopUp:Boolean):Void

Opens dialog.

close

public function close():Void

Closes frame.

getView

public function getView():Component

Returns main container.

addDocument

public function addDocument(item:FvPlayListItem):Void

Adds passed-in FvPlayListItem to list.

removeDocument

public function removeDocument(item:FvPlayListItem):Void

Removes passed-in FvPlayListItem from list.

removeAllDocument

public function removeAllDocument():Void

Removes all elements in internal playlist.

updateDocument

public function updateDocument(item:FvPlayListItem):Void

Updates passed-in FvPlayListItem item informations.

addExternalDocument

public function addExternalDocument(item:FvPlayListItem):Void

Adds passed-in FvPlayListItem to list.

Item will be inserted in "external" tree node

removeExternalDocument

public function removeExternalDocument(item:FvPlayListItem):Void

Removes passed-in FvPlayListItem from list.

save

public function save():Void

Save external document list into an application SharedObject

clear

public function clear():Void

Clears external links.

onLocalisationUpdate

public function onLocalisationUpdate(event:LocalisationEvent):Void

Triggered when Localisation language change.

Specified By

onLocalisationUpdate() in fever.app.local.LocalisationListener

setEnabled

public function setEnabled(enabled:Boolean):Void

Avoid playlist actions if enabled == false

toString

public function toString():String

Returns string representation.

onDragDrop

public function onDragDrop(dragInitiator:Component, sourceData:SourceData, pos:Point, targetComponent:Component):Void

onDragStart

public function onDragStart(dragInitiator:Component, sourceData:SourceData, pos:Point):Void

onDragEnter

public function onDragEnter(dragInitiator:Component, sourceData:SourceData, pos:Point, targetComponent:Component):Void

onDragOverring

public function onDragOverring(dragInitiator:Component, sourceData:SourceData, pos:Point, targetComponent:Component):Void

onDragExit

public function onDragExit(dragInitiator:Component, sourceData:SourceData, pos:Point, targetComponent:Component):Void