Packagecom.elad.framework.fileviewer
Classpublic class UIFileViewer
InheritanceUIFileViewer Inheritance AbstractFileViewer
ImplementsIUIFileViewer



Public Properties
 PropertyDefined by
  output : UIComponent
[write-only] The view will be sent to an output component, which can be any UIComponent.
UIFileViewer
Protected Properties
 PropertyDefined by
  component : UIComponent
UIFileViewer
Public Methods
 MethodDefined by
  
initiate(filename:String):void
Method that will be used by UI to start the API
UIFileViewer
 Inherited
setProperties(filename:String):IView
This will set all the properties that are needed in the view layer.
AbstractFileViewer
Protected Methods
 MethodDefined by
  
Will check the file extension name and will invoke the abstractFileViewer method to set the view for the file

The file extension need to be set in this method.

UIFileViewer
 Inherited
The Factory Method is an abstract method that will be overridden in the view class.
AbstractFileViewer
Property detail
componentproperty
protected var component:UIComponent
outputproperty 
output:UIComponent  [write-only]

The view will be sent to an output component, which can be any UIComponent.

Implementation
    public function set output(value:UIComponent):void

See also

Method detail
checkFileName()method
protected function checkFileName(fileExt:String):AbstractFileViewer

Will check the file extension name and will invoke the abstractFileViewer method to set the view for the file

The file extension need to be set in this method. Parameters

fileExt:String — File name and extention to be checked and viewed.

Returns
AbstractFileViewer

Throws
— file extention name if the extention was not set be this method.

See also

initiate()method 
public override function initiate(filename:String):void

Method that will be used by UI to start the API

Parameters
filename:String — File name and extention to be checked and viewed.

See also