mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
TSK-285 Add text to Keyword Search TC
Added some more text / tooltips for the user. More should go to docs.
This commit is contained in:
parent
ce2e83a6e3
commit
77ff6f7828
@ -30,12 +30,22 @@ public class KeywordSearchSimpleTopComponent extends TopComponent implements Key
|
||||
/** Creates new form KeywordSearchSimpleTopComponent */
|
||||
public KeywordSearchSimpleTopComponent() {
|
||||
initComponents();
|
||||
customizeComponents();
|
||||
setName("Simple");
|
||||
searchButton.setEnabled(false);
|
||||
|
||||
putClientProperty(TopComponent.PROP_CLOSING_DISABLED, Boolean.TRUE);
|
||||
}
|
||||
|
||||
private void customizeComponents() {
|
||||
searchButton.setToolTipText("Execute a keyword search using the query specified.");
|
||||
chRegex.setToolTipText("Select if query is a regular expression");
|
||||
queryTextArea.setToolTipText("<html>For non-regex search enter one or more keywords separated by white-space.<br />"
|
||||
+ "For a regex search, enter a Java-supported regular expression.<br />"
|
||||
+ "Examples of regex (in double-quotes): \"\\d\\d\\d-\\d\\d\\d\" \\d{8,10} \"phone\" \"ftp|sftp|ssh|http|https|www\".<br />"
|
||||
+ "Note: a word can be also searched using a regex search.<br />Regex containing whitespace [ \\s] matches are currently not supported.</html>");
|
||||
}
|
||||
|
||||
/** This method is called from within the constructor to
|
||||
* initialize the form.
|
||||
* WARNING: Do NOT modify this code. The content of this method is
|
||||
@ -119,7 +129,6 @@ public class KeywordSearchSimpleTopComponent extends TopComponent implements Key
|
||||
private void chRegexActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chRegexActionPerformed
|
||||
// TODO add your handling code here:
|
||||
}//GEN-LAST:event_chRegexActionPerformed
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
private javax.swing.ButtonGroup buttonGroup1;
|
||||
private javax.swing.JCheckBox chRegex;
|
||||
@ -131,7 +140,6 @@ public class KeywordSearchSimpleTopComponent extends TopComponent implements Key
|
||||
private javax.swing.JButton searchButton;
|
||||
// End of variables declaration//GEN-END:variables
|
||||
|
||||
|
||||
@Override
|
||||
protected void componentOpened() {
|
||||
// clear old search
|
||||
@ -188,5 +196,4 @@ public class KeywordSearchSimpleTopComponent extends TopComponent implements Key
|
||||
searchButton.setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user