19 package org.sleuthkit.autopsy.keywordsearch;
 
   21 import java.awt.event.ActionEvent;
 
   22 import java.awt.event.ActionListener;
 
   23 import java.awt.event.FocusEvent;
 
   24 import java.awt.event.FocusListener;
 
   25 import java.util.ArrayList;
 
   26 import java.util.List;
 
   27 import java.util.logging.Level;
 
   28 import javax.swing.JMenuItem;
 
   58         if (null == defaultInstance) {
 
   80             public void focusGained(FocusEvent e) {
 
   84             public void focusLost(FocusEvent e) {
 
   92         ActionListener actList = (ActionEvent e) -> {
 
   93             JMenuItem jmi = (JMenuItem) e.getSource();
 
  115     void addSearchButtonActionListener(ActionListener actionListener) {
 
  123     void clearSearchBox() {
 
  134     List<KeywordList> getKeywordLists() {
 
  135         List<Keyword> keywords = 
new ArrayList<>();
 
  137         List<KeywordList> keywordLists = 
new ArrayList<>();
 
  138         keywordLists.add(
new KeywordList(keywords));
 
  154     @SuppressWarnings(
"unchecked")
 
  184         keywordTextField.setBorder(
new javax.swing.border.LineBorder(
new java.awt.Color(192, 192, 192), 1, 
true));
 
  188             public void mouseClicked(java.awt.event.MouseEvent evt) {
 
  193             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  198         searchButton.setIcon(
new javax.swing.ImageIcon(getClass().getResource(
"/org/sleuthkit/autopsy/keywordsearch/search-icon.png"))); 
 
  200         searchButton.addActionListener(
new java.awt.event.ActionListener() {
 
  201             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  216         javax.swing.GroupLayout layout = 
new javax.swing.GroupLayout(
this);
 
  217         this.setLayout(layout);
 
  218         layout.setHorizontalGroup(
 
  219             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  220             .addGroup(layout.createSequentialGroup()
 
  222                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  223                     .addGroup(layout.createSequentialGroup()
 
  224                         .addComponent(
keywordTextField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  225                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  227                     .addGroup(layout.createSequentialGroup()
 
  229                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  231                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  233                         .addGap(0, 27, Short.MAX_VALUE)))
 
  236         layout.setVerticalGroup(
 
  237             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  238             .addGroup(layout.createSequentialGroup()
 
  240                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
 
  241                     .addComponent(
keywordTextField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  242                     .addComponent(
searchButton, javax.swing.GroupLayout.DEFAULT_SIZE, 26, Short.MAX_VALUE))
 
  243                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  244                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
 
  269         } 
catch (Exception e) {
 
  270             LOGGER.log(Level.SEVERE, 
"Error performing ad hoc single keyword search", e); 
 
  280         if (evt.isPopupTrigger()) {
 
javax.swing.JRadioButton regexRadioButton
DropdownSingleKeywordSearchPanel()
void keywordTextFieldActionPerformed(java.awt.event.ActionEvent evt)
void keywordTextFieldMouseClicked(java.awt.event.MouseEvent evt)
javax.swing.JRadioButton substringRadioButton
void customizeComponents()
static final long serialVersionUID
javax.swing.JRadioButton exactRadioButton
javax.swing.ButtonGroup queryTypeButtonGroup
javax.swing.JMenuItem pasteMenuItem
javax.swing.JTextField keywordTextField
void postFilesIndexedChange()
javax.swing.JPopupMenu rightClickMenu
javax.swing.JMenuItem cutMenuItem
void searchButtonActionPerformed(java.awt.event.ActionEvent evt)
static synchronized DropdownSingleKeywordSearchPanel getDefault()
javax.swing.JMenuItem selectAllMenuItem
synchronized static Logger getLogger(String name)
static final Logger LOGGER
javax.swing.JMenuItem copyMenuItem
static DropdownSingleKeywordSearchPanel defaultInstance
javax.swing.JButton searchButton