API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. Element View Source
Author(s)
Timothy Prinzing
Since
Version
1.24 11/17/05
Serial
Hierarchy
 Element
Subinterfaces
Description
public interface Element
  Interface to describe a structural piece of a document.
See also:   
Methods
Hide/Show inherited methods
public AttributeSet getAttributes ()
  Fetches the collection of attributes this element contains.
public Document getDocument ()
  Fetches the document associated with this element.
public Element getElement (int index)
  Fetches the child element at the given index.
public int getElementCount ()
  Gets the number of child elements contained by this element.
public int getElementIndex (int offset)
  Gets the child element index closest to the given offset.
public int getEndOffset ()
  Fetches the offset from the beginning of the document that this element ends at.
public String getName ()
  Fetches the name of the element.
public Element getParentElement ()
  Fetches the parent element.
public int getStartOffset ()
  Fetches the offset from the beginning of the document that this element begins at.
public boolean isLeaf ()
  Is this element a leaf element? An element that may have children, even if it currently has no children, would return false.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar