|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.services.util.fileuploadapplet.SelectedFiles
public class SelectedFiles
The SelectedFiles class is basically a list of the files to be uploaded and validates that all the required files are present. This is way cut up from the NIEHS SelectedFiles, but it was easiest to just hack this up, since the FPTUploader and FileUploadApplet code uses the SelectedFiles object.
Constructor Summary | |
---|---|
SelectedFiles()
|
Method Summary | |
---|---|
void |
clean()
empty the list of files selected. |
java.util.TreeMap |
getFileNameMap()
get a Map of the selected files (the key is the file name, the data is the file type) |
void |
parseFiles(java.lang.String fileList)
parse the list of filename from the given string. |
boolean |
remove(java.io.File file)
Removes a file from SelectedFiles. |
java.util.TreeMap |
setFileNameMap(java.util.TreeMap map)
set the list of selected fiels using a map. |
java.lang.String |
toString()
print a list of selectedFileMap contents: Name, |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SelectedFiles()
Method Detail |
---|
public void parseFiles(java.lang.String fileList)
fileList
- the list of file namespublic boolean remove(java.io.File file) throws java.lang.Exception
file
- File
java.lang.Exception
public java.util.TreeMap getFileNameMap()
public java.util.TreeMap setFileNameMap(java.util.TreeMap map)
map
- list of files as a map
public java.lang.String toString()
toString
in class java.lang.Object
public void clean()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |