org.rhq.enterprise.gui.configuration.resource
Class FileUploadComponent

java.lang.Object
  extended by org.rhq.enterprise.gui.configuration.resource.FileUploadComponent

@Name(value="fileUploader")
@Scope(value=PAGE)
public class FileUploadComponent
extends Object

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

FileUploadComponent

public FileUploadComponent()
Method Detail

getUploadItem

public org.richfaces.model.UploadItem getUploadItem()

setUploadItem

public void setUploadItem(org.richfaces.model.UploadItem uploadItem)

listener

public void listener(org.richfaces.event.UploadEvent event)
              throws Exception
This is the upload listener that handles consuming the uploaded file.

Parameters:
event -
Throws:
Exception

clear

public void clear()

completeUpload

public void completeUpload()
Invoked when the upload has completed and updates selectedRawUIBean with the contents of the uploaded file.



Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.