Class LogPanel.DelayedTextDocumentListener
java.lang.Object
org.apache.log4j.chainsaw.LogPanel.DelayedTextDocumentListener
- All Implemented Interfaces:
EventListener, DocumentListener
- Enclosing class:
LogPanel
This class receives notification when the Refine focus or find field is
updated, where a background thread periodically wakes up and checks if
they have stopped typing yet. This ensures that the filtering of the
model is not done for every single character typed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate final Stringprivate final Threadprivate Stringprivate longprivate final JTextField -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidUpdate timestampvoidUpdate timestampprivate voidUpdate timestampvoidUpdate timestampprivate voidUpdate refinement rule based on the entered expression.
-
Field Details
-
CHECK_PERIOD
private static final long CHECK_PERIOD- See Also:
-
textField
-
lastTimeStamp
private long lastTimeStamp -
delayThread
-
defaultToolTip
-
lastText
-
-
Constructor Details
-
DelayedTextDocumentListener
-
-
Method Details
-
insertUpdate
Update timestamp- Specified by:
insertUpdatein interfaceDocumentListener- Parameters:
e-
-
removeUpdate
Update timestamp- Specified by:
removeUpdatein interfaceDocumentListener- Parameters:
e-
-
changedUpdate
Update timestamp- Specified by:
changedUpdatein interfaceDocumentListener- Parameters:
e-
-
notifyChange
private void notifyChange()Update timestamp -
setFilter
private void setFilter()Update refinement rule based on the entered expression.
-