planetj.dataengine.fileupload
Interface FileUploaderIfc

All Known Implementing Classes:
FileUploader

public interface FileUploaderIfc

This component allows users to upload a file to the server. Users are given a text field in which they can enter the name of the file to upload, and a browse button which shows a dialog box which can be used to search for a file on their system to upload. To obtain a file that has been uploaded by a user using this component, invoke the FileUploadHelper.getFile() method.

Author:
Justin Epstein, PlanetJ Corp.

Method Summary
 String getKey()
          Gets a key which should be unique for this object.
 int getSize()
          Gets the size of the text field in which the name of the file to upload can be entered/seen.
 void setSize(int size)
          Sets the size of the text field in which the name of the file to upload can be entered/seen.
 

Method Detail

getKey

public String getKey()
Gets a key which should be unique for this object. It is used to store and retrieve the UploadedFile object which corresponds to a file uploaded by this object.


getSize

public int getSize()
Gets the size of the text field in which the name of the file to upload can be entered/seen.

Returns:
The number of characters long that the text field will be.

setSize

public void setSize(int size)
Sets the size of the text field in which the name of the file to upload can be entered/seen.