2197-Empty ProfileSettingsPanel added for 3rd tab

This commit is contained in:
William Schaefer
2017-01-11 14:39:10 -05:00
parent f052539e21
commit decccc38f6
3 changed files with 96 additions and 1 deletions
@@ -30,6 +30,7 @@ class IngestOptionsPanel extends IngestModuleGlobalSettingsPanel implements Opti
private FilesSetDefsPanel filterPanel;
private IngestSettingsPanel settingsPanel;
private ProfileSettingsPanel profilePanel;
IngestOptionsPanel() {
@@ -41,10 +42,13 @@ class IngestOptionsPanel extends IngestModuleGlobalSettingsPanel implements Opti
setName("Temporary Name");
filterPanel = new FilesSetDefsPanel(PANEL_TYPE.FILE_INGEST_FILTERS);
settingsPanel = new IngestSettingsPanel();
profilePanel = new ProfileSettingsPanel();
tabbedPane.insertTab("Settings", null,
settingsPanel, "Tootip 1", 0);
tabbedPane.insertTab("Filters", null,
tabbedPane.insertTab("File Filters", null,
filterPanel, "Tooltip 2", 1);
tabbedPane.insertTab("Profiles", null,
profilePanel, "Tooltip 3", 2);
}
@@ -52,18 +56,21 @@ class IngestOptionsPanel extends IngestModuleGlobalSettingsPanel implements Opti
public void addPropertyChangeListener(PropertyChangeListener l) {
filterPanel.addPropertyChangeListener(l);
settingsPanel.addPropertyChangeListener(l);
profilePanel.addPropertyChangeListener(l);
}
@Override
public void removePropertyChangeListener(PropertyChangeListener l) {
filterPanel.removePropertyChangeListener(l);
settingsPanel.removePropertyChangeListener(l);
profilePanel.removePropertyChangeListener(l);
}
@Override
public void saveSettings() {
filterPanel.store();
settingsPanel.store();
profilePanel.store();
}
@Override
@@ -75,6 +82,7 @@ class IngestOptionsPanel extends IngestModuleGlobalSettingsPanel implements Opti
public void load() {
filterPanel.load();
settingsPanel.load();
profilePanel.load();
}
boolean valid() {
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="400" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="300" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
</Form>
@@ -0,0 +1,59 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.sleuthkit.autopsy.ingest;
import org.sleuthkit.autopsy.corecomponents.OptionsPanel;
public class ProfileSettingsPanel extends IngestModuleGlobalSettingsPanel implements OptionsPanel {
/**
* Creates new form ProfileOptionsPanel
*/
public ProfileSettingsPanel() {
initComponents();
}
/**
* 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.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 400, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 300, Short.MAX_VALUE)
);
}// </editor-fold>//GEN-END:initComponents
@Override
public void saveSettings() {
}
@Override
public void store() {
}
@Override
public void load() {
}
// Variables declaration - do not modify//GEN-BEGIN:variables
// End of variables declaration//GEN-END:variables
}