Class fvaswing.components.filechooser.FvFileChooserResources

Description

Graphical and localisation properties for FvFileChooser component.

You can redefine icons used for 'home' and 'parent' button using homeIcon and parentIcon properties.

You can redefine default used icons for 'folder' and 'file' itemu sing fileIcon and folderIcon properties.

Modifications are applied to all instanciated FvFileChooser as localisation work with Singleton design.

Default localisation use 'english' language.

FvFileChooser in french for example :

   var resource : FvFileChooserResources = FvFileChooserResources.getInstance();
   resource.openLabel = "Ouvrir";
   resource.cancelLabel = "Annuler";
   resource.lookIn = "Chercher dans :";
   resource.fileName = "Nom de fichier :";
   resource.fileType = "Type de fichier :";
   
   var chooser : FvFileChooser = new FvFileChooser();
   chooser.showOpenDialog();
 

Field Index

BROWSE, cancelLabel, createFolderLabel, createIcon, CUSTOM, fileIcon, fileNameLabel, fileTypeLabel, folderIcon, folderLabel, homeIcon, loadPreviewLabel, lookInLabel, noPreviewLabel, OPEN, openLabel, parentIcon, refreshIcon, SAVE, saveLabel, uploadIcon, uploadLabel

Method Index

getInstance(), onLocalisationUpdate()

Inherited from Resources

Field Detail

OPEN

static public OPEN:Number
ID for 'Open' dialog.

SAVE

static public SAVE:Number
ID for 'Save' dialog.

BROWSE

static public BROWSE:Number
ID for 'Browse' dialog.

CUSTOM

static public CUSTOM:Number
ID for 'Custom' dialog.

openLabel

public openLabel:String

saveLabel

public saveLabel:String

folderLabel

public folderLabel:String

cancelLabel

public cancelLabel:String

lookInLabel

public lookInLabel:String

fileTypeLabel

public fileTypeLabel:String

fileNameLabel

public fileNameLabel:String

noPreviewLabel

public noPreviewLabel:String

loadPreviewLabel

public loadPreviewLabel:String

uploadLabel

public uploadLabel:String

createFolderLabel

public createFolderLabel:String

homeIcon

public homeIcon:Icon

parentIcon

public parentIcon:Icon

folderIcon

public folderIcon:Icon

fileIcon

public fileIcon:Icon

uploadIcon

public uploadIcon:Icon

refreshIcon

public refreshIcon:Icon

createIcon

public createIcon:Icon

Method Detail

getInstance

static public function getInstance():FvFileChooserResources

Returns FvFileChooserResources instance.

Singleton design

onLocalisationUpdate

public function onLocalisationUpdate(event:LocalisationEvent):Void

Description copied from Resources

Triggered when Localisation language change.

Specified By

onLocalisationUpdate() in fever.app.local.LocalisationListener

Overrides

onLocalisationUpdate() in fever.core.Resources