org.olat.commons.file.filechooser
Class FileChooserController

java.lang.Object
  extended by org.olat.core.gui.control.DefaultController
      extended by org.olat.core.gui.control.controller.BasicController
          extended by org.olat.commons.file.filechooser.FileChooserController
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable

Deprecated.

public class FileChooserController
extends BasicController

Description:

This Controller offers first to choose from local folder or to upload files. Then the two subworkflows are triggered.

This workflow should not be used in any new workflows, it is very confusing, needs to be reimplemented from sratch with better navigation (e.g. crumb path)

Author:
Felix Jost, Florian Gnägi

Constructor Summary
FileChooserController(UserRequest ureq, WindowControl wControl, ControllerEventListener cel, int uploadLimitKB, boolean showCancelButton)
          Deprecated.  
 
Method Summary
 void event(UserRequest ureq, Component source, Event event)
          Deprecated. abstract event method for subclasses.
 void event(UserRequest ureq, Controller source, Event event)
          Deprecated. the only method of the interface controllereventlistener.
 VFSLeaf getFileSelection()
          Deprecated.  
 java.io.File getUploadedFile()
          Deprecated.  
 java.lang.String getUploadedFileName()
          Deprecated.  
 boolean isFileFromFolder()
          Deprecated.  
 boolean isFileFromUpload()
          Deprecated.  
 void release()
          Deprecated.  
 void setSuffixFilter(VFSItemFilter suffixFilter)
          Deprecated.  
 
Methods inherited from class org.olat.core.gui.control.DefaultController
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, dispose, getControllerCount, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileChooserController

public FileChooserController(UserRequest ureq,
                             WindowControl wControl,
                             ControllerEventListener cel,
                             int uploadLimitKB,
                             boolean showCancelButton)
Deprecated. 
Parameters:
ureq -
wControl -
cel -
uploadLimitKB -
Method Detail

release

public void release()
Deprecated. 

setSuffixFilter

public void setSuffixFilter(VFSItemFilter suffixFilter)
Deprecated. 
Parameters:
suffixFilter -

event

public void event(UserRequest ureq,
                  Component source,
                  Event event)
Deprecated. 
Description copied from class: DefaultController
abstract event method for subclasses. the event received from the component we are listening to are always rerouted to this method here, except when the component has been disposed, in which case the events are simply ignored.

See Also:
DefaultController.event(org.olat.core.gui.UserRequest, org.olat.core.gui.components.Component, org.olat.core.gui.control.Event)

event

public void event(UserRequest ureq,
                  Controller source,
                  Event event)
Deprecated. 
Description copied from class: DefaultController
the only method of the interface controllereventlistener. always gets called when a controller we 'subscribed' to fires an event. we provide a default implementation here since there are many controllers which are standalone and need no subcontrollers

See Also:
DefaultController.event(org.olat.core.gui.UserRequest, org.olat.core.gui.control.Controller, org.olat.core.gui.control.Event)

isFileFromUpload

public boolean isFileFromUpload()
Deprecated. 
Returns:

isFileFromFolder

public boolean isFileFromFolder()
Deprecated. 
Returns:

getFileSelection

public VFSLeaf getFileSelection()
Deprecated. 
Returns:

getUploadedFile

public java.io.File getUploadedFile()
Deprecated. 
Returns:

getUploadedFileName

public java.lang.String getUploadedFileName()
Deprecated. 
Returns: