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() {
 
  127     void setRegexSearchEnabled(
boolean enabled) {
 
  139     List<KeywordList> getKeywordLists() {
 
  140         List<Keyword> keywords = 
new ArrayList<>();
 
  142         List<KeywordList> keywordLists = 
new ArrayList<>();
 
  143         keywordLists.add(
new KeywordList(keywords));
 
  159     @SuppressWarnings(
"unchecked")
 
  189         keywordTextField.setBorder(
new javax.swing.border.LineBorder(
new java.awt.Color(192, 192, 192), 1, 
true));
 
  193             public void mouseClicked(java.awt.event.MouseEvent evt) {
 
  198             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  203         searchButton.setIcon(
new javax.swing.ImageIcon(getClass().getResource(
"/org/sleuthkit/autopsy/keywordsearch/search-icon.png"))); 
 
  205         searchButton.addActionListener(
new java.awt.event.ActionListener() {
 
  206             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  221         javax.swing.GroupLayout layout = 
new javax.swing.GroupLayout(
this);
 
  222         this.setLayout(layout);
 
  223         layout.setHorizontalGroup(
 
  224             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  225             .addGroup(layout.createSequentialGroup()
 
  227                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  228                     .addGroup(layout.createSequentialGroup()
 
  229                         .addComponent(
keywordTextField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  230                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  232                     .addGroup(layout.createSequentialGroup()
 
  234                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  236                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  238                         .addGap(0, 27, Short.MAX_VALUE)))
 
  241         layout.setVerticalGroup(
 
  242             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  243             .addGroup(layout.createSequentialGroup()
 
  245                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
 
  246                     .addComponent(
keywordTextField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  247                     .addComponent(
searchButton, javax.swing.GroupLayout.DEFAULT_SIZE, 26, Short.MAX_VALUE))
 
  248                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  249                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
 
  274         } 
catch (Exception e) {
 
  275             LOGGER.log(Level.SEVERE, 
"Error performing ad hoc single keyword search", e); 
 
  285         if (evt.isPopupTrigger()) {
 
javax.swing.JMenuItem copyMenuItem
 
static final Logger LOGGER
 
javax.swing.JMenuItem pasteMenuItem
 
void keywordTextFieldMouseClicked(java.awt.event.MouseEvent evt)
 
javax.swing.JMenuItem cutMenuItem
 
javax.swing.JButton searchButton
 
void postFilesIndexedChange()
 
static synchronized DropdownSingleTermSearchPanel getDefault()
 
javax.swing.JRadioButton substringRadioButton
 
javax.swing.JPopupMenu rightClickMenu
 
DropdownSingleTermSearchPanel()
 
static DropdownSingleTermSearchPanel defaultInstance
 
javax.swing.JRadioButton exactRadioButton
 
void customizeComponents()
 
static final long serialVersionUID
 
javax.swing.JRadioButton regexRadioButton
 
javax.swing.JMenuItem selectAllMenuItem
 
javax.swing.ButtonGroup queryTypeButtonGroup
 
synchronized static Logger getLogger(String name)
 
javax.swing.JTextField keywordTextField
 
void keywordTextFieldActionPerformed(java.awt.event.ActionEvent evt)
 
void searchButtonActionPerformed(java.awt.event.ActionEvent evt)