Interface ClientFileListener

All Superinterfaces:
ClientEventListener, EventListener

public interface ClientFileListener extends ClientEventListener
Listener interface for handling client-side file-related events.

This interface defines callback methods for file selection and file upload events that originate from the client side. Implementations of this interface can respond to user file interactions such as selecting files through file input elements and completing file uploads.

Features:

  • Handles file selection events from file input controls
  • Processes file upload completion events
  • Provides type-safe event handling through method overloading
  • Integrates with the Oorian client event system

Usage: Implement this interface to create handlers that respond to file-related user interactions. Register the listener with appropriate UI components that support file operations.


 public class MyFileHandler implements ClientFileListener {
     @Override
     public void onEvent(ClientFileSelectEvent event) {
         // Handle file selection
         System.out.println("File selected: " + event.getFileName());
     }

     @Override
     public void onEvent(ClientFileUploadEvent event) {
         // Handle file upload completion
         System.out.println("File uploaded successfully");
     }
 }
 
Since:
2007
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Method Details

    • onEvent

      void onEvent(ClientFileSelectEvent event)
      Invoked when a file selection event occurs.

      This method is called when the user selects one or more files through a file input control. The event contains information about the selected file(s).

      Parameters:
      event - the file selection event containing details about the selected file(s)
    • onEvent

      void onEvent(ClientFileUploadEvent event)
      Invoked when a file upload event occurs.

      This method is called when a file upload operation completes. The event contains information about the uploaded file and the upload result.

      Parameters:
      event - the file upload event containing details about the uploaded file