| |
|
| java.lang.Object de.jwic.base.Control de.jwic.controls.FileUploadControl
FileUploadControl | public class FileUploadControl extends Control implements IFileReciever(Code) | | This control displays a field to upload a file. The file is saved and a resource
is created when a file is recieved from the client.
A user of the control must set the temporary flag to false if the file is
used and should not be deleted when the FileUploadControl is destroyed.
author: Florian Lippisch |
selectionListeners | protected List selectionListeners(Code) | | List of listender to inform
|
addFileReceivedListener | public void addFileReceivedListener(FileReceivedListener listener)(Code) | | Add a listener to the file received event.
Parameters: listener - |
destroy | public void destroy()(Code) | | |
getFileName | public String getFileName()(Code) | | Returns the name of the file that has been uploaded to this control. Returns
null if no file has been uploaded yet.
|
getFileSize | public long getFileSize()(Code) | | Returns the size of the uploaded file or -1 if no file has been uploaded yet.
|
handleFile | public void handleFile(String fieldname, UploadFile file)(Code) | | Handle the UploadFile.
Parameters: req - Parameters: filename - Parameters: file - |
isFileUploaded | public boolean isFileUploaded()(Code) | | Returns true if a file has been assigned to this control.
|
reset | public void reset()(Code) | | Resets this FileUploadControl.
|
sendFileReceivedEvent | protected void sendFileReceivedEvent()(Code) | | Send the file received event to the registerd listeners.
|
setWidth | public void setWidth(String width)(Code) | | The width is set as a css style argument. If you specify the width
in pixel, you must add 'px' at the end. Otherwise its no valid css
parameter.
Parameters: width - The width to set. |
|
|
|