19 package org.sleuthkit.autopsy.corecomponents;
21 import java.util.Objects;
22 import javax.swing.JPanel;
23 import org.netbeans.spi.options.OptionsPanelController;
115 @SuppressWarnings(
"unchecked")
152 public void actionPerformed(java.awt.event.ActionEvent evt) {
160 public void actionPerformed(java.awt.event.ActionEvent evt) {
169 public void actionPerformed(java.awt.event.ActionEvent evt) {
176 public void actionPerformed(java.awt.event.ActionEvent evt) {
185 public void actionPerformed(java.awt.event.ActionEvent evt) {
192 public void actionPerformed(java.awt.event.ActionEvent evt) {
201 public void actionPerformed(java.awt.event.ActionEvent evt) {
208 public void actionPerformed(java.awt.event.ActionEvent evt) {
215 public void actionPerformed(java.awt.event.ActionEvent evt) {
224 public void actionPerformed(java.awt.event.ActionEvent evt) {
231 javax.swing.GroupLayout globalSettingsPanelLayout =
new javax.swing.GroupLayout(
globalSettingsPanel);
233 globalSettingsPanelLayout.setHorizontalGroup(
234 globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
235 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
237 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
238 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
239 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
241 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
242 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
243 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
245 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
249 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
251 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
255 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
257 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
259 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
267 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
269 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
272 .addContainerGap(16, Short.MAX_VALUE))
274 globalSettingsPanelLayout.setVerticalGroup(
275 globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
276 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
277 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
278 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
279 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
281 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
283 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
285 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
287 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
289 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
291 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
293 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
295 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
297 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
299 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
301 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
303 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
305 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
307 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
309 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
317 public void actionPerformed(java.awt.event.ActionEvent evt) {
324 currentCaseSettingsPanelLayout.setHorizontalGroup(
325 currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
326 .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
329 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
331 currentCaseSettingsPanelLayout.setVerticalGroup(
332 currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
333 .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
334 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
342 public void actionPerformed(java.awt.event.ActionEvent evt) {
349 currentSessionSettingsPanelLayout.setHorizontalGroup(
350 currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
351 .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
354 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
356 currentSessionSettingsPanelLayout.setVerticalGroup(
357 currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
358 .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
359 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
363 javax.swing.GroupLayout viewPreferencesPanelLayout =
new javax.swing.GroupLayout(
viewPreferencesPanel);
365 viewPreferencesPanelLayout.setHorizontalGroup(
366 viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
367 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, viewPreferencesPanelLayout.createSequentialGroup()
369 .addGroup(viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
370 .addComponent(
currentSessionSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
371 .addComponent(
currentCaseSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
372 .addComponent(
globalSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
375 viewPreferencesPanelLayout.setVerticalGroup(
376 viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
377 .addGroup(viewPreferencesPanelLayout.createSequentialGroup()
378 .addComponent(
globalSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
379 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
380 .addComponent(
currentCaseSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
381 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
382 .addComponent(
currentSessionSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
383 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
388 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
389 this.setLayout(layout);
390 layout.setHorizontalGroup(
391 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
394 layout.setVerticalGroup(
395 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
403 if (immediateUpdates) {
406 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
413 if (immediateUpdates) {
416 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
423 if (immediateUpdates) {
426 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
433 if (immediateUpdates) {
436 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
441 if (immediateUpdates) {
444 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
449 if (immediateUpdates) {
452 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
457 if (immediateUpdates) {
460 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
465 if (immediateUpdates) {
468 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
473 if (immediateUpdates) {
476 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
481 if (immediateUpdates) {
484 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
489 if (immediateUpdates) {
492 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
497 if (immediateUpdates) {
500 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
javax.swing.JLabel hideKnownFilesLabel
javax.swing.JCheckBox dataSourcesHideKnownCheckbox
final boolean immediateUpdates
javax.swing.JCheckBox viewsHideKnownCheckbox
javax.swing.JPanel currentSessionSettingsPanel
static void setKeepPreferredContentViewer(boolean value)
javax.swing.JRadioButton useLocalTimeRadioButton
javax.swing.JCheckBox commentsOccurencesColumnsCheckbox
javax.swing.JLabel selectFileLabel
static boolean hideSlackFilesInDataSourcesTree()
void keepCurrentViewerRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
void commentsOccurencesColumnsCheckboxActionPerformed(java.awt.event.ActionEvent evt)
static void setDisplayTimesInLocalTime(boolean value)
static boolean useCentralRepo()
javax.swing.JCheckBox viewsHideSlackCheckbox
javax.swing.JPanel viewPreferencesPanel
void setShowRejectedResults(boolean showRejectedResults)
static void setHideSlackFilesInViewsTree(boolean value)
static boolean keepPreferredContentViewer()
static boolean hideKnownFilesInViewsTree()
void useLocalTimeRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JRadioButton useBestViewerRadioButton
void hideRejectedResultsCheckboxActionPerformed(java.awt.event.ActionEvent evt)
void dataSourcesHideKnownCheckboxActionPerformed(java.awt.event.ActionEvent evt)
static boolean showOnlyCurrentUserTags()
static synchronized DirectoryTreeTopComponent getDefault()
static void setHideKnownFilesInViewsTree(boolean value)
static void setGroupItemsInTreeByDataSource(boolean value)
javax.swing.JLabel displayTimeLabel
void groupByDataSourceCheckboxActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JPanel globalSettingsPanel
javax.swing.JLabel hideOtherUsersTagsLabel
javax.swing.JRadioButton useGMTTimeRadioButton
static void setHideCentralRepoCommentsAndOccurrences(boolean value)
javax.swing.JCheckBox dataSourcesHideSlackCheckbox
javax.swing.JRadioButton keepCurrentViewerRadioButton
static boolean hideSlackFilesInViewsTree()
javax.swing.JPanel currentCaseSettingsPanel
ViewPreferencesPanel(boolean immediateUpdates)
void hideOtherUsersTagsCheckboxActionPerformed(java.awt.event.ActionEvent evt)
static Boolean getGroupItemsInTreeByDataSource()
javax.swing.JCheckBox hideOtherUsersTagsCheckbox
static void setHideSlackFilesInDataSourcesTree(boolean value)
static void setHideKnownFilesInDataSourcesTree(boolean value)
void viewsHideKnownCheckboxActionPerformed(java.awt.event.ActionEvent evt)
void useBestViewerRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JCheckBox groupByDataSourceCheckbox
static boolean hideKnownFilesInDataSourcesTree()
javax.swing.JLabel hideSlackFilesLabel
boolean getShowRejectedResults()
static boolean hideCentralRepoCommentsAndOccurrences()
javax.swing.JCheckBox hideRejectedResultsCheckbox
static void setShowOnlyCurrentUserTags(boolean value)
javax.swing.JLabel centralRepoLabel
void dataSourcesHideSlackCheckboxActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JScrollPane viewPreferencesScrollPane
static boolean displayTimesInLocalTime()
static boolean isCaseOpen()
void storeGroupItemsInTreeByDataSource()
void useGMTTimeRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
void viewsHideSlackCheckboxActionPerformed(java.awt.event.ActionEvent evt)