Autopsy
4.12.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits JLabel, FocusListener, and DocumentListener.
Classes | |
enum | Show |
Public Member Functions | |
TextPrompt (String text, JTextComponent component) | |
TextPrompt (String text, JTextComponent component, Show show) | |
TextPrompt (String text, JTextComponent component, String layoutConstraint) | |
TextPrompt (String text, JTextComponent component, Show show, String layoutConstraint) | |
void | changeAlpha (float alpha) |
void | changeAlpha (int alpha) |
void | changedUpdate (DocumentEvent e) |
void | changeStyle (int style) |
void | focusGained (FocusEvent e) |
void | focusLost (FocusEvent e) |
Show | getShow () |
boolean | getShowPromptOnce () |
void | insertUpdate (DocumentEvent e) |
void | removeUpdate (DocumentEvent e) |
void | setShow (Show show) |
void | setShowPromptOnce (boolean showPromptOnce) |
Private Member Functions | |
void | checkForPrompt () |
Private Attributes | |
JTextComponent | component |
Document | document |
int | focusLost |
Show | show |
boolean | showPromptOnce |
The TextPrompt class will display a prompt over top of a text component when the Document of the text field is empty. The Show property is used to determine the visibility of the prompt.
The Font and foreground Color of the prompt will default to those properties of the parent text component. You are free to change the properties after class construction. From: https://tips4java.wordpress.com/2009/11/29/text-prompt/
Definition at line 20 of file TextPrompt.java.
org.sleuthkit.autopsy.corecomponents.TextPrompt.TextPrompt | ( | String | text, |
JTextComponent | component | ||
) |
Definition at line 37 of file TextPrompt.java.
References org.sleuthkit.autopsy.corecomponents.TextPrompt.Show.ALWAYS, and org.sleuthkit.autopsy.corecomponents.TextPrompt.component.
org.sleuthkit.autopsy.corecomponents.TextPrompt.TextPrompt | ( | String | text, |
JTextComponent | component, | ||
Show | show | ||
) |
Definition at line 41 of file TextPrompt.java.
References org.sleuthkit.autopsy.corecomponents.TextPrompt.component, and org.sleuthkit.autopsy.corecomponents.TextPrompt.show.
org.sleuthkit.autopsy.corecomponents.TextPrompt.TextPrompt | ( | String | text, |
JTextComponent | component, | ||
String | layoutConstraint | ||
) |
Definition at line 45 of file TextPrompt.java.
References org.sleuthkit.autopsy.corecomponents.TextPrompt.Show.ALWAYS, and org.sleuthkit.autopsy.corecomponents.TextPrompt.component.
org.sleuthkit.autopsy.corecomponents.TextPrompt.TextPrompt | ( | String | text, |
JTextComponent | component, | ||
Show | show, | ||
String | layoutConstraint | ||
) |
Definition at line 49 of file TextPrompt.java.
References org.sleuthkit.autopsy.corecomponents.TextPrompt.checkForPrompt(), org.sleuthkit.autopsy.corecomponents.TextPrompt.component, and org.sleuthkit.autopsy.corecomponents.TextPrompt.setShow().
void org.sleuthkit.autopsy.corecomponents.TextPrompt.changeAlpha | ( | float | alpha | ) |
Convenience method to change the alpha value of the current foreground Color to the specifice value.
alpha | value in the range of 0 - 1.0. |
Definition at line 79 of file TextPrompt.java.
void org.sleuthkit.autopsy.corecomponents.TextPrompt.changeAlpha | ( | int | alpha | ) |
Convenience method to change the alpha value of the current foreground Color to the specifice value.
alpha | value in the range of 0 - 255. |
Definition at line 89 of file TextPrompt.java.
void org.sleuthkit.autopsy.corecomponents.TextPrompt.changedUpdate | ( | DocumentEvent | e | ) |
Definition at line 217 of file TextPrompt.java.
void org.sleuthkit.autopsy.corecomponents.TextPrompt.changeStyle | ( | int | style | ) |
Convenience method to change the style of the current Font. The style values are found in the Font class. Common values might be: Font.BOLD, Font.ITALIC and Font.BOLD + Font.ITALIC.
style | value representing the the new style of the Font. |
Definition at line 108 of file TextPrompt.java.
|
private |
Check whether the prompt should be visible or not. The visibility will change on updates to the Document and on focus changes.
Definition at line 160 of file TextPrompt.java.
References org.sleuthkit.autopsy.corecomponents.TextPrompt.Show.ALWAYS, org.sleuthkit.autopsy.corecomponents.TextPrompt.Show.FOCUS_GAINED, and org.sleuthkit.autopsy.corecomponents.TextPrompt.Show.FOCUS_LOST.
Referenced by org.sleuthkit.autopsy.corecomponents.TextPrompt.focusGained(), org.sleuthkit.autopsy.corecomponents.TextPrompt.focusLost(), org.sleuthkit.autopsy.corecomponents.TextPrompt.insertUpdate(), org.sleuthkit.autopsy.corecomponents.TextPrompt.removeUpdate(), and org.sleuthkit.autopsy.corecomponents.TextPrompt.TextPrompt().
void org.sleuthkit.autopsy.corecomponents.TextPrompt.focusGained | ( | FocusEvent | e | ) |
Definition at line 195 of file TextPrompt.java.
References org.sleuthkit.autopsy.corecomponents.TextPrompt.checkForPrompt().
void org.sleuthkit.autopsy.corecomponents.TextPrompt.focusLost | ( | FocusEvent | e | ) |
Definition at line 200 of file TextPrompt.java.
References org.sleuthkit.autopsy.corecomponents.TextPrompt.checkForPrompt().
Show org.sleuthkit.autopsy.corecomponents.TextPrompt.getShow | ( | ) |
Get the Show property
Definition at line 117 of file TextPrompt.java.
References org.sleuthkit.autopsy.corecomponents.TextPrompt.show.
boolean org.sleuthkit.autopsy.corecomponents.TextPrompt.getShowPromptOnce | ( | ) |
Get the showPromptOnce property
Definition at line 141 of file TextPrompt.java.
References org.sleuthkit.autopsy.corecomponents.TextPrompt.showPromptOnce.
void org.sleuthkit.autopsy.corecomponents.TextPrompt.insertUpdate | ( | DocumentEvent | e | ) |
Definition at line 207 of file TextPrompt.java.
References org.sleuthkit.autopsy.corecomponents.TextPrompt.checkForPrompt().
void org.sleuthkit.autopsy.corecomponents.TextPrompt.removeUpdate | ( | DocumentEvent | e | ) |
Definition at line 212 of file TextPrompt.java.
References org.sleuthkit.autopsy.corecomponents.TextPrompt.checkForPrompt().
void org.sleuthkit.autopsy.corecomponents.TextPrompt.setShow | ( | Show | show | ) |
Set the prompt Show property to control when the promt is shown. Valid values are:
Show.AWLAYS (default) - always show the prompt Show.Focus_GAINED - show the prompt when the component gains focus (and hide the prompt when focus is lost) Show.Focus_LOST - show the prompt when the component loses focus (and hide the prompt when focus is gained)
show | a valid Show enum |
Definition at line 132 of file TextPrompt.java.
References org.sleuthkit.autopsy.corecomponents.TextPrompt.show.
Referenced by org.sleuthkit.autopsy.corecomponents.TextPrompt.TextPrompt().
void org.sleuthkit.autopsy.corecomponents.TextPrompt.setShowPromptOnce | ( | boolean | showPromptOnce | ) |
Show the prompt once. Once the component has gained/lost focus once, the prompt will not be shown again.
showPromptOnce | when true the prompt will only be shown once, otherwise it will be shown repeatedly. |
Definition at line 152 of file TextPrompt.java.
References org.sleuthkit.autopsy.corecomponents.TextPrompt.showPromptOnce.
|
private |
Definition at line 30 of file TextPrompt.java.
Referenced by org.sleuthkit.autopsy.corecomponents.TextPrompt.TextPrompt().
|
private |
Definition at line 31 of file TextPrompt.java.
|
private |
Definition at line 35 of file TextPrompt.java.
|
private |
Definition at line 33 of file TextPrompt.java.
Referenced by org.sleuthkit.autopsy.corecomponents.TextPrompt.getShow(), org.sleuthkit.autopsy.corecomponents.TextPrompt.setShow(), and org.sleuthkit.autopsy.corecomponents.TextPrompt.TextPrompt().
|
private |
Definition at line 34 of file TextPrompt.java.
Referenced by org.sleuthkit.autopsy.corecomponents.TextPrompt.getShowPromptOnce(), and org.sleuthkit.autopsy.corecomponents.TextPrompt.setShowPromptOnce().
Copyright © 2012-2018 Basis Technology. Generated on: Wed Sep 18 2019
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.