Class fvaswing.components.filechooser.FvFileChooserItem

Implemented Interfaces

IFile

Description

Basic structure ( like VO ) to wrap listed item.

Field Index

name, type

Method Index

new FvFileChooserItem()
createSaveItem(), getBufferedData(), getDate(), getExtension(), getName(), getPath(), getRelativePath(), getSize(), isBuffered(), isDirectory(), setBufferedData(), toString()

Constructor Detail

FvFileChooserItem

public function FvFileChooserItem(p:String, n:Number, d:Number, t:String, relativePath)

Constructor.

Field Detail

name

public name:String
Only use for sorting process.

type

public type:Number
Only use for sorting process.

Method Detail

createSaveItem

static public function createSaveItem(s:String, rel:String):FvFileChooserItem

Creates a dynamic item.

Use only by the 'save' dialog box.

isDirectory

public function isDirectory():Boolean

Returns true if current item is a directory, otherwise false

Specified By

isDirectory() in fever.data.file.IFile

getName

public function getName():String

Returns filename.

Specified By

getName() in fever.data.file.IFile

getDate

public function getDate():String

Returns last modification date.

getSize

public function getSize():Number

Returns file size.

getPath

public function getPath():String

Returns full qualified path accoring fvaswing.components.FvFileChooser.BASE_PATH property.

getRelativePath

public function getRelativePath():String

Returns file path without FvFilechooser.BASE_PATH folder.

getExtension

public function getExtension():String

Returns file extension.

setBufferedData

public function setBufferedData(data):Void

File context is loaded somewhere in application.
We buffer file context here to avoid mulitple loading process.

getBufferedData

public function getBufferedData():Object

Returns buffered data.

isBuffered

public function isBuffered():Boolean

Returns true if current file has already be loaded.

toString

public function toString():String

Returns string representation.