Autopsy  4.16.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.datasourcesummary.uiutils.AbstractLoadableComponent< T > Class Template Referenceabstract

Inherits JPanel, and org.sleuthkit.autopsy.datasourcesummary.uiutils.LoadableComponent< T >.

Inherited by org.sleuthkit.autopsy.datasourcesummary.ui.TypesPanel.LoadableLabel.

Public Member Functions

void showDataFetchResult (DataFetchResult< T > result, String errorMessage, String noResultsMessage)
 
void showDataFetchResult (DataFetchResult< T > result)
 
void showDefaultLoadingMessage ()
 
synchronized void showMessage (String message)
 
synchronized void showResults (T data)
 

Static Public Member Functions

static String getDefaultErrorMessage ()
 
static String getDefaultNoResultsMessage ()
 

Static Public Attributes

static final String DEFAULT_ERROR_MESSAGE = Bundle.AbstractLoadableComponent_errorMessage_defaultText()
 
static final String DEFAULT_LOADING_MESSAGE = Bundle.AbstractLoadableComponent_loadingMessage_defaultText()
 
static final String DEFAULT_NO_RESULTS_MESSAGE = Bundle.AbstractLoadableComponent_noDataExists_defaultText()
 

Protected Member Functions

abstract void setMessage (boolean visible, String message)
 
abstract void setResults (T data)
 

Static Private Attributes

static final Logger logger = Logger.getLogger(AbstractLoadableComponent.class.getName())
 
static final long serialVersionUID = 1L
 

Detailed Description

Abstract class for common methods of a loadable component.

Definition at line 34 of file AbstractLoadableComponent.java.

Member Function Documentation

static String org.sleuthkit.autopsy.datasourcesummary.uiutils.AbstractLoadableComponent< T >.getDefaultErrorMessage ( )
static
Returns
The default error message.

Definition at line 58 of file AbstractLoadableComponent.java.

static String org.sleuthkit.autopsy.datasourcesummary.uiutils.AbstractLoadableComponent< T >.getDefaultNoResultsMessage ( )
static
Returns
The default message for no results.

Definition at line 65 of file AbstractLoadableComponent.java.

abstract void org.sleuthkit.autopsy.datasourcesummary.uiutils.AbstractLoadableComponent< T >.setMessage ( boolean  visible,
String  message 
)
abstractprotected

Sets the message and visibility of the message. Repaint does not need to be handled in this method.

Parameters
visibleThe visibility of the message.
messageThe message to be displayed if visible.
abstract void org.sleuthkit.autopsy.datasourcesummary.uiutils.AbstractLoadableComponent< T >.setResults ( data)
abstractprotected

Sets the data to be shown in the JTable. Repaint does not need to be handled in this method.

Parameters
dataThe list of data objects to be shown.
void org.sleuthkit.autopsy.datasourcesummary.uiutils.AbstractLoadableComponent< T >.showDataFetchResult ( DataFetchResult< T >  result,
String  errorMessage,
String  noResultsMessage 
)

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.

Parameters
resultThe DataFetchResult.
errorMessageThe error message to be shown in the event of an error.
noResultsMessageThe message to be shown if there are no results but the operation completed successfully.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.LoadableComponent< T >.

Definition at line 114 of file AbstractLoadableComponent.java.

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.

Parameters
resultThe DataFetchResult.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.LoadableComponent< T >.

Definition at line 150 of file AbstractLoadableComponent.java.

Shows a default loading message on the table. This will clear any results in the table.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.LoadableComponent< T >.

Definition at line 85 of file AbstractLoadableComponent.java.

synchronized void org.sleuthkit.autopsy.datasourcesummary.uiutils.AbstractLoadableComponent< T >.showMessage ( String  message)

Clears the results from the underlying JTable and shows the provided message.

Parameters
messageThe message to be shown.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.LoadableComponent< T >.

Definition at line 75 of file AbstractLoadableComponent.java.

synchronized void org.sleuthkit.autopsy.datasourcesummary.uiutils.AbstractLoadableComponent< T >.showResults ( data)

Shows the list as rows of data in the table. If overlay message will be cleared if present.

Parameters
dataThe data to be shown where each item represents a row of data.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.LoadableComponent< T >.

Definition at line 96 of file AbstractLoadableComponent.java.

Member Data Documentation

final String org.sleuthkit.autopsy.datasourcesummary.uiutils.AbstractLoadableComponent< T >.DEFAULT_ERROR_MESSAGE = Bundle.AbstractLoadableComponent_errorMessage_defaultText()
static

The default error message.

Definition at line 46 of file AbstractLoadableComponent.java.

final String org.sleuthkit.autopsy.datasourcesummary.uiutils.AbstractLoadableComponent< T >.DEFAULT_LOADING_MESSAGE = Bundle.AbstractLoadableComponent_loadingMessage_defaultText()
static

The default loading message.

Definition at line 41 of file AbstractLoadableComponent.java.

final String org.sleuthkit.autopsy.datasourcesummary.uiutils.AbstractLoadableComponent< T >.DEFAULT_NO_RESULTS_MESSAGE = Bundle.AbstractLoadableComponent_noDataExists_defaultText()
static

The default 'no results' message.

Definition at line 51 of file AbstractLoadableComponent.java.

final Logger org.sleuthkit.autopsy.datasourcesummary.uiutils.AbstractLoadableComponent< T >.logger = Logger.getLogger(AbstractLoadableComponent.class.getName())
staticprivate

Definition at line 53 of file AbstractLoadableComponent.java.

final long org.sleuthkit.autopsy.datasourcesummary.uiutils.AbstractLoadableComponent< T >.serialVersionUID = 1L
staticprivate

Definition at line 36 of file AbstractLoadableComponent.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2020 Basis Technology. Generated on: Tue Sep 22 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.