Save This Page
Home » openjdk-7 » javax » swing » text » html » [javadoc | source]
javax.swing.text.html
static class: HTMLDocument.LeafIterator [javadoc | source]
java.lang.Object
   javax.swing.text.html.HTMLDocument$Iterator
      javax.swing.text.html.HTMLDocument$LeafIterator
An iterator to iterate over a particular type of tag.
Constructor:
 LeafIterator(HTML.Tag t,
    Document doc) 
Method from javax.swing.text.html.HTMLDocument$LeafIterator Summary:
getAttributes,   getEndOffset,   getStartOffset,   getTag,   isValid,   next,   nextLeaf,   setEndOffset
Methods from javax.swing.text.html.HTMLDocument$Iterator:
getAttributes,   getEndOffset,   getStartOffset,   getTag,   isValid,   next
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.html.HTMLDocument$LeafIterator Detail:
 public AttributeSet getAttributes() 
    Returns the attributes for this tag.
 public int getEndOffset() 
    Returns the end of the range for which the current occurrence of the tag is defined and has the same attributes.
 public int getStartOffset() 
    Returns the start of the range for which the current occurrence of the tag is defined and has the same attributes.
 public HTML.Tag getTag() 
    Returns the type of tag this iterator represents.
 public boolean isValid() 
    Returns true if the current position is not null.
 public  void next() 
    Moves the iterator forward to the next occurrence of the tag it represents.
  void nextLeaf(ElementIterator iter) 
    Moves the given iterator to the next leaf element.
  void setEndOffset() 
    Marches a cloned iterator forward to locate the end of the run. This sets the value of endOffset.