org.openide.util
Class WeakListenerImpl.Document

java.lang.Object
  extended by org.openide.util.WeakListenerImpl
      extended by org.openide.util.WeakListenerImpl.Document
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.DocumentListener
Enclosing class:
WeakListenerImpl

static final class WeakListenerImpl.Document
extends WeakListenerImpl
implements javax.swing.event.DocumentListener

Weak document modifications listener. This class if final only for performance reasons, can be happily unfinaled if desired.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.util.WeakListenerImpl
WeakListenerImpl.Change, WeakListenerImpl.Document, WeakListenerImpl.Focus, WeakListenerImpl.PropertyChange, WeakListenerImpl.VetoableChange
 
Field Summary
 
Fields inherited from class org.openide.util.WeakListenerImpl
listenerClass
 
Constructor Summary
WeakListenerImpl.Document(javax.swing.event.DocumentListener l)
          Constructor.
 
Method Summary
 void changedUpdate(javax.swing.event.DocumentEvent ev)
          Gives notification that an attribute or set of attributes changed.
 void insertUpdate(javax.swing.event.DocumentEvent ev)
          Gives notification that there was an insert into the document.
protected  java.lang.String removeMethodName()
          Method name to use for removing the listener.
 void removeUpdate(javax.swing.event.DocumentEvent ev)
          Gives notification that a portion of the document has been removed.
 
Methods inherited from class org.openide.util.WeakListenerImpl
create, get, getImplementator, setSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WeakListenerImpl.Document

public WeakListenerImpl.Document(javax.swing.event.DocumentListener l)
Constructor.

Parameters:
l - listener to delegate to
Method Detail

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent ev)
Gives notification that an attribute or set of attributes changed.

Specified by:
changedUpdate in interface javax.swing.event.DocumentListener
Parameters:
ev - event describing the action

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent ev)
Gives notification that there was an insert into the document.

Specified by:
insertUpdate in interface javax.swing.event.DocumentListener
Parameters:
ev - event describing the action

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent ev)
Gives notification that a portion of the document has been removed.

Specified by:
removeUpdate in interface javax.swing.event.DocumentListener
Parameters:
ev - event describing the action

removeMethodName

protected java.lang.String removeMethodName()
Method name to use for removing the listener.

Specified by:
removeMethodName in class WeakListenerImpl
Returns:
name of method of the source object that should be used to remove the listener from listening on source of events