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