|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.dataengine.fileupload.FileUploader
This component when rendered on a page 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. The following characteristics of a file upload are controlled by the browser and are not configurable:
Constructor Summary | |
FileUploader()
|
Method Summary | |
static String |
generateKey(String name)
Generates a key, based on the name of a FileUploader object. |
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 newSize)
Sets the size of the text field in which the name of the file to upload can be entered/seen. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileUploader()
Method Detail |
public static String generateKey(String name)
name
- The name of a FileUploader component (no two FileUpload components on the same page should
have the same name).
public String getKey()
getKey
in interface FileUploaderIfc
public int getSize()
getSize
in interface FileUploaderIfc
public void setSize(int newSize)
setSize
in interface FileUploaderIfc
newSize
- The number of characters long that the text field will be.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |