javax.swing.text
Class DefaultCaret.UpdateHandler

java.lang.Object
  extended byjavax.swing.text.DefaultCaret.UpdateHandler
All Implemented Interfaces:
ActionListener, DocumentListener, EventListener, java.beans.PropertyChangeListener
Enclosing class:
DefaultCaret

class DefaultCaret.UpdateHandler
extends Object
implements java.beans.PropertyChangeListener, DocumentListener, ActionListener


Constructor Summary
(package private) DefaultCaret.UpdateHandler()
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Invoked when the blink timer fires.
 void changedUpdate(DocumentEvent e)
          Gives notification that an attribute or set of attributes changed.
 void insertUpdate(DocumentEvent e)
          Updates the dot and mark if they were changed by the insertion.
 void propertyChange(java.beans.PropertyChangeEvent evt)
          This method gets called when a bound property is changed.
 void removeUpdate(DocumentEvent e)
          Updates the dot and mark if they were changed by the removal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCaret.UpdateHandler

DefaultCaret.UpdateHandler()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Invoked when the blink timer fires. This is called asynchronously. The simply changes the visibility and repaints the rectangle that last bounded the caret.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - the action event

insertUpdate

public void insertUpdate(DocumentEvent e)
Updates the dot and mark if they were changed by the insertion.

Specified by:
insertUpdate in interface DocumentListener
Parameters:
e - the document event
See Also:
DocumentListener.insertUpdate(javax.swing.event.DocumentEvent)

removeUpdate

public void removeUpdate(DocumentEvent e)
Updates the dot and mark if they were changed by the removal.

Specified by:
removeUpdate in interface DocumentListener
Parameters:
e - the document event
See Also:
DocumentListener.removeUpdate(javax.swing.event.DocumentEvent)

changedUpdate

public void changedUpdate(DocumentEvent e)
Gives notification that an attribute or set of attributes changed.

Specified by:
changedUpdate in interface DocumentListener
Parameters:
e - the document event
See Also:
DocumentListener.changedUpdate(javax.swing.event.DocumentEvent)

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
This method gets called when a bound property is changed. We are looking for document changes on the editor.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener