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;
 
   58             public void focusGained(FocusEvent e) {
 
   63             public void focusLost(FocusEvent e) {
 
   71         ActionListener actList = 
new ActionListener() {
 
   73             public void actionPerformed(ActionEvent e) {
 
   74                 JMenuItem jmi = (JMenuItem) e.getSource();
 
   93         if (instance == null) {
 
   99     void addSearchButtonActionListener(ActionListener actionListener) {
 
  103     void resetSearchBox() {
 
  108     List<KeywordList> getKeywordLists() {
 
  109         List<Keyword> keywords = 
new ArrayList<>();
 
  113         List<KeywordList> keywordLists = 
new ArrayList<>();
 
  114         keywordLists.add(
new KeywordList(keywords));
 
  129     @SuppressWarnings(
"unchecked")
 
  159         keywordTextField.setBorder(
new javax.swing.border.LineBorder(
new java.awt.Color(192, 192, 192), 1, 
true));
 
  163             public void mouseClicked(java.awt.event.MouseEvent evt) {
 
  168             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  173         searchButton.setIcon(
new javax.swing.ImageIcon(getClass().getResource(
"/org/sleuthkit/autopsy/keywordsearch/search-icon.png"))); 
 
  175         searchButton.addActionListener(
new java.awt.event.ActionListener() {
 
  176             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  191         javax.swing.GroupLayout layout = 
new javax.swing.GroupLayout(
this);
 
  192         this.setLayout(layout);
 
  193         layout.setHorizontalGroup(
 
  194             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  195             .addGroup(layout.createSequentialGroup()
 
  197                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  198                     .addGroup(layout.createSequentialGroup()
 
  199                         .addComponent(
keywordTextField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  200                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  202                     .addGroup(layout.createSequentialGroup()
 
  204                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  206                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  208                         .addGap(0, 27, Short.MAX_VALUE)))
 
  211         layout.setVerticalGroup(
 
  212             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  213             .addGroup(layout.createSequentialGroup()
 
  215                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
 
  216                     .addComponent(
keywordTextField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  217                     .addComponent(
searchButton, javax.swing.GroupLayout.DEFAULT_SIZE, 26, Short.MAX_VALUE))
 
  218                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  219                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
 
  234         } 
catch (Exception e) {
 
  235             logger.log(Level.SEVERE, 
"search() threw exception", e); 
 
  240         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
synchronized static Logger getLogger(String name)
javax.swing.JTextField keywordTextField
void keywordTextFieldActionPerformed(java.awt.event.ActionEvent evt)
void searchButtonActionPerformed(java.awt.event.ActionEvent evt)