Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-209 (Final Approval Ballot)

Uses of Interface
javax.swing.event.DocumentEvent

Packages that use DocumentEvent
javax.swing.event Provides for events fired by Swing components. 
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
 

Uses of DocumentEvent in javax.swing.event
 

Methods in javax.swing.event with parameters of type DocumentEvent
 void DocumentListener.insertUpdate(DocumentEvent e)
          Gives notification that there was an insert into the document.
 void DocumentListener.removeUpdate(DocumentEvent e)
          Gives notification that a portion of the document has been removed.
 void DocumentListener.changedUpdate(DocumentEvent e)
          Gives notification that an attribute or set of attributes changed.
 

Uses of DocumentEvent in javax.swing.text
 

Classes in javax.swing.text that implement DocumentEvent
 class AbstractDocument.DefaultDocumentEvent
          Stores document changes as the document is being modified.
 

Methods in javax.swing.text with parameters of type DocumentEvent
 void View.insertUpdate(DocumentEvent e, Shape a, ViewFactory f)
          Gives notification that something was inserted into the document in a location that this view is responsible for.
 void View.removeUpdate(DocumentEvent e, Shape a, ViewFactory f)
          Gives notification that something was removed from the document in a location that this view is responsible for.
 void View.changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
          Gives notification from the document that attributes were changed in a location that this view is responsible for.
protected  boolean View.updateChildren(DocumentEvent.ElementChange ec, DocumentEvent e, ViewFactory f)
          Updates the child views in response to receiving notification that the model changed, and there is change record for the element this view is responsible for.
protected  void View.forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory f)
          Forwards the given DocumentEvent to the child views that need to be notified of the change to the model.
protected  void View.forwardUpdateToView(View v, DocumentEvent e, Shape a, ViewFactory f)
          Forwards the DocumentEvent to the give child view.
protected  void View.updateLayout(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a)
          Updates the layout in response to receiving notification of change from the model.
protected  void AbstractDocument.fireInsertUpdate(DocumentEvent e)
          Notifies all listeners that have registered interest for notification on this event type.
protected  void AbstractDocument.fireChangedUpdate(DocumentEvent e)
          Notifies all listeners that have registered interest for notification on this event type.
protected  void AbstractDocument.fireRemoveUpdate(DocumentEvent e)
          Notifies all listeners that have registered interest for notification on this event type.
 


JSR-209 (Final Approval Ballot)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 209 specification.