19 package org.sleuthkit.autopsy.keywordsearch;
 
   22 import java.awt.event.ActionEvent;
 
   23 import java.awt.event.ActionListener;
 
   24 import java.awt.event.FocusEvent;
 
   25 import java.awt.event.FocusListener;
 
   26 import java.util.ArrayList;
 
   27 import java.util.List;
 
   28 import java.util.logging.Level;
 
   29 import javax.swing.JMenuItem;
 
   55             public void focusGained(FocusEvent e) {
 
   60             public void focusLost(FocusEvent e) {
 
   68         ActionListener actList = 
new ActionListener() {
 
   70             public void actionPerformed(ActionEvent e) {
 
   71                 JMenuItem jmi = (JMenuItem) e.getSource();
 
   90         if (instance == null) {
 
   96     void addSearchButtonActionListener(ActionListener actionListener) {
 
  100     void resetSearchBox() {
 
  105     List<KeywordList> getKeywordLists() {        
 
  106         List<Keyword> keywords = 
new ArrayList<>();
 
  110         List <KeywordList> keywordLists = 
new ArrayList<>();
 
  111         keywordLists.add(
new KeywordList(keywords));
 
  126     @SuppressWarnings(
"unchecked")
 
  156         keywordTextField.setBorder(
new javax.swing.border.LineBorder(
new java.awt.Color(192, 192, 192), 1, 
true));
 
  160             public void mouseClicked(java.awt.event.MouseEvent evt) {
 
  165             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  170         searchButton.setIcon(
new javax.swing.ImageIcon(getClass().getResource(
"/org/sleuthkit/autopsy/keywordsearch/search-icon.png"))); 
 
  172         searchButton.addActionListener(
new java.awt.event.ActionListener() {
 
  173             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  188         javax.swing.GroupLayout layout = 
new javax.swing.GroupLayout(
this);
 
  189         this.setLayout(layout);
 
  190         layout.setHorizontalGroup(
 
  191             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  192             .addGroup(layout.createSequentialGroup()
 
  194                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  195                     .addGroup(layout.createSequentialGroup()
 
  196                         .addComponent(
keywordTextField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  197                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  199                     .addGroup(layout.createSequentialGroup()
 
  201                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  203                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  205                         .addGap(0, 27, Short.MAX_VALUE)))
 
  208         layout.setVerticalGroup(
 
  209             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  210             .addGroup(layout.createSequentialGroup()
 
  212                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
 
  213                     .addComponent(
keywordTextField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  214                     .addComponent(
searchButton, javax.swing.GroupLayout.DEFAULT_SIZE, 26, Short.MAX_VALUE))
 
  215                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  216                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
 
  231         } 
catch(Exception e) {
 
  232             logger.log(Level.SEVERE, 
"search() threw exception", e); 
 
  237         if(evt.isPopupTrigger()) {
 
javax.swing.JMenuItem copyMenuItem
 
static final Logger logger
 
static DropdownSingleTermSearchPanel instance
 
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()
 
javax.swing.JRadioButton exactRadioButton
 
void customizeComponents()
 
javax.swing.JRadioButton regexRadioButton
 
javax.swing.JMenuItem selectAllMenuItem
 
javax.swing.ButtonGroup queryTypeButtonGroup
 
javax.swing.JTextField keywordTextField
 
void keywordTextFieldActionPerformed(java.awt.event.ActionEvent evt)
 
static Logger getLogger(String name)
 
void searchButtonActionPerformed(java.awt.event.ActionEvent evt)