Package io.jmix.ui.component.impl
Class FileResourceImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractResource
io.jmix.ui.component.impl.AbstractStreamSettingsResource
io.jmix.ui.component.impl.FileResourceImpl
- All Implemented Interfaces:
FileResource
,WebResource
,Resource
,ResourceView.HasStreamSettings
@Component("ui_FileResource")
@Scope("prototype")
public class FileResourceImpl
extends AbstractStreamSettingsResource
implements WebResource, FileResource
-
Field Summary
Fields inherited from class io.jmix.ui.component.impl.AbstractStreamSettingsResource
bufferSize, cacheTime, fileName
Fields inherited from class io.jmix.ui.component.impl.AbstractResource
hasSource, resource, resourceUpdateHandler
-
Constructor Summary
-
Method Summary
Methods inherited from class io.jmix.ui.component.impl.AbstractStreamSettingsResource
getBufferSize, getCacheTime, getFileName, setBufferSize, setCacheTime, setFileName
Methods inherited from class io.jmix.ui.component.impl.AbstractResource
fireResourceUpdateEvent, getResource, hasSource, setResourceUpdatedHandler
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.ResourceView.HasStreamSettings
getBufferSize, getCacheTime, getFileName, setBufferSize, setCacheTime, setFileName
Methods inherited from interface io.jmix.ui.component.impl.WebResource
getResource, hasSource
-
Field Details
-
file
-
-
Constructor Details
-
FileResourceImpl
public FileResourceImpl()
-
-
Method Details
-
setFile
- Specified by:
setFile
in interfaceFileResource
- Parameters:
file
- file in the server file system- Returns:
- this FileResource instance
-
getFile
- Specified by:
getFile
in interfaceFileResource
-
createResource
protected void createResource()- Specified by:
createResource
in classAbstractResource
-