25 package org.sleuthkit.autopsy.filesearch;
27 import javax.swing.JCheckBox;
33 class KnownStatusSearchPanel
extends javax.swing.JPanel {
36 KnownStatusSearchPanel() {
40 JCheckBox getKnownCheckBox() {
44 JCheckBox getKnownBadOptionCheckBox() {
45 return knownBadOptionCheckBox;
48 JCheckBox getKnownOptionCheckBox() {
49 return knownOptionCheckBox;
52 JCheckBox getUnknownOptionCheckBox() {
53 return unknownOptionCheckBox;
61 @SuppressWarnings(
"unchecked")
63 private
void initComponents() {
65 knownCheckBox =
new javax.swing.JCheckBox();
66 unknownOptionCheckBox =
new javax.swing.JCheckBox();
67 knownOptionCheckBox =
new javax.swing.JCheckBox();
68 knownBadOptionCheckBox =
new javax.swing.JCheckBox();
70 knownCheckBox.setText(
org.openide.util.NbBundle.getMessage(KnownStatusSearchPanel.class,
"KnownStatusSearchPanel.knownCheckBox.text"));
72 unknownOptionCheckBox.setSelected(
true);
73 unknownOptionCheckBox.setText(
org.openide.util.NbBundle.getMessage(KnownStatusSearchPanel.class,
"KnownStatusSearchPanel.unknownOptionCheckBox.text"));
75 knownOptionCheckBox.setSelected(
true);
76 knownOptionCheckBox.setText(
org.openide.util.NbBundle.getMessage(KnownStatusSearchPanel.class,
"KnownStatusSearchPanel.knownOptionCheckBox.text"));
77 knownOptionCheckBox.addActionListener(
new java.awt.event.ActionListener() {
78 public void actionPerformed(java.awt.event.ActionEvent evt) {
79 knownOptionCheckBoxActionPerformed(evt);
83 knownBadOptionCheckBox.setSelected(
true);
84 knownBadOptionCheckBox.setText(
org.openide.util.NbBundle.getMessage(KnownStatusSearchPanel.class,
"KnownStatusSearchPanel.knownBadOptionCheckBox.text"));
86 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
87 this.setLayout(layout);
88 layout.setHorizontalGroup(
89 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
90 .addComponent(knownCheckBox)
91 .addGroup(layout.createSequentialGroup()
93 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
94 .addComponent(knownBadOptionCheckBox)
95 .addComponent(unknownOptionCheckBox)
96 .addComponent(knownOptionCheckBox)))
98 layout.setVerticalGroup(
99 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
100 .addGroup(layout.createSequentialGroup()
101 .addComponent(knownCheckBox)
102 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
103 .addComponent(unknownOptionCheckBox)
104 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
105 .addComponent(knownOptionCheckBox)
106 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
107 .addComponent(knownBadOptionCheckBox))
111 private void knownOptionCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {
116 private javax.swing.JCheckBox knownBadOptionCheckBox;
117 private javax.swing.JCheckBox knownCheckBox;
118 private javax.swing.JCheckBox knownOptionCheckBox;
119 private javax.swing.JCheckBox unknownOptionCheckBox;