FvFileChooserController is the controller part of the MVC Design pattern implemented in FvFileChooser.
public function showDialog(id:Number, buttonCaption:String):VoidShow a 'custom' modal dialog containing the file chooser.
buttonCaption | Caption of the 'ok' button |
public function setMultiSelectionEnabled(enabled:Boolean):VoidSets whether multiple files can be selected at once.
By default, a user can choose only one file.
public function isMultiSelectionEnabled():BooleanReturns whether multiple files can be selected at once.
public function setUploadEnabled(enabled:Boolean):Void
Sets whether upload feature is enabled true or not
false
Default is false
public function isUploadEnabled():Boolean
Returns true if upload feature is enabled in current
FvFileChooser component.
public function setPreviewEnabled(enabled:Boolean):Void
Sets whether preview feature is enabled true or not
false
Default is false
public function isPreviewEnabled():Boolean
Returns true if preview feature is enabled in current
FvFileChooser component.
public function addPreviewCommand(type:String, previewCommand:Command):VoidAdds type to preview loader.
public function setCurrentDirectory(file:FvFileChooserItem):VoidSets the directory whose files are displayed in the file chooser's list.
public function retreiveDirectory(path:String):VoidRetreives directory listing from model cache.
This method is called by the UI Combobox.
public function changeToParentDirectory():VoidChange the list to display the current directory's parent.
public function changeToHomeDirectory():VoidChange the list to display to home directory.
public function rescanCurrentDirectory(path:String):VoidCheck the file system and update the chooser's list.
public function setAcceptAllFileFilterUsed(enabled:Boolean):Void
Sets whether the AcceptAll file filter is used as an allowable choice in
the choosable filter list; the default value is true.
public function isAcceptAllFileFilterUsed():BooleanReturns whether the AcceptAll file filter is used as an allowable choice in the choosable filter list.
public function setFileFilter(filter:FileFilter):VoidSets the file chooser's primary file filter.
public function getFileFilter():FileFilterReturns the file chooser's primary file filter.
public function getChoosableFileFilters():IndexedArrayReturns file chooser filter list.
public function addChoosableFileFilter(filter:FileFilter):VoidAdds a new custom file filter.
public function removeChoosableFileFilter(filter:FileFilter):BooleanRemoves passed-in fvaswing.components.filechooser.FvFileFilter from file chooser filter list.
true is filter is removed, otherwise false
public function resetChoosableFileFilters():VoidResets file chooser filter list to primary filter list.
public function getAcceptAllFileFilter():FileFilterReturns the default 'AcceptAll' filter instance.