Package org.apache.log4j.chainsaw
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 long
private final String
private final Thread
private String
private long
private final JTextField
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Update timestampvoid
Update timestampprivate void
Update timestampvoid
Update timestampprivate void
Update 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:
insertUpdate
in interfaceDocumentListener
- Parameters:
e
-
-
removeUpdate
Update timestamp- Specified by:
removeUpdate
in interfaceDocumentListener
- Parameters:
e
-
-
changedUpdate
Update timestamp- Specified by:
changedUpdate
in interfaceDocumentListener
- Parameters:
e
-
-
notifyChange
private void notifyChange()Update timestamp -
setFilter
private void setFilter()Update refinement rule based on the entered expression.
-