Package org.fife.ui.autocomplete
Class AutoCompletion.TextComponentListener
java.lang.Object
java.awt.event.FocusAdapter
org.fife.ui.autocomplete.AutoCompletion.TextComponentListener
- All Implemented Interfaces:
FocusListener
,HierarchyListener
,EventListener
- Enclosing class:
AutoCompletion
private class AutoCompletion.TextComponentListener
extends FocusAdapter
implements HierarchyListener
Listens for events from the text component we're installed on.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addTo
(JTextComponent tc) void
Hide the auto-completion windows when the text component loses focus.void
Called when the component hierarchy for our text component changes.void
Methods inherited from class java.awt.event.FocusAdapter
focusGained
-
Constructor Details
-
TextComponentListener
private TextComponentListener()
-
-
Method Details
-
addTo
-
focusLost
Hide the auto-completion windows when the text component loses focus.- Specified by:
focusLost
in interfaceFocusListener
- Overrides:
focusLost
in classFocusAdapter
-
hierarchyChanged
Called when the component hierarchy for our text component changes. When the text component is added to a newWindow
, this method registers listeners on thatWindow
.- Specified by:
hierarchyChanged
in interfaceHierarchyListener
- Parameters:
e
- The event.
-
removeFrom
-