Interface ClientFileListener
- All Superinterfaces:
ClientEventListener,EventListener
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 Summary
Modifier and TypeMethodDescriptionvoidonEvent(ClientFileSelectEvent event) Invoked when a file selection event occurs.voidonEvent(ClientFileUploadEvent event) Invoked when a file upload event occurs.
-
Method Details
-
onEvent
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
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
-