Package org.fife.ui.autocomplete
Class ParameterizedCompletionContext.Listener
- java.lang.Object
-
- org.fife.ui.autocomplete.ParameterizedCompletionContext.Listener
-
- All Implemented Interfaces:
java.awt.event.FocusListener
,java.util.EventListener
,javax.swing.event.CaretListener
,javax.swing.event.DocumentListener
- Enclosing class:
- ParameterizedCompletionContext
private class ParameterizedCompletionContext.Listener extends java.lang.Object implements java.awt.event.FocusListener, javax.swing.event.CaretListener, javax.swing.event.DocumentListener
Listens for various events in the text component while this tool tip is visible.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
markOccurrencesEnabled
-
Constructor Summary
Constructors Modifier Constructor Description private
Listener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
caretUpdate(javax.swing.event.CaretEvent e)
Called when the text component's caret moves.void
changedUpdate(javax.swing.event.DocumentEvent e)
void
focusGained(java.awt.event.FocusEvent e)
Called when the text component gains focus.void
focusLost(java.awt.event.FocusEvent e)
Called when the text component loses focus.private void
handleDocumentEvent(javax.swing.event.DocumentEvent e)
void
insertUpdate(javax.swing.event.DocumentEvent e)
void
install(javax.swing.text.JTextComponent tc)
Installs this listener onto a text component.void
removeUpdate(javax.swing.event.DocumentEvent e)
void
uninstall()
Uninstalls this listener from the current text component.
-
-
-
Method Detail
-
caretUpdate
public void caretUpdate(javax.swing.event.CaretEvent e)
Called when the text component's caret moves.- Specified by:
caretUpdate
in interfacejavax.swing.event.CaretListener
- Parameters:
e
- The event.
-
changedUpdate
public void changedUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
changedUpdate
in interfacejavax.swing.event.DocumentListener
-
focusGained
public void focusGained(java.awt.event.FocusEvent e)
Called when the text component gains focus.- Specified by:
focusGained
in interfacejava.awt.event.FocusListener
- Parameters:
e
- The event.
-
focusLost
public void focusLost(java.awt.event.FocusEvent e)
Called when the text component loses focus.- Specified by:
focusLost
in interfacejava.awt.event.FocusListener
- Parameters:
e
- The event.
-
handleDocumentEvent
private void handleDocumentEvent(javax.swing.event.DocumentEvent e)
-
insertUpdate
public void insertUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
insertUpdate
in interfacejavax.swing.event.DocumentListener
-
install
public void install(javax.swing.text.JTextComponent tc)
Installs this listener onto a text component.- Parameters:
tc
- The text component to install onto.- See Also:
uninstall()
-
removeUpdate
public void removeUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
removeUpdate
in interfacejavax.swing.event.DocumentListener
-
uninstall
public void uninstall()
Uninstalls this listener from the current text component.
-
-