JSR-209 (Final Release)

Uses of Interface
javax.swing.text.Element

Packages that use Element
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 Element in javax.swing.event
 

Methods in javax.swing.event that return Element
 Element HyperlinkEvent.getSourceElement()
          Returns the Element that corresponds to the source of the event.
 Element DocumentEvent.ElementChange.getElement()
          Returns the element represented.
 Element[] DocumentEvent.ElementChange.getChildrenRemoved()
          Gets the child elements that were removed from the given parent element.
 Element[] DocumentEvent.ElementChange.getChildrenAdded()
          Gets the child elements that were added to the given parent element.
 

Methods in javax.swing.event with parameters of type Element
 DocumentEvent.ElementChange DocumentEvent.getChange(Element elem)
          Gets the change information for the given element.
 

Constructors in javax.swing.event with parameters of type Element
HyperlinkEvent(java.lang.Object source, HyperlinkEvent.EventType type, java.net.URL u, java.lang.String desc, Element sourceElement)
          Creates a new object representing a hypertext link event.
 

Uses of Element in javax.swing.text
 

Classes in javax.swing.text that implement Element
 class AbstractDocument.AbstractElement
          Implements the abstract part of an element.
 class AbstractDocument.BranchElement
          Implements a composite element that contains other elements.
 class AbstractDocument.LeafElement
          Implements an element that directly represents content of some kind.
 

Methods in javax.swing.text that return Element
 Element StyledDocument.getParagraphElement(int pos)
          Gets the element that represents the paragraph that encloses the given offset within the document.
 Element StyledDocument.getCharacterElement(int pos)
          Gets the element that represents the character that is at the given offset within the document.
 Element Element.getParentElement()
          Fetches the parent element.
 Element Element.getElement(int index)
          Fetches the child element at the given index.
 Element[] AbstractDocument.getRootElements()
          Gets all root elements defined.
abstract  Element AbstractDocument.getDefaultRootElement()
          Returns the root element that views should be based upon unless some other mechanism for assigning views to element structures is provided.
 Element AbstractDocument.getBidiRootElement()
          Returns the root element of the bidirectional structure for this document.
abstract  Element AbstractDocument.getParagraphElement(int pos)
          Get the paragraph element containing the given position.
protected  Element AbstractDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1)
          Creates a document leaf element.
protected  Element AbstractDocument.createBranchElement(Element parent, AttributeSet a)
          Creates a document branch element, that can contain other elements.
 Element AbstractDocument.AbstractElement.getParentElement()
          Gets the parent of the element.
abstract  Element AbstractDocument.AbstractElement.getElement(int index)
          Gets a child element.
 Element AbstractDocument.BranchElement.positionToElement(int pos)
          Gets the child element that contains the given model position.
 Element AbstractDocument.BranchElement.getElement(int index)
          Gets a child element.
 Element AbstractDocument.LeafElement.getElement(int index)
          Gets a child element.
 Element AbstractDocument.ElementEdit.getElement()
          Returns the underlying element.
 Element[] AbstractDocument.ElementEdit.getChildrenRemoved()
          Gets a list of children that were removed.
 Element[] AbstractDocument.ElementEdit.getChildrenAdded()
          Gets a list of children that were added.
 Element[] Document.getRootElements()
          Returns all of the root elements that are defined.
 Element Document.getDefaultRootElement()
          Returns the root element that views should be based upon, unless some other mechanism for assigning views to element structures is provided.
 Element View.getElement()
          Fetches the structural portion of the subject that this view is mapped to.
 

Methods in javax.swing.text with parameters of type Element
 View ViewFactory.create(Element elem)
          Creates a view from the given structural element of a document.
protected  Element AbstractDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1)
          Creates a document leaf element.
protected  Element AbstractDocument.createBranchElement(Element parent, AttributeSet a)
          Creates a document branch element, that can contain other elements.
 void AbstractDocument.BranchElement.replace(int offset, int length, Element[] elems)
          Replaces content with a new set of elements.
 DocumentEvent.ElementChange AbstractDocument.DefaultDocumentEvent.getChange(Element elem)
          Gets the changes for an element.
 

Constructors in javax.swing.text with parameters of type Element
AbstractDocument.AbstractElement(Element parent, AttributeSet a)
          Creates a new AbstractElement.
AbstractDocument.BranchElement(Element parent, AttributeSet a)
          Constructs a composite element that initially contains no children.
AbstractDocument.LeafElement(Element parent, AttributeSet a, int offs0, int offs1)
          Constructs an element that represents content within the document (has no children).
AbstractDocument.ElementEdit(Element e, int index, Element[] removed, Element[] added)
          Constructs an edit record.
View(Element elem)
          Creates a new View object.
 


JSR-209 (Final Release)

Java and Java 2D are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Copyright 1993 - 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All Rights Reserved.
Use of this specification is subject to this license.