Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.contentviewers.HtmlPanel Class Reference

Inherits JPanel.

Public Member Functions

 HtmlPanel ()
 
void reset ()
 
void setHtmlText (String htmlText)
 

Private Member Functions

String cleanseHTML (String htmlInString)
 
void disableHyperLinks ()
 
void initComponents ()
 
void refresh ()
 
void showImagesToggleButtonActionPerformed (java.awt.event.ActionEvent evt)
 

Private Attributes

javax.swing.JPanel htmlJPanel
 
String htmlText
 
final JFXPanel jfxPanel = new JFXPanel()
 
javax.swing.JToggleButton showImagesToggleButton
 
WebView webView
 

Static Private Attributes

static final Logger logger = Logger.getLogger(HtmlPanel.class.getName())
 
static final long serialVersionUID = 1L
 
static final String TEXT_TYPE = "text/plain"
 

Detailed Description

A file content viewer for HTML files.

Definition at line 45 of file HtmlPanel.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.contentviewers.HtmlPanel.HtmlPanel ( )

Creates new form HtmlViewerPanel

Definition at line 57 of file HtmlPanel.java.

Member Function Documentation

String org.sleuthkit.autopsy.contentviewers.HtmlPanel.cleanseHTML ( String  htmlInString)
private

Cleans out input HTML string so it will not access resources over the internet

Parameters
htmlInStringThe HTML string to cleanse
Returns
The cleansed HTML String

Definition at line 108 of file HtmlPanel.java.

void org.sleuthkit.autopsy.contentviewers.HtmlPanel.disableHyperLinks ( )
private

Disable the click events on hyper links so that new pages can not be opened.

Definition at line 244 of file HtmlPanel.java.

void org.sleuthkit.autopsy.contentviewers.HtmlPanel.initComponents ( )
private

This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.

Definition at line 204 of file HtmlPanel.java.

void org.sleuthkit.autopsy.contentviewers.HtmlPanel.refresh ( )
private

Refresh the panel to reflect the current show/hide images setting.

Definition at line 174 of file HtmlPanel.java.

void org.sleuthkit.autopsy.contentviewers.HtmlPanel.reset ( )

Clear the HTML in the text pane and disable the show/hide button.

Definition at line 94 of file HtmlPanel.java.

void org.sleuthkit.autopsy.contentviewers.HtmlPanel.setHtmlText ( String  htmlText)

Set the text pane's HTML text and refresh the view to display it.

Parameters
htmlTextThe HTML text to be applied to the text pane.

Definition at line 86 of file HtmlPanel.java.

void org.sleuthkit.autopsy.contentviewers.HtmlPanel.showImagesToggleButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 236 of file HtmlPanel.java.

Member Data Documentation

javax.swing.JPanel org.sleuthkit.autopsy.contentviewers.HtmlPanel.htmlJPanel
private

Definition at line 260 of file HtmlPanel.java.

String org.sleuthkit.autopsy.contentviewers.HtmlPanel.htmlText
private

Definition at line 52 of file HtmlPanel.java.

final JFXPanel org.sleuthkit.autopsy.contentviewers.HtmlPanel.jfxPanel = new JFXPanel()
private

Definition at line 50 of file HtmlPanel.java.

final Logger org.sleuthkit.autopsy.contentviewers.HtmlPanel.logger = Logger.getLogger(HtmlPanel.class.getName())
staticprivate

Definition at line 47 of file HtmlPanel.java.

final long org.sleuthkit.autopsy.contentviewers.HtmlPanel.serialVersionUID = 1L
staticprivate

Definition at line 48 of file HtmlPanel.java.

javax.swing.JToggleButton org.sleuthkit.autopsy.contentviewers.HtmlPanel.showImagesToggleButton
private

Definition at line 261 of file HtmlPanel.java.

final String org.sleuthkit.autopsy.contentviewers.HtmlPanel.TEXT_TYPE = "text/plain"
staticprivate

Definition at line 49 of file HtmlPanel.java.

WebView org.sleuthkit.autopsy.contentviewers.HtmlPanel.webView
private

Definition at line 51 of file HtmlPanel.java.


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

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