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) voidaddTo(JTextComponent tc) voidHide the auto-completion windows when the text component loses focus.voidCalled when the component hierarchy for our text component changes.voidMethods 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:
focusLostin interfaceFocusListener- Overrides:
focusLostin 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:
hierarchyChangedin interfaceHierarchyListener- Parameters:
e- The event.
-
removeFrom
-