mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
extracted interface
This commit is contained in:
parent
307a45f700
commit
674191d391
@ -0,0 +1,43 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.sleuthkit.autopsy.datasourcesummary.uiutils;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author gregd
|
||||
*/
|
||||
public interface DataFetchLoadableComponent<T> {
|
||||
void showMessage(String message);
|
||||
void showDefaultLoadingMessage();
|
||||
void showResults(List<T> data);
|
||||
|
||||
|
||||
/**
|
||||
* Shows the data in a DataFetchResult. If there was an error during the
|
||||
* operation, the errorMessage will be displayed. If the operation completed
|
||||
* successfully and no data is present, noResultsMessage will be shown.
|
||||
* Otherwise, the data will be shown as rows in the table.
|
||||
*
|
||||
* @param result The DataFetchResult.
|
||||
* @param errorMessage The error message to be shown in the event of an
|
||||
* error.
|
||||
* @param noResultsMessage The message to be shown if there are no results
|
||||
* but the operation completed successfully.
|
||||
*/
|
||||
void showDataFetchResult(DataFetchResult<List<T>> result, String errorMessage, String noResultsMessage);
|
||||
|
||||
/**
|
||||
* Shows the data in a DataFetchResult. If there was an error during the
|
||||
* operation, the DEFAULT_ERROR_MESSAGE will be displayed. If the operation
|
||||
* completed successfully and no data is present, DEFAULT_NO_RESULTS_MESSAGE
|
||||
* will be shown. Otherwise, the data will be shown as rows in the table.
|
||||
*
|
||||
* @param result The DataFetchResult.
|
||||
*/
|
||||
public void showDataFetchResult(DataFetchResult<List<T>> result);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user