19 package org.sleuthkit.autopsy.modules.interestingitems;
21 import org.openide.DialogDisplayer;
22 import org.openide.NotifyDescriptor;
23 import org.openide.util.NbBundle;
57 boolean isValidDefinition() {
59 NotifyDescriptor notifyDesc =
new NotifyDescriptor.Message(
60 NbBundle.getMessage(
FilesSetPanel.class,
"FilesSetPanel.messages.filesSetsMustBeNamed"),
61 NotifyDescriptor.WARNING_MESSAGE);
62 DialogDisplayer.getDefault().notify(notifyDesc);
73 String getFilesSetName() {
83 String getFilesSetDescription() {
93 boolean getFileSetIgnoresKnownFiles() {
102 @SuppressWarnings(
"unchecked")
113 org.openide.awt.Mnemonics.setLocalizedText(
nameLabel,
org.openide.util.NbBundle.getMessage(
FilesSetPanel.class,
"FilesSetPanel.nameLabel.text"));
115 descPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
FilesSetPanel.class,
"FilesSetPanel.descPanel.border.title")));
121 javax.swing.GroupLayout descPanelLayout =
new javax.swing.GroupLayout(
descPanel);
123 descPanelLayout.setHorizontalGroup(
124 descPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
125 .addGroup(descPanelLayout.createSequentialGroup()
130 descPanelLayout.setVerticalGroup(
131 descPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
132 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, descPanelLayout.createSequentialGroup()
133 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
134 .addComponent(
descScrollPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
140 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
141 this.setLayout(layout);
142 layout.setHorizontalGroup(
143 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
144 .addGroup(layout.createSequentialGroup()
146 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
147 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
148 .addComponent(
nameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)
149 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
150 .addComponent(
nameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 299, javax.swing.GroupLayout.PREFERRED_SIZE))
151 .addComponent(
descPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
152 .addComponent(
ignoreKnownFilesCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
155 layout.setVerticalGroup(
156 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
157 .addGroup(layout.createSequentialGroup()
159 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
161 .addComponent(
nameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
162 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
163 .addComponent(
descPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
164 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
javax.swing.JPanel descPanel
javax.swing.JLabel nameLabel
javax.swing.JTextArea descTextArea
javax.swing.JTextField nameTextField
javax.swing.JCheckBox ignoreKnownFilesCheckbox
javax.swing.JScrollPane descScrollPanel