This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.event
interface DocumentEvent.ElementChange

All Known Implementing Classes:
AbstractDocument.ElementEdit

Most common way to construct:

DocumentEvent de = …;
Element elem = …;

DocumentEvent.ElementChange change = de.getChange(elem);

Based on 11 examples


public static interface DocumentEvent.ElementChange

Describes changes made to a specific element.


Method Summary
 Element[]

          Gets the child elements that were added to the given parent element.
 Element[]

          Gets the child elements that were removed from the given parent element.
 Element

          Returns the element represented.
 int

          Fetches the index within the element represented.
 

Method Detail

getChildrenAdded

public Element[] getChildrenAdded()
Gets the child elements that were added to the given parent element. The element array returned is in the order that the elements lie in the document, and must be contiguous.

Returns:
the child elements

getChildrenRemoved

public Element[] getChildrenRemoved()
Gets the child elements that were removed from the given parent element. The element array returned is sorted in the order that the elements used to lie in the document, and must be contiguous.

Returns:
the child elements

getElement

public Element getElement()
Returns the element represented. This is the element that was changed.

Returns:
the element

getIndex

public int getIndex()
Fetches the index within the element represented. This is the location that children were added and/or removed.

Returns:
the index >= 0


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.