Class ClientFileUploadEvent


public class ClientFileUploadEvent extends ClientFileEvent
Event fired when one or more files have been uploaded from the client to the server.

This event provides access to the uploaded files as ClientFile objects, which contain the file data, name, size, and content type.

  • Constructor Details

    • ClientFileUploadEvent

      public ClientFileUploadEvent(Integer id, List<ClientFile> files)
      Creates a ClientFileUploadEvent with the specified upload ID and files.
      Parameters:
      id - the upload request identifier
      files - the list of uploaded files
  • Method Details

    • getId

      public int getId()
      Returns the upload request identifier.
      Returns:
      the upload ID
    • getFiles

      public ArrayList<ClientFile> getFiles()
      Returns the list of uploaded files.
      Returns:
      the uploaded files
    • dispatchTo

      public void dispatchTo(ClientFileListener listener)
      Dispatches this event to the specified listener.

      Subclasses implement this method to call the appropriate handler method on the listener interface.

      Specified by:
      dispatchTo in class Event<ClientFileListener>
      Parameters:
      listener - the listener to dispatch this event to