mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
2451-Title of Data Source choosing panel updated and spacer added
This commit is contained in:
parent
e2528937c3
commit
9ef1a9a06a
@ -38,7 +38,7 @@ import org.sleuthkit.autopsy.ingest.runIngestModuleWizard.ShortcutWizardDescript
|
||||
*/
|
||||
final class AddImageWizardSelectDspPanel extends ShortcutWizardDescriptorPanel implements PropertyChangeListener {
|
||||
|
||||
@NbBundle.Messages("SelectDataSourceProcessorPanel.name.text=Select Type of Data")
|
||||
@NbBundle.Messages("SelectDataSourceProcessorPanel.name.text=Select Type of Data Source To Add")
|
||||
private AddImageWizardSelectDspVisual component;
|
||||
private static final String LAST_DSP_PROPERTIES_FILE = "LastDspUsed"; //NON-NLS
|
||||
private static final String LAST_DSP_USED_KEY = "Last_Dsp_Used"; //NON-NLS
|
||||
|
@ -42,7 +42,8 @@ import org.sleuthkit.autopsy.datasourceprocessors.RawDSProcessor;
|
||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||
|
||||
/**
|
||||
* Panel which displays the available DataSourceProcessors and allows selection of one
|
||||
* Panel which displays the available DataSourceProcessors and allows selection
|
||||
* of one
|
||||
*/
|
||||
final class AddImageWizardSelectDspVisual extends JPanel {
|
||||
|
||||
@ -79,14 +80,16 @@ final class AddImageWizardSelectDspVisual extends JPanel {
|
||||
/**
|
||||
* Get the DataSourceProcessor which is currently selected in this panel
|
||||
*
|
||||
* @return selectedDsp the DataSourceProcessor which is selected in this panel
|
||||
* @return selectedDsp the DataSourceProcessor which is selected in this
|
||||
* panel
|
||||
*/
|
||||
String getSelectedDsp() {
|
||||
return selectedDsp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the a button for each DataSourceProcessor that should exist as an option.
|
||||
* Create the a button for each DataSourceProcessor that should exist as an
|
||||
* option.
|
||||
*/
|
||||
private void createDataSourceProcessorButtons() {
|
||||
//Listener for button selection
|
||||
@ -121,6 +124,11 @@ final class AddImageWizardSelectDspVisual extends JPanel {
|
||||
buttonGroup1.add(dspButton);
|
||||
gridBagLayout.setConstraints(dspButton, constraints);
|
||||
constraints.gridx++;
|
||||
//Add space between the button and text
|
||||
Filler buttonTextSpacer = new Filler(spacerBlockDimension, spacerBlockDimension, spacerBlockDimension);
|
||||
gridBagLayout.setConstraints(buttonTextSpacer, constraints);
|
||||
jPanel1.add(buttonTextSpacer);
|
||||
constraints.gridx++;
|
||||
//Add the text area serving as a label to the right of the button
|
||||
JTextArea myLabel = new JTextArea(dspType);
|
||||
myLabel.setBackground(new Color(240, 240, 240));//matches background of panel
|
||||
@ -143,11 +151,12 @@ final class AddImageWizardSelectDspVisual extends JPanel {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a list of the DataSourceProcessors which should exist as options on this panel.
|
||||
* The default Autopsy DataSourceProcessors will appear
|
||||
* at the beggining of the list in the same order.
|
||||
* Create a list of the DataSourceProcessors which should exist as options
|
||||
* on this panel. The default Autopsy DataSourceProcessors will appear at
|
||||
* the beggining of the list in the same order.
|
||||
*
|
||||
* @return dspList a list of DataSourceProcessors which can be chose in this panel
|
||||
* @return dspList a list of DataSourceProcessors which can be chose in this
|
||||
* panel
|
||||
*/
|
||||
private List<String> getListOfDsps() {
|
||||
List<String> dspList = new ArrayList<>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user