|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.gui.configuration.resource.FileUploadComponent
@Name(value="fileUploader") @Scope(value=PAGE) public class FileUploadComponent
A Seam component that handles file uploads for RichFace's file upload component. This class is a thin wrapper around
FileUploadUIBean which is not a Seam component.
Currently this class is tightly coupled to RawConfigUIBean
which is specific to the raw config editor; however, this class can/should/will be generalized to support any file
upload which is implemented using RichFaces and Seam together.
| Constructor Summary | |
|---|---|
FileUploadComponent()
|
|
| Method Summary | |
|---|---|
void |
clear()
|
void |
completeUpload()
Invoked when the upload has completed and updates selectedRawUIBean with the contents of the uploaded
file. |
org.richfaces.model.UploadItem |
getUploadItem()
|
void |
listener(org.richfaces.event.UploadEvent event)
This is the upload listener that handles consuming the uploaded file. |
void |
setUploadItem(org.richfaces.model.UploadItem uploadItem)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUploadComponent()
| Method Detail |
|---|
public org.richfaces.model.UploadItem getUploadItem()
public void setUploadItem(org.richfaces.model.UploadItem uploadItem)
public void listener(org.richfaces.event.UploadEvent event)
throws Exception
event -
Exceptionpublic void clear()
public void completeUpload()
selectedRawUIBean with the contents of the uploaded
file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||