19 package org.sleuthkit.autopsy.ingest;
21 import java.awt.EventQueue;
22 import java.beans.PropertyChangeEvent;
23 import java.beans.PropertyChangeListener;
24 import javax.swing.JTabbedPane;
25 import javax.swing.event.ChangeEvent;
26 import javax.swing.event.ChangeListener;
27 import org.openide.util.NbBundle;
37 @NbBundle.Messages({
"IngestOptionsPanel.settingsTab.text=Settings",
38 "IngestOptionsPanel.settingsTab.toolTipText=Settings regarding resources available to ingest.",
39 "IngestOptionsPanel.fileFiltersTab.text=File Filters",
40 "IngestOptionsPanel.fileFiltersTab.toolTipText=Settings for creating and editing ingest file filters.",
41 "IngestOptionsPanel.profilesTab.text=Profiles",
42 "IngestOptionsPanel.profilesTab.toolTipText=Settings for creating and editing profiles."})
62 indexOfPreviousTab =
tabbedPane.getSelectedIndex();
67 settingsPanel =
new IngestSettingsPanel();
68 profilePanel =
new ProfileSettingsPanel();
79 tabbedPane.addChangeListener(
new ChangeListener() {
81 public void stateChanged(ChangeEvent e) {
82 if (e.getSource() instanceof JTabbedPane) {
92 indexOfPreviousTab =
tabbedPane.getSelectedIndex();
119 EventQueue.invokeLater(
new Runnable() {
135 settingsPanel.enableButtons(!ingestIsRunning);
136 profilePanel.enableButtons(!ingestIsRunning);
143 super.addPropertyChangeListener(l);
166 if (null != settingsPanel) {
167 settingsPanel.addPropertyChangeListener(l);
169 if (null != profilePanel) {
170 profilePanel.addPropertyChangeListener(l);
177 settingsPanel.removePropertyChangeListener(l);
178 profilePanel.removePropertyChangeListener(l);
195 case (INDEX_OF_FILTER_PANEL):
198 case (INDEX_OF_PROFILE_PANEL):
199 profilePanel.saveSettings();
201 case (INDEX_OF_SETTINGS_PANEL):
202 settingsPanel.saveSettings();
217 settingsPanel.load();
242 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
243 this.setLayout(layout);
244 layout.setHorizontalGroup(
245 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
246 .addGroup(layout.createSequentialGroup()
247 .addComponent(
tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 824, Short.MAX_VALUE)
250 layout.setVerticalGroup(
251 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
252 .addGroup(layout.createSequentialGroup()
253 .addComponent(
tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 543, Short.MAX_VALUE)
ProfileSettingsPanel profilePanel
static synchronized IngestManager getInstance()
void addPropertyChangeListener(PropertyChangeListener l)
void propertyChange(PropertyChangeEvent evt)
boolean isIngestRunning()
FilesSetDefsPanel filterPanel
void addIngestJobEventsListener()
IngestSettingsPanel settingsPanel
void addIngestJobEventListener(final PropertyChangeListener listener)
void customizeComponents()
static final int INDEX_OF_PROFILE_PANEL
static final int INDEX_OF_FILTER_PANEL
static final int INDEX_OF_SETTINGS_PANEL
void enableButtons(boolean isEnabled)
void removePropertyChangeListener(PropertyChangeListener l)
void saveTabByIndex(int index)
javax.swing.JTabbedPane tabbedPane