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;
39 @SuppressWarnings(
"PMD.SingularField")
52 this.immediateUpdates = immediateUpdates;
55 currentCaseSettingsPanel.setEnabled(evt.getNewValue() != null);
56 groupByDataSourceCheckbox.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 groupByDataSourceCheckbox.setEnabled(caseIsOpen);
101 groupByDataSourceCheckbox.setSelected(
false);
112 if (useAnotherTimeRadioButton.isSelected()) {
124 storeGroupItemsInTreeByDataSource();
148 @SuppressWarnings(
"unchecked")
150 private
void initComponents() {
152 viewPreferencesScrollPane =
new javax.swing.JScrollPane();
153 viewPreferencesPanel =
new javax.swing.JPanel();
154 globalSettingsPanel =
new javax.swing.JPanel();
155 selectFileLabel =
new javax.swing.JLabel();
156 useBestViewerRadioButton =
new javax.swing.JRadioButton();
157 keepCurrentViewerRadioButton =
new javax.swing.JRadioButton();
158 hideKnownFilesLabel =
new javax.swing.JLabel();
159 dataSourcesHideKnownCheckbox =
new javax.swing.JCheckBox();
160 viewsHideKnownCheckbox =
new javax.swing.JCheckBox();
161 hideSlackFilesLabel =
new javax.swing.JLabel();
162 dataSourcesHideSlackCheckbox =
new javax.swing.JCheckBox();
163 viewsHideSlackCheckbox =
new javax.swing.JCheckBox();
164 displayTimeLabel =
new javax.swing.JLabel();
165 useLocalTimeRadioButton =
new javax.swing.JRadioButton();
166 useAnotherTimeRadioButton =
new javax.swing.JRadioButton();
167 hideOtherUsersTagsCheckbox =
new javax.swing.JCheckBox();
168 hideOtherUsersTagsLabel =
new javax.swing.JLabel();
169 scoColumnsLabel =
new javax.swing.JLabel();
170 scoColumnsCheckbox =
new javax.swing.JCheckBox();
171 jScrollPane1 =
new javax.swing.JScrollPane();
172 timeZoneList =
new javax.swing.JList<>();
173 translateTextLabel =
new javax.swing.JLabel();
174 scoColumnsWrapAroundText =
new javax.swing.JLabel();
175 fileNameTranslationColumnCheckbox =
new javax.swing.JCheckBox();
176 maxResultsLabel =
new javax.swing.JLabel();
177 maxResultsSpinner =
new javax.swing.JSpinner();
178 currentCaseSettingsPanel =
new javax.swing.JPanel();
179 groupByDataSourceCheckbox =
new javax.swing.JCheckBox();
180 currentSessionSettingsPanel =
new javax.swing.JPanel();
181 hideRejectedResultsCheckbox =
new javax.swing.JCheckBox();
183 setPreferredSize(
new java.awt.Dimension(625, 465));
185 viewPreferencesScrollPane.setBorder(null);
186 viewPreferencesScrollPane.setPreferredSize(
new java.awt.Dimension(625, 465));
188 viewPreferencesPanel.setPreferredSize(
new java.awt.Dimension(625, 465));
190 globalSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.globalSettingsPanel.border.title")));
192 org.openide.awt.Mnemonics.setLocalizedText(selectFileLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.selectFileLabel.text"));
194 org.openide.awt.Mnemonics.setLocalizedText(useBestViewerRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useBestViewerRadioButton.text"));
195 useBestViewerRadioButton.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useBestViewerRadioButton.toolTipText"));
196 useBestViewerRadioButton.addActionListener(
new java.awt.event.ActionListener() {
197 public void actionPerformed(java.awt.event.ActionEvent evt) {
198 useBestViewerRadioButtonActionPerformed(evt);
202 org.openide.awt.Mnemonics.setLocalizedText(keepCurrentViewerRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.keepCurrentViewerRadioButton.text"));
203 keepCurrentViewerRadioButton.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.keepCurrentViewerRadioButton.toolTipText"));
204 keepCurrentViewerRadioButton.addActionListener(
new java.awt.event.ActionListener() {
205 public void actionPerformed(java.awt.event.ActionEvent evt) {
206 keepCurrentViewerRadioButtonActionPerformed(evt);
210 org.openide.awt.Mnemonics.setLocalizedText(hideKnownFilesLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideKnownFilesLabel.text"));
212 org.openide.awt.Mnemonics.setLocalizedText(dataSourcesHideKnownCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.dataSourcesHideKnownCheckbox.text"));
213 dataSourcesHideKnownCheckbox.addActionListener(
new java.awt.event.ActionListener() {
214 public void actionPerformed(java.awt.event.ActionEvent evt) {
215 dataSourcesHideKnownCheckboxActionPerformed(evt);
219 org.openide.awt.Mnemonics.setLocalizedText(viewsHideKnownCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.viewsHideKnownCheckbox.text"));
220 viewsHideKnownCheckbox.addActionListener(
new java.awt.event.ActionListener() {
221 public void actionPerformed(java.awt.event.ActionEvent evt) {
222 viewsHideKnownCheckboxActionPerformed(evt);
226 org.openide.awt.Mnemonics.setLocalizedText(hideSlackFilesLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideSlackFilesLabel.text"));
228 org.openide.awt.Mnemonics.setLocalizedText(dataSourcesHideSlackCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.dataSourcesHideSlackCheckbox.text"));
229 dataSourcesHideSlackCheckbox.addActionListener(
new java.awt.event.ActionListener() {
230 public void actionPerformed(java.awt.event.ActionEvent evt) {
231 dataSourcesHideSlackCheckboxActionPerformed(evt);
235 org.openide.awt.Mnemonics.setLocalizedText(viewsHideSlackCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.viewsHideSlackCheckbox.text"));
236 viewsHideSlackCheckbox.addActionListener(
new java.awt.event.ActionListener() {
237 public void actionPerformed(java.awt.event.ActionEvent evt) {
238 viewsHideSlackCheckboxActionPerformed(evt);
242 org.openide.awt.Mnemonics.setLocalizedText(displayTimeLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.displayTimeLabel.text"));
244 org.openide.awt.Mnemonics.setLocalizedText(useLocalTimeRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useLocalTimeRadioButton.text"));
245 useLocalTimeRadioButton.addActionListener(
new java.awt.event.ActionListener() {
246 public void actionPerformed(java.awt.event.ActionEvent evt) {
247 useLocalTimeRadioButtonActionPerformed(evt);
251 org.openide.awt.Mnemonics.setLocalizedText(useAnotherTimeRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useAnotherTimeRadioButton.text"));
252 useAnotherTimeRadioButton.addActionListener(
new java.awt.event.ActionListener() {
253 public void actionPerformed(java.awt.event.ActionEvent evt) {
254 useAnotherTimeRadioButtonActionPerformed(evt);
258 org.openide.awt.Mnemonics.setLocalizedText(hideOtherUsersTagsCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideOtherUsersTagsCheckbox.text"));
259 hideOtherUsersTagsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
260 public void actionPerformed(java.awt.event.ActionEvent evt) {
261 hideOtherUsersTagsCheckboxActionPerformed(evt);
265 org.openide.awt.Mnemonics.setLocalizedText(hideOtherUsersTagsLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideOtherUsersTagsLabel.text"));
267 org.openide.awt.Mnemonics.setLocalizedText(scoColumnsLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.scoColumnsLabel.text"));
269 org.openide.awt.Mnemonics.setLocalizedText(scoColumnsCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.scoColumnsCheckbox.text"));
270 scoColumnsCheckbox.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
271 scoColumnsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
272 public void actionPerformed(java.awt.event.ActionEvent evt) {
273 scoColumnsCheckboxActionPerformed(evt);
277 timeZoneList.addListSelectionListener(
new javax.swing.event.ListSelectionListener() {
278 public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
279 timeZoneListValueChanged(evt);
282 jScrollPane1.setViewportView(timeZoneList);
284 org.openide.awt.Mnemonics.setLocalizedText(translateTextLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.translateTextLabel.text"));
286 org.openide.awt.Mnemonics.setLocalizedText(scoColumnsWrapAroundText,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.scoColumnsWrapAroundText.text"));
288 org.openide.awt.Mnemonics.setLocalizedText(fileNameTranslationColumnCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.fileNameTranslationColumnCheckbox.text"));
289 fileNameTranslationColumnCheckbox.addActionListener(
new java.awt.event.ActionListener() {
290 public void actionPerformed(java.awt.event.ActionEvent evt) {
291 fileNameTranslationColumnCheckboxActionPerformed(evt);
295 org.openide.awt.Mnemonics.setLocalizedText(maxResultsLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.maxResultsLabel.text"));
296 maxResultsLabel.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.maxResultsLabel.toolTipText"));
298 maxResultsSpinner.setModel(
new javax.swing.SpinnerNumberModel(0, 0, 50000, 10000));
299 maxResultsSpinner.addChangeListener(
new javax.swing.event.ChangeListener() {
300 public void stateChanged(javax.swing.event.ChangeEvent evt) {
301 maxResultsSpinnerStateChanged(evt);
305 javax.swing.GroupLayout globalSettingsPanelLayout =
new javax.swing.GroupLayout(globalSettingsPanel);
306 globalSettingsPanel.setLayout(globalSettingsPanelLayout);
307 globalSettingsPanelLayout.setHorizontalGroup(
308 globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
309 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
311 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
312 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
314 .addComponent(hideOtherUsersTagsCheckbox))
315 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
316 .addComponent(scoColumnsLabel)
317 .addGap(135, 135, 135)
318 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 272, javax.swing.GroupLayout.PREFERRED_SIZE))
319 .addComponent(hideOtherUsersTagsLabel)
320 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
321 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
322 .addComponent(hideKnownFilesLabel)
323 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
324 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
325 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
327 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
328 .addComponent(dataSourcesHideSlackCheckbox)
329 .addComponent(viewsHideSlackCheckbox)))
330 .addComponent(hideSlackFilesLabel))
331 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
333 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
334 .addComponent(dataSourcesHideKnownCheckbox)
335 .addComponent(viewsHideKnownCheckbox))))
336 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
338 .addComponent(scoColumnsCheckbox))
339 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
341 .addComponent(scoColumnsWrapAroundText)))
343 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
344 .addComponent(displayTimeLabel)
345 .addComponent(selectFileLabel)
346 .addComponent(translateTextLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
347 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
349 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
350 .addComponent(fileNameTranslationColumnCheckbox)
351 .addComponent(keepCurrentViewerRadioButton)
352 .addComponent(useBestViewerRadioButton)
353 .addComponent(useLocalTimeRadioButton)
354 .addComponent(useAnotherTimeRadioButton)))))
355 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
356 .addComponent(maxResultsLabel)
357 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
358 .addComponent(maxResultsSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)))
359 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
361 globalSettingsPanelLayout.setVerticalGroup(
362 globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
363 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
365 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
366 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
367 .addComponent(hideKnownFilesLabel)
368 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
369 .addComponent(dataSourcesHideKnownCheckbox)
370 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
371 .addComponent(viewsHideKnownCheckbox)
372 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
373 .addComponent(hideSlackFilesLabel)
374 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
375 .addComponent(dataSourcesHideSlackCheckbox)
376 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
377 .addComponent(viewsHideSlackCheckbox)
378 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
379 .addComponent(hideOtherUsersTagsLabel)
380 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
381 .addComponent(hideOtherUsersTagsCheckbox)
382 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
383 .addComponent(scoColumnsLabel)
385 .addComponent(scoColumnsCheckbox, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
386 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
387 .addComponent(scoColumnsWrapAroundText))
388 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
389 .addComponent(selectFileLabel)
390 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
391 .addComponent(useBestViewerRadioButton)
392 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
393 .addComponent(keepCurrentViewerRadioButton)
394 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
395 .addComponent(displayTimeLabel)
396 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
397 .addComponent(useLocalTimeRadioButton)
398 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
399 .addComponent(useAnotherTimeRadioButton)
400 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
401 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
402 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
403 .addComponent(translateTextLabel)
404 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
405 .addComponent(fileNameTranslationColumnCheckbox)))
406 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
407 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
408 .addComponent(maxResultsLabel)
409 .addComponent(maxResultsSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
410 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
413 currentCaseSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.currentCaseSettingsPanel.border.title")));
415 org.openide.awt.Mnemonics.setLocalizedText(groupByDataSourceCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.groupByDataSourceCheckbox.text"));
416 groupByDataSourceCheckbox.addActionListener(
new java.awt.event.ActionListener() {
417 public void actionPerformed(java.awt.event.ActionEvent evt) {
418 groupByDataSourceCheckboxActionPerformed(evt);
422 javax.swing.GroupLayout currentCaseSettingsPanelLayout =
new javax.swing.GroupLayout(currentCaseSettingsPanel);
423 currentCaseSettingsPanel.setLayout(currentCaseSettingsPanelLayout);
424 currentCaseSettingsPanelLayout.setHorizontalGroup(
425 currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
426 .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
428 .addComponent(groupByDataSourceCheckbox)
429 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
431 currentCaseSettingsPanelLayout.setVerticalGroup(
432 currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
433 .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
434 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
435 .addComponent(groupByDataSourceCheckbox))
438 currentSessionSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.currentSessionSettingsPanel.border.title")));
440 org.openide.awt.Mnemonics.setLocalizedText(hideRejectedResultsCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideRejectedResultsCheckbox.text"));
441 hideRejectedResultsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
442 public void actionPerformed(java.awt.event.ActionEvent evt) {
443 hideRejectedResultsCheckboxActionPerformed(evt);
447 javax.swing.GroupLayout currentSessionSettingsPanelLayout =
new javax.swing.GroupLayout(currentSessionSettingsPanel);
448 currentSessionSettingsPanel.setLayout(currentSessionSettingsPanelLayout);
449 currentSessionSettingsPanelLayout.setHorizontalGroup(
450 currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
451 .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
453 .addComponent(hideRejectedResultsCheckbox, javax.swing.GroupLayout.PREFERRED_SIZE, 259, javax.swing.GroupLayout.PREFERRED_SIZE)
454 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
456 currentSessionSettingsPanelLayout.setVerticalGroup(
457 currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
458 .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
459 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
460 .addComponent(hideRejectedResultsCheckbox))
463 javax.swing.GroupLayout viewPreferencesPanelLayout =
new javax.swing.GroupLayout(viewPreferencesPanel);
464 viewPreferencesPanel.setLayout(viewPreferencesPanelLayout);
465 viewPreferencesPanelLayout.setHorizontalGroup(
466 viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
467 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, viewPreferencesPanelLayout.createSequentialGroup()
469 .addGroup(viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
470 .addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
471 .addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
472 .addComponent(globalSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
475 viewPreferencesPanelLayout.setVerticalGroup(
476 viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
477 .addGroup(viewPreferencesPanelLayout.createSequentialGroup()
478 .addComponent(globalSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
479 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
480 .addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
481 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
482 .addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
483 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
486 viewPreferencesScrollPane.setViewportView(viewPreferencesPanel);
488 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
489 this.setLayout(layout);
490 layout.setHorizontalGroup(
491 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
492 .addComponent(viewPreferencesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
494 layout.setVerticalGroup(
495 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
496 .addComponent(viewPreferencesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
501 if (immediateUpdates) {
502 storeGroupItemsInTreeByDataSource();
504 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
509 if (immediateUpdates) {
512 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
517 if (immediateUpdates && useAnotherTimeRadioButton.isSelected()) {
520 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
525 if (immediateUpdates) {
528 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
533 if (immediateUpdates) {
536 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
541 useLocalTimeRadioButton.setSelected(
false);
542 useAnotherTimeRadioButton.setSelected(
true);
543 timeZoneList.setEnabled(
true);
544 if (immediateUpdates) {
547 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
552 useLocalTimeRadioButton.setSelected(
true);
553 useAnotherTimeRadioButton.setSelected(
false);
554 timeZoneList.setEnabled(
false);
555 if (immediateUpdates) {
558 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
563 if (immediateUpdates) {
566 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
571 if (immediateUpdates) {
574 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
579 if (immediateUpdates) {
582 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
587 if (immediateUpdates) {
590 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
595 useBestViewerRadioButton.setSelected(
false);
596 keepCurrentViewerRadioButton.setSelected(
true);
597 if (immediateUpdates) {
600 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
605 useBestViewerRadioButton.setSelected(
true);
606 keepCurrentViewerRadioButton.setSelected(
false);
607 if (immediateUpdates) {
610 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
615 if (immediateUpdates) {
618 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
623 if (immediateUpdates) {
626 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)
javax.swing.JLabel scoColumnsWrapAroundText
static void setDisplayTimesInLocalTime(boolean value)
javax.swing.JCheckBox viewsHideSlackCheckbox
javax.swing.JPanel viewPreferencesPanel
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)
void groupByDataSourceCheckboxActionPerformed(java.awt.event.ActionEvent evt)
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)
javax.swing.JCheckBox groupByDataSourceCheckbox
void useAnotherTimeRadioButtonActionPerformed(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