19 package org.sleuthkit.autopsy.corecomponents;
21 import java.beans.PropertyChangeEvent;
22 import java.util.EnumSet;
23 import java.util.Objects;
24 import java.util.TimeZone;
25 import javax.swing.JPanel;
26 import javax.swing.JSpinner;
27 import org.netbeans.spi.options.OptionsPanelController;
38 @SuppressWarnings(
"PMD.SingularField")
51 this.immediateUpdates = immediateUpdates;
54 currentCaseSettingsPanel.setEnabled(evt.getNewValue() != null);
55 radioGroupByDataType.setEnabled(evt.getNewValue() != null);
56 radioGroupByPersonHost.setEnabled(evt.getNewValue() != null);
61 ((JSpinner.DefaultEditor) maxResultsSpinner.getEditor()).getTextField().setEditable(
false);
68 keepCurrentViewerRadioButton.setSelected(keepPreferredViewer);
69 useBestViewerRadioButton.setSelected(!keepPreferredViewer);
72 timeZoneList.setEnabled(!useLocalTime);
74 useLocalTimeRadioButton.setSelected(useLocalTime);
75 useAnotherTimeRadioButton.setSelected(!useLocalTime);
89 fileNameTranslationColumnCheckbox.setEnabled(tts.
hasProvider());
95 currentCaseSettingsPanel.setEnabled(caseIsOpen);
96 radioGroupByDataType.setEnabled(caseIsOpen);
97 radioGroupByPersonHost.setEnabled(caseIsOpen);
100 radioGroupByDataType.setSelected(!groupByHostPersonTypes);
101 radioGroupByPersonHost.setSelected(groupByHostPersonTypes);
104 radioGroupByDataType.setEnabled(
false);
105 radioGroupByPersonHost.setEnabled(
false);
116 if (useAnotherTimeRadioButton.isSelected()) {
128 storeGroupItemsInTreeByDataSource();
153 @SuppressWarnings(
"unchecked")
155 private
void initComponents() {
157 curCaseRadioGroup =
new javax.swing.ButtonGroup();
158 viewPreferencesScrollPane =
new javax.swing.JScrollPane();
159 viewPreferencesPanel =
new javax.swing.JPanel();
160 globalSettingsPanel =
new javax.swing.JPanel();
161 selectFileLabel =
new javax.swing.JLabel();
162 useBestViewerRadioButton =
new javax.swing.JRadioButton();
163 keepCurrentViewerRadioButton =
new javax.swing.JRadioButton();
164 hideKnownFilesLabel =
new javax.swing.JLabel();
165 dataSourcesHideKnownCheckbox =
new javax.swing.JCheckBox();
166 viewsHideKnownCheckbox =
new javax.swing.JCheckBox();
167 hideSlackFilesLabel =
new javax.swing.JLabel();
168 dataSourcesHideSlackCheckbox =
new javax.swing.JCheckBox();
169 viewsHideSlackCheckbox =
new javax.swing.JCheckBox();
170 displayTimeLabel =
new javax.swing.JLabel();
171 useLocalTimeRadioButton =
new javax.swing.JRadioButton();
172 useAnotherTimeRadioButton =
new javax.swing.JRadioButton();
173 hideOtherUsersTagsCheckbox =
new javax.swing.JCheckBox();
174 hideOtherUsersTagsLabel =
new javax.swing.JLabel();
175 scoColumnsLabel =
new javax.swing.JLabel();
176 scoColumnsCheckbox =
new javax.swing.JCheckBox();
177 jScrollPane1 =
new javax.swing.JScrollPane();
178 timeZoneList =
new javax.swing.JList<>();
179 translateTextLabel =
new javax.swing.JLabel();
180 scoColumnsWrapAroundText =
new javax.swing.JLabel();
181 fileNameTranslationColumnCheckbox =
new javax.swing.JCheckBox();
182 maxResultsLabel =
new javax.swing.JLabel();
183 maxResultsSpinner =
new javax.swing.JSpinner();
184 currentCaseSettingsPanel =
new javax.swing.JPanel();
185 radioGroupByPersonHost =
new javax.swing.JRadioButton();
186 radioGroupByDataType =
new javax.swing.JRadioButton();
187 currentSessionSettingsPanel =
new javax.swing.JPanel();
188 hideRejectedResultsCheckbox =
new javax.swing.JCheckBox();
190 setPreferredSize(
new java.awt.Dimension(727, 495));
192 viewPreferencesScrollPane.setBorder(null);
193 viewPreferencesScrollPane.setPreferredSize(
new java.awt.Dimension(727, 493));
195 viewPreferencesPanel.setPreferredSize(
new java.awt.Dimension(727, 492));
197 globalSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.globalSettingsPanel.border.title")));
199 org.openide.awt.Mnemonics.setLocalizedText(selectFileLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.selectFileLabel.text"));
201 org.openide.awt.Mnemonics.setLocalizedText(useBestViewerRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useBestViewerRadioButton.text"));
202 useBestViewerRadioButton.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useBestViewerRadioButton.toolTipText"));
203 useBestViewerRadioButton.addActionListener(
new java.awt.event.ActionListener() {
204 public void actionPerformed(java.awt.event.ActionEvent evt) {
205 useBestViewerRadioButtonActionPerformed(evt);
209 org.openide.awt.Mnemonics.setLocalizedText(keepCurrentViewerRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.keepCurrentViewerRadioButton.text"));
210 keepCurrentViewerRadioButton.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.keepCurrentViewerRadioButton.toolTipText"));
211 keepCurrentViewerRadioButton.addActionListener(
new java.awt.event.ActionListener() {
212 public void actionPerformed(java.awt.event.ActionEvent evt) {
213 keepCurrentViewerRadioButtonActionPerformed(evt);
217 org.openide.awt.Mnemonics.setLocalizedText(hideKnownFilesLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideKnownFilesLabel.text"));
219 org.openide.awt.Mnemonics.setLocalizedText(dataSourcesHideKnownCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.dataSourcesHideKnownCheckbox.text"));
220 dataSourcesHideKnownCheckbox.addActionListener(
new java.awt.event.ActionListener() {
221 public void actionPerformed(java.awt.event.ActionEvent evt) {
222 dataSourcesHideKnownCheckboxActionPerformed(evt);
226 org.openide.awt.Mnemonics.setLocalizedText(viewsHideKnownCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.viewsHideKnownCheckbox.text"));
227 viewsHideKnownCheckbox.addActionListener(
new java.awt.event.ActionListener() {
228 public void actionPerformed(java.awt.event.ActionEvent evt) {
229 viewsHideKnownCheckboxActionPerformed(evt);
233 org.openide.awt.Mnemonics.setLocalizedText(hideSlackFilesLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideSlackFilesLabel.text"));
235 org.openide.awt.Mnemonics.setLocalizedText(dataSourcesHideSlackCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.dataSourcesHideSlackCheckbox.text"));
236 dataSourcesHideSlackCheckbox.addActionListener(
new java.awt.event.ActionListener() {
237 public void actionPerformed(java.awt.event.ActionEvent evt) {
238 dataSourcesHideSlackCheckboxActionPerformed(evt);
242 org.openide.awt.Mnemonics.setLocalizedText(viewsHideSlackCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.viewsHideSlackCheckbox.text"));
243 viewsHideSlackCheckbox.addActionListener(
new java.awt.event.ActionListener() {
244 public void actionPerformed(java.awt.event.ActionEvent evt) {
245 viewsHideSlackCheckboxActionPerformed(evt);
249 org.openide.awt.Mnemonics.setLocalizedText(displayTimeLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.displayTimeLabel.text"));
251 org.openide.awt.Mnemonics.setLocalizedText(useLocalTimeRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useLocalTimeRadioButton.text"));
252 useLocalTimeRadioButton.addActionListener(
new java.awt.event.ActionListener() {
253 public void actionPerformed(java.awt.event.ActionEvent evt) {
254 useLocalTimeRadioButtonActionPerformed(evt);
258 org.openide.awt.Mnemonics.setLocalizedText(useAnotherTimeRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useAnotherTimeRadioButton.text"));
259 useAnotherTimeRadioButton.addActionListener(
new java.awt.event.ActionListener() {
260 public void actionPerformed(java.awt.event.ActionEvent evt) {
261 useAnotherTimeRadioButtonActionPerformed(evt);
265 org.openide.awt.Mnemonics.setLocalizedText(hideOtherUsersTagsCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideOtherUsersTagsCheckbox.text"));
266 hideOtherUsersTagsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
267 public void actionPerformed(java.awt.event.ActionEvent evt) {
268 hideOtherUsersTagsCheckboxActionPerformed(evt);
272 org.openide.awt.Mnemonics.setLocalizedText(hideOtherUsersTagsLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideOtherUsersTagsLabel.text"));
274 org.openide.awt.Mnemonics.setLocalizedText(scoColumnsLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.scoColumnsLabel.text"));
276 org.openide.awt.Mnemonics.setLocalizedText(scoColumnsCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.scoColumnsCheckbox.text"));
277 scoColumnsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
278 public void actionPerformed(java.awt.event.ActionEvent evt) {
279 scoColumnsCheckboxActionPerformed(evt);
283 jScrollPane1.setMaximumSize(
new java.awt.Dimension(150, 130));
284 jScrollPane1.setPreferredSize(
new java.awt.Dimension(150, 130));
286 timeZoneList.addListSelectionListener(
new javax.swing.event.ListSelectionListener() {
287 public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
288 timeZoneListValueChanged(evt);
291 jScrollPane1.setViewportView(timeZoneList);
293 org.openide.awt.Mnemonics.setLocalizedText(translateTextLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.translateTextLabel.text"));
295 org.openide.awt.Mnemonics.setLocalizedText(scoColumnsWrapAroundText,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.scoColumnsWrapAroundText.text"));
297 org.openide.awt.Mnemonics.setLocalizedText(fileNameTranslationColumnCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.fileNameTranslationColumnCheckbox.text"));
298 fileNameTranslationColumnCheckbox.addActionListener(
new java.awt.event.ActionListener() {
299 public void actionPerformed(java.awt.event.ActionEvent evt) {
300 fileNameTranslationColumnCheckboxActionPerformed(evt);
304 org.openide.awt.Mnemonics.setLocalizedText(maxResultsLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.maxResultsLabel.text"));
305 maxResultsLabel.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.maxResultsLabel.toolTipText"));
307 maxResultsSpinner.setModel(
new javax.swing.SpinnerNumberModel(0, 0, 50000, 10000));
308 maxResultsSpinner.addChangeListener(
new javax.swing.event.ChangeListener() {
309 public void stateChanged(javax.swing.event.ChangeEvent evt) {
310 maxResultsSpinnerStateChanged(evt);
314 javax.swing.GroupLayout globalSettingsPanelLayout =
new javax.swing.GroupLayout(globalSettingsPanel);
315 globalSettingsPanel.setLayout(globalSettingsPanelLayout);
316 globalSettingsPanelLayout.setHorizontalGroup(
317 globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
318 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
320 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
321 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
322 .addComponent(maxResultsLabel)
324 .addComponent(maxResultsSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
325 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
326 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
327 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
329 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
330 .addComponent(viewsHideKnownCheckbox)
331 .addComponent(dataSourcesHideKnownCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
332 .addComponent(hideOtherUsersTagsCheckbox)
333 .addComponent(viewsHideSlackCheckbox)
334 .addComponent(hideOtherUsersTagsLabel)
335 .addComponent(scoColumnsLabel)
336 .addComponent(scoColumnsCheckbox)
337 .addComponent(dataSourcesHideSlackCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
338 .addComponent(scoColumnsWrapAroundText)))
339 .addComponent(hideSlackFilesLabel)
340 .addComponent(hideKnownFilesLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 289, javax.swing.GroupLayout.PREFERRED_SIZE))
341 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
342 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
343 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
345 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
346 .addComponent(useLocalTimeRadioButton)
347 .addComponent(keepCurrentViewerRadioButton)
348 .addComponent(fileNameTranslationColumnCheckbox)
349 .addComponent(useAnotherTimeRadioButton)
350 .addComponent(useBestViewerRadioButton)
351 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE)))
352 .addComponent(displayTimeLabel)
353 .addComponent(selectFileLabel)
354 .addComponent(translateTextLabel))))
355 .addContainerGap(94, Short.MAX_VALUE))
357 globalSettingsPanelLayout.setVerticalGroup(
358 globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
359 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
361 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
362 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
363 .addComponent(hideKnownFilesLabel)
364 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
365 .addComponent(dataSourcesHideKnownCheckbox)
366 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
367 .addComponent(viewsHideKnownCheckbox)
368 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
369 .addComponent(hideSlackFilesLabel)
370 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
371 .addComponent(dataSourcesHideSlackCheckbox)
372 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
373 .addComponent(viewsHideSlackCheckbox)
374 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
375 .addComponent(hideOtherUsersTagsLabel)
376 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
377 .addComponent(hideOtherUsersTagsCheckbox)
378 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
379 .addComponent(scoColumnsLabel)
381 .addComponent(scoColumnsCheckbox, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
382 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
383 .addComponent(scoColumnsWrapAroundText))
384 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
385 .addComponent(selectFileLabel)
386 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
387 .addComponent(useBestViewerRadioButton)
388 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
389 .addComponent(keepCurrentViewerRadioButton)
390 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
391 .addComponent(displayTimeLabel)
392 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
393 .addComponent(useLocalTimeRadioButton)
394 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
395 .addComponent(useAnotherTimeRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
396 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
397 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
398 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
399 .addComponent(translateTextLabel)
400 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
401 .addComponent(fileNameTranslationColumnCheckbox)))
402 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
403 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
404 .addComponent(maxResultsLabel)
405 .addComponent(maxResultsSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
406 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
409 currentCaseSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.currentCaseSettingsPanel.border.title")));
411 curCaseRadioGroup.add(radioGroupByPersonHost);
412 org.openide.awt.Mnemonics.setLocalizedText(radioGroupByPersonHost,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.radioGroupByPersonHost.text"));
413 radioGroupByPersonHost.addActionListener(
new java.awt.event.ActionListener() {
414 public void actionPerformed(java.awt.event.ActionEvent evt) {
415 radioGroupByPersonHostActionPerformed(evt);
419 curCaseRadioGroup.add(radioGroupByDataType);
420 org.openide.awt.Mnemonics.setLocalizedText(radioGroupByDataType,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.radioGroupByDataType.text"));
421 radioGroupByDataType.addActionListener(
new java.awt.event.ActionListener() {
422 public void actionPerformed(java.awt.event.ActionEvent evt) {
423 radioGroupByDataTypeActionPerformed(evt);
427 javax.swing.GroupLayout currentCaseSettingsPanelLayout =
new javax.swing.GroupLayout(currentCaseSettingsPanel);
428 currentCaseSettingsPanel.setLayout(currentCaseSettingsPanelLayout);
429 currentCaseSettingsPanelLayout.setHorizontalGroup(
430 currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
431 .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
433 .addGroup(currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
434 .addComponent(radioGroupByPersonHost)
435 .addComponent(radioGroupByDataType))
436 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
438 currentCaseSettingsPanelLayout.setVerticalGroup(
439 currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
440 .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
441 .addComponent(radioGroupByDataType)
442 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
443 .addComponent(radioGroupByPersonHost)
444 .addGap(0, 6, Short.MAX_VALUE))
447 currentSessionSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.currentSessionSettingsPanel.border.title")));
449 org.openide.awt.Mnemonics.setLocalizedText(hideRejectedResultsCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideRejectedResultsCheckbox.text"));
450 hideRejectedResultsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
451 public void actionPerformed(java.awt.event.ActionEvent evt) {
452 hideRejectedResultsCheckboxActionPerformed(evt);
456 javax.swing.GroupLayout currentSessionSettingsPanelLayout =
new javax.swing.GroupLayout(currentSessionSettingsPanel);
457 currentSessionSettingsPanel.setLayout(currentSessionSettingsPanelLayout);
458 currentSessionSettingsPanelLayout.setHorizontalGroup(
459 currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
460 .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
462 .addComponent(hideRejectedResultsCheckbox)
463 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
465 currentSessionSettingsPanelLayout.setVerticalGroup(
466 currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
467 .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
468 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
469 .addComponent(hideRejectedResultsCheckbox))
472 javax.swing.GroupLayout viewPreferencesPanelLayout =
new javax.swing.GroupLayout(viewPreferencesPanel);
473 viewPreferencesPanel.setLayout(viewPreferencesPanelLayout);
474 viewPreferencesPanelLayout.setHorizontalGroup(
475 viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
476 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, viewPreferencesPanelLayout.createSequentialGroup()
478 .addGroup(viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
479 .addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
480 .addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
481 .addComponent(globalSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
484 viewPreferencesPanelLayout.setVerticalGroup(
485 viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
486 .addGroup(viewPreferencesPanelLayout.createSequentialGroup()
487 .addComponent(globalSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
488 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
489 .addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
490 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
491 .addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
495 viewPreferencesScrollPane.setViewportView(viewPreferencesPanel);
497 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
498 this.setLayout(layout);
499 layout.setHorizontalGroup(
500 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
501 .addComponent(viewPreferencesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
503 layout.setVerticalGroup(
504 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
505 .addComponent(viewPreferencesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
510 if (immediateUpdates) {
513 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
518 if (immediateUpdates) {
521 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
526 if (immediateUpdates) {
529 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
534 if (immediateUpdates && useAnotherTimeRadioButton.isSelected()) {
537 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
542 if (immediateUpdates) {
545 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
550 if (immediateUpdates) {
553 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
558 useLocalTimeRadioButton.setSelected(
false);
559 useAnotherTimeRadioButton.setSelected(
true);
560 timeZoneList.setEnabled(
true);
561 if (immediateUpdates) {
564 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
569 useLocalTimeRadioButton.setSelected(
true);
570 useAnotherTimeRadioButton.setSelected(
false);
571 timeZoneList.setEnabled(
false);
572 if (immediateUpdates) {
575 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
580 if (immediateUpdates) {
583 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
588 if (immediateUpdates) {
591 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
596 if (immediateUpdates) {
599 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
604 if (immediateUpdates) {
607 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
612 useBestViewerRadioButton.setSelected(
false);
613 keepCurrentViewerRadioButton.setSelected(
true);
614 if (immediateUpdates) {
617 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
622 useBestViewerRadioButton.setSelected(
true);
623 keepCurrentViewerRadioButton.setSelected(
false);
624 if (immediateUpdates) {
627 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
632 if (immediateUpdates) {
633 storeGroupItemsInTreeByDataSource();
635 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
640 if (immediateUpdates) {
641 storeGroupItemsInTreeByDataSource();
643 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
javax.swing.JLabel hideKnownFilesLabel
javax.swing.JLabel scoColumnsLabel
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.JLabel selectFileLabel
javax.swing.JList< String > timeZoneList
static List< String > createTimeZoneList()
static boolean hideSlackFilesInDataSourcesTree()
void keepCurrentViewerRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
void radioGroupByPersonHostActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JLabel scoColumnsWrapAroundText
static void setDisplayTimesInLocalTime(boolean value)
javax.swing.JCheckBox viewsHideSlackCheckbox
javax.swing.JRadioButton radioGroupByPersonHost
javax.swing.JPanel viewPreferencesPanel
javax.swing.JRadioButton radioGroupByDataType
void fileNameTranslationColumnCheckboxActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JSpinner maxResultsSpinner
void setShowRejectedResults(boolean showRejectedResults)
static void setHideSlackFilesInViewsTree(boolean value)
static boolean keepPreferredContentViewer()
static boolean hideKnownFilesInViewsTree()
static void setHideSCOColumns(boolean value)
javax.swing.JLabel maxResultsLabel
static void setResultsTablePageSize(int pageSize)
javax.swing.JCheckBox scoColumnsCheckbox
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)
void maxResultsSpinnerStateChanged(javax.swing.event.ChangeEvent evt)
static TextTranslationService getInstance()
static void setGroupItemsInTreeByDataSource(boolean value)
javax.swing.JLabel translateTextLabel
static String createTimeZoneString(TimeZone timeZone)
static boolean displayTranslatedFileNames()
javax.swing.JLabel displayTimeLabel
static void setTimeZoneForDisplays(String timeZone)
javax.swing.JPanel globalSettingsPanel
javax.swing.JLabel hideOtherUsersTagsLabel
static void setDisplayTranslatedFileNames(boolean value)
static boolean getHideSCOColumns()
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)
synchronized boolean hasProvider()
void useBestViewerRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
void useAnotherTimeRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
void radioGroupByDataTypeActionPerformed(java.awt.event.ActionEvent evt)
static int getResultsTablePageSize()
static boolean hideKnownFilesInDataSourcesTree()
javax.swing.JScrollPane jScrollPane1
static String getTimeZoneForDisplays()
javax.swing.JLabel hideSlackFilesLabel
void timeZoneListValueChanged(javax.swing.event.ListSelectionEvent evt)
boolean getShowRejectedResults()
static void addEventTypeSubscriber(Set< Events > eventTypes, PropertyChangeListener subscriber)
javax.swing.JCheckBox hideRejectedResultsCheckbox
static void setShowOnlyCurrentUserTags(boolean value)
void dataSourcesHideSlackCheckboxActionPerformed(java.awt.event.ActionEvent evt)
void scoColumnsCheckboxActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JRadioButton useAnotherTimeRadioButton
javax.swing.JScrollPane viewPreferencesScrollPane
static boolean displayTimesInLocalTime()
static boolean isCaseOpen()
void storeGroupItemsInTreeByDataSource()
void viewsHideSlackCheckboxActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JCheckBox fileNameTranslationColumnCheckbox
javax.swing.ButtonGroup curCaseRadioGroup