Autopsy  4.18.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 addListSelectionListener (ListSelectionListener listener)
 
void clearList ()
 
List< T > getSelectedElements ()
 
boolean isEmpty ()
 
void setEnabled (boolean enabled)
 
void setPanelTitle (String title)
 
void setPanelTitleIcon (Icon icon)
 
void setSelectedElements (List< T > selected)
 
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 36 of file CheckBoxListPanel.java.

Constructor & Destructor Documentation

Creates new CheckboxFilterPanel

Definition at line 46 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 61 of file CheckBoxListPanel.java.

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

void org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.addListSelectionListener ( ListSelectionListener  listener)

Add a list selection listener to the checkbox list contained in this panel.

Parameters
listenerThe list selection listener to add.

Definition at line 167 of file CheckBoxListPanel.java.

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

Remove all objects from the checkbox list.

Definition at line 72 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 178 of file CheckBoxListPanel.java.

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

Definition at line 76 of file CheckBoxListPanel.java.

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

Definition at line 81 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 148 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 157 of file CheckBoxListPanel.java.

void org.sleuthkit.autopsy.guiutils.CheckBoxListPanel< T >.setSelectedElements ( List< T >  selected)

Sets the selected items within the checkbox list panel.

Parameters
selectedThe items that should be selected. If the checkbox data is present in this list, it will be selected, otherwise it will be deselected.

Definition at line 114 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 133 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 41 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 40 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 38 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-2021 Basis Technology. Generated on: Thu Jul 8 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.