25 package org.sleuthkit.autopsy.filesearch;
27 import javax.swing.JCheckBox;
33 class KnownStatusSearchPanel
extends javax.swing.JPanel {
38 KnownStatusSearchPanel() {
42 JCheckBox getKnownCheckBox() {
46 JCheckBox getKnownBadOptionCheckBox() {
47 return knownBadOptionCheckBox;
50 JCheckBox getKnownOptionCheckBox() {
51 return knownOptionCheckBox;
54 JCheckBox getUnknownOptionCheckBox() {
55 return unknownOptionCheckBox;
63 @SuppressWarnings(
"unchecked")
65 private
void initComponents() {
67 knownCheckBox =
new javax.swing.JCheckBox();
68 unknownOptionCheckBox =
new javax.swing.JCheckBox();
69 knownOptionCheckBox =
new javax.swing.JCheckBox();
70 knownBadOptionCheckBox =
new javax.swing.JCheckBox();
72 knownCheckBox.setText(
org.openide.util.NbBundle.getMessage(KnownStatusSearchPanel.class,
"KnownStatusSearchPanel.knownCheckBox.text"));
74 unknownOptionCheckBox.setSelected(
true);
75 unknownOptionCheckBox.setText(
org.openide.util.NbBundle.getMessage(KnownStatusSearchPanel.class,
"KnownStatusSearchPanel.unknownOptionCheckBox.text"));
77 knownOptionCheckBox.setSelected(
true);
78 knownOptionCheckBox.setText(
org.openide.util.NbBundle.getMessage(KnownStatusSearchPanel.class,
"KnownStatusSearchPanel.knownOptionCheckBox.text"));
79 knownOptionCheckBox.addActionListener(
new java.awt.event.ActionListener() {
80 public void actionPerformed(java.awt.event.ActionEvent evt) {
81 knownOptionCheckBoxActionPerformed(evt);
85 knownBadOptionCheckBox.setSelected(
true);
86 knownBadOptionCheckBox.setText(
org.openide.util.NbBundle.getMessage(KnownStatusSearchPanel.class,
"KnownStatusSearchPanel.knownBadOptionCheckBox.text"));
88 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
89 this.setLayout(layout);
90 layout.setHorizontalGroup(
91 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
92 .addGroup(layout.createSequentialGroup()
93 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
94 .addComponent(knownCheckBox)
95 .addGroup(layout.createSequentialGroup()
97 .addComponent(unknownOptionCheckBox)
98 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
99 .addComponent(knownOptionCheckBox)
100 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
101 .addComponent(knownBadOptionCheckBox)))
102 .addContainerGap(28, Short.MAX_VALUE))
104 layout.setVerticalGroup(
105 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
106 .addGroup(layout.createSequentialGroup()
107 .addComponent(knownCheckBox)
108 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
109 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
110 .addComponent(unknownOptionCheckBox)
111 .addComponent(knownOptionCheckBox)
112 .addComponent(knownBadOptionCheckBox)))
116 private void knownOptionCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {
121 private javax.swing.JCheckBox knownBadOptionCheckBox;
122 private javax.swing.JCheckBox knownCheckBox;
123 private javax.swing.JCheckBox knownOptionCheckBox;
124 private javax.swing.JCheckBox unknownOptionCheckBox;