Class fvaswing.components.filechooser.preview.FvChooserPreview

Description

Preview UI components for FvFileChooser component.

You can specify preview behaviour using addPreviewCommand() method and extending the FvPreviewCommand class.
Take a look at FvImagePreview class for a concrete example.

See Also

Field Index

Inherited from FvViewHelper

Method Index

new FvChooserPreview()
addPreviewCommand(), getChooserMovieTarget(), getContainer(), handleError(), handleProgress(), handleResult(), init(), load(), removeType(), reset(), toString()

Inherited from FvViewHelper

Constructor Detail

FvChooserPreview

public function FvChooserPreview()

Constructor.

Method Detail

init

public function init(mcChooserTarget:MovieClip):Void

Stores a reference to the FileChooser MovieClip container.

getChooserMovieTarget

public function getChooserMovieTarget():MovieClip

Returns a reference to the FileChooser MovieClip container.

Can be used in concrete preview process.

load

public function load(item:FvFileChooserItem):Void

Prepares preloading of passed-in fvaswing.components.filechooser.FvFileItem object.

getContainer

public function getContainer():Container

Returns current main AsWing JPanel.

Use by FvFileChooserView to append FvChooserPreview as component child.

reset

public function reset():Void

Resets preview UI.

addPreviewCommand

public function addPreviewCommand(type:String, previewCommand:Command):Void

Add new command to preview loader for passed-in type

removeType

public function removeType(type:String):Void

Remove type to preview loader

handleResult

public function handleResult(c:Component):Void

Called by FvPreviewCommand

handleProgress

public function handleProgress(percent:Number):Void

Called by FvPreviewCommand

handleError

public function handleError():Void

Called by FvPreviewCommand

toString

public function toString():String

Returns string representation.