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.DocumentListenerListens for various events in the text component while this tool tip is visible.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanmarkOccurrencesEnabled
-
Constructor Summary
Constructors Modifier Constructor Description privateListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcaretUpdate(javax.swing.event.CaretEvent e)Called when the text component's caret moves.voidchangedUpdate(javax.swing.event.DocumentEvent e)voidfocusGained(java.awt.event.FocusEvent e)Called when the text component gains focus.voidfocusLost(java.awt.event.FocusEvent e)Called when the text component loses focus.private voidhandleDocumentEvent(javax.swing.event.DocumentEvent e)voidinsertUpdate(javax.swing.event.DocumentEvent e)voidinstall(javax.swing.text.JTextComponent tc)Installs this listener onto a text component.voidremoveUpdate(javax.swing.event.DocumentEvent e)voiduninstall()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:
caretUpdatein interfacejavax.swing.event.CaretListener- Parameters:
e- The event.
-
changedUpdate
public void changedUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
changedUpdatein interfacejavax.swing.event.DocumentListener
-
focusGained
public void focusGained(java.awt.event.FocusEvent e)
Called when the text component gains focus.- Specified by:
focusGainedin 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:
focusLostin 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:
insertUpdatein 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:
removeUpdatein interfacejavax.swing.event.DocumentListener
-
uninstall
public void uninstall()
Uninstalls this listener from the current text component.
-
-