Autopsy  4.16.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T > Class Template Reference

Inherits JPanel.

Classes

class  ObjectCheckBox
 

Public Member Functions

 CheckBoxListPanel ()
 
void addElement (String displayName, Icon icon, T obj)
 
void clearList ()
 
List< T > getSelectedElements ()
 
boolean isEmpty ()
 
void setEnabled (boolean enabled)
 
void setPanelTitle (String title)
 
void setPanelTitleIcon (Icon icon)
 
void setSetAllSelected (boolean selected)
 

Private Member Functions

void checkButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void initComponents ()
 
void uncheckButtonActionPerformed (java.awt.event.ActionEvent evt)
 

Private Attributes

final CheckBoxJList< ObjectCheckBox< T > > checkboxList
 
javax.swing.JButton checkButton
 
final DefaultListModel< ObjectCheckBox< T > > model = new DefaultListModel<>()
 
javax.swing.JScrollPane scrollPane
 
javax.swing.JLabel titleLabel
 
javax.swing.JButton uncheckButton
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

A panel for showing any object in a check box list.

Definition at line 31 of file CheckBoxListPanel.java.

Constructor & Destructor Documentation

Creates new CheckboxFilterPanel

Definition at line 41 of file CheckBoxListPanel.java.

Member Function Documentation

void org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.addElement ( String  displayName,
Icon  icon,
obj 
)

Add a new element to the check box list.

Parameters
displayNamedisplay name for the checkbox
icon
objObject that the checkbox represents

Definition at line 56 of file CheckBoxListPanel.java.

Referenced by org.sleuthkit.autopsy.report.infrastructure.ReportWizardDataSourceSelectionPanel.getComponent().

void org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.checkButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Remove all objects from the checkbox list.

Definition at line 67 of file CheckBoxListPanel.java.

List<T> org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.getSelectedElements ( )
void org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.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 143 of file CheckBoxListPanel.java.

Referenced by org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< Long >.CheckBoxListPanel().

Definition at line 71 of file CheckBoxListPanel.java.

void org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.setEnabled ( boolean  enabled)

Definition at line 76 of file CheckBoxListPanel.java.

void org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.setPanelTitle ( String  title)

Sets the panel title.

Parameters
titlePanel title or null for no title.

Definition at line 123 of file CheckBoxListPanel.java.

void org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.setPanelTitleIcon ( Icon  icon)

Sets the panel title icon.

Parameters
iconIcon to set or null for no icon

Definition at line 132 of file CheckBoxListPanel.java.

void org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.setSetAllSelected ( boolean  selected)

Sets the selection state of the all the check boxes in the list.

Parameters
selectedTrue to check the boxes, false to unchecked

Definition at line 107 of file CheckBoxListPanel.java.

Referenced by org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< Long >.checkButtonActionPerformed(), and org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< Long >.uncheckButtonActionPerformed().

void org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.uncheckButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Member Data Documentation

final CheckBoxJList<ObjectCheckBox<T> > org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.checkboxList
private

Definition at line 36 of file CheckBoxListPanel.java.

javax.swing.JButton org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.checkButton
private
final DefaultListModel<ObjectCheckBox<T> > org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.model = new DefaultListModel<>()
private

Definition at line 35 of file CheckBoxListPanel.java.

javax.swing.JScrollPane org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.scrollPane
private
final long org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.serialVersionUID = 1L
staticprivate

Definition at line 33 of file CheckBoxListPanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.titleLabel
private
javax.swing.JButton org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.uncheckButton
private

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.