API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. AbstractDocument.AbstractElement View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      AbstractDocument.AbstractElement
Implements
 Element
 MutableAttributeSet
 Serializable
 TreeNode
Subclasses
Description
publicabstract abstract class AbstractDocument.AbstractElement
  Implements the abstract part of an element.
See also:   
Constructors
public AbstractDocument.AbstractElement (Element parent, AttributeSet a)
  Creates a new AbstractElement.
Methods
Hide/Show inherited methods
public void addAttribute (Object name, Object value) [Specified in MutableAttributeSet]
  Adds an attribute to the element.
public void addAttributes (AttributeSet attr) [Specified in MutableAttributeSet]
  Adds a set of attributes to the element.
publicabstract Enumeration children () [Specified in TreeNode]
  Returns the children of the receiver as an Enumeration.
public boolean containsAttribute (Object name, Object value)
  Checks whether a given attribute name/value is defined.
public boolean containsAttributes (AttributeSet attrs)
  Checks whether the element contains all the attributes.
public AttributeSet copyAttributes ()
  Copies a set of attributes.
public void dump (PrintStream psOut, int indentAmount)
  Dumps a debugging representation of the element hierarchy.
publicabstract boolean getAllowsChildren () [Specified in TreeNode]
  Returns true if the receiver allows children.
public Object getAttribute (Object attrName)
  Gets the value of an attribute.
public int getAttributeCount ()
  Gets the number of attributes that are defined.
public Enumeration<Object> getAttributeNames ()
  Gets the names of all attributes.
public AttributeSet getAttributes () [Specified in Element]
  Gets the attributes for the element.
public TreeNode getChildAt (int childIndex) [Specified in TreeNode]
Returns the child TreeNode at index childIndex.
public int getChildCount () [Specified in TreeNode]
  Returns the number of children TreeNode's receiver contains.
public Document getDocument () [Specified in Element]
  Retrieves the underlying model.
publicabstract Element getElement (int index) [Specified in Element]
  Gets a child element.
publicabstract int getElementCount () [Specified in Element]
  Gets the number of children for the element.
publicabstract int getElementIndex (int offset) [Specified in Element]
  Gets the child element index closest to the given model offset.
publicabstract int getEndOffset () [Specified in Element]
  Gets the ending offset in the model for the element.
public int getIndex (TreeNode node) [Specified in TreeNode]
  Returns the index of node in the receivers children.
public String getName () [Specified in Element]
  Gets the name of the element.
public TreeNode getParent () [Specified in TreeNode]
  Returns the parent TreeNode of the receiver.
public Element getParentElement () [Specified in Element]
  Gets the parent of the element.
public AttributeSet getResolveParent ()
  Gets the resolving parent.
publicabstract int getStartOffset () [Specified in Element]
  Gets the starting offset in the model for the element.
public boolean isDefined (Object attrName)
  Checks whether a given attribute is defined.
public boolean isEqual (AttributeSet attr)
  Checks whether two attribute sets are equal.
publicabstract boolean isLeaf () [Specified in Element]
  Checks whether the element is a leaf.
public void removeAttribute (Object name) [Specified in MutableAttributeSet]
  Removes an attribute from the set.
public void removeAttributes (AttributeSet attrs) [Specified in MutableAttributeSet]
  Removes a set of attributes for the element.
public void removeAttributes (Enumeration<Object> names) [Specified in MutableAttributeSet]
  Removes a set of attributes for the element.
public void setResolveParent (AttributeSet parent) [Specified in MutableAttributeSet]
  Sets the resolving parent.
Fields
Hide/Show inherited fields
publicfinalstatic Object NameAttribute [Inherited From MutableAttributeSet]
Attribute name used to name the collection of attributes.
publicfinalstatic Object ResolveAttribute [Inherited From MutableAttributeSet]
Attribute name used to identify the resolving parent set of attributes, if one is defined.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar