javax.swing.text.html
Class HTMLDocument.Iterator

java.lang.Object
  extended by javax.swing.text.html.HTMLDocument.Iterator
Enclosing class:
HTMLDocument

public abstract static class HTMLDocument.Iterator
extends Object

An iterator over a particular type of tag.


Constructor Summary
HTMLDocument.Iterator()
           
 
Method Summary
abstract  AttributeSet getAttributes()
          Return the attribute set for this tag.
abstract  int getEndOffset()
          Get the end of the range for the current occurrence of the tag being defined and having the same attributes.
abstract  int getStartOffset()
          Get the start of the range for the current occurrence of the tag being defined and having the same attributes.
abstract  HTML.Tag getTag()
          Type of tag this iterator represents.
abstract  boolean isValid()
          Indicates whether or not the iterator currently represents an occurrence of the tag.
abstract  void next()
          Move the iterator forward.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLDocument.Iterator

public HTMLDocument.Iterator()
Method Detail

getAttributes

public abstract AttributeSet getAttributes()
Return the attribute set for this tag.

Returns:
the AttributeSet (null if none found).

getEndOffset

public abstract int getEndOffset()
Get the end of the range for the current occurrence of the tag being defined and having the same attributes.

Returns:
the end of the range

getStartOffset

public abstract int getStartOffset()
Get the start of the range for the current occurrence of the tag being defined and having the same attributes.

Returns:
the start of the range (-1 if it can't be found).

next

public abstract void next()
Move the iterator forward.


isValid

public abstract boolean isValid()
Indicates whether or not the iterator currently represents an occurrence of the tag.

Returns:
true if the iterator currently represents an occurrence of the tag.

getTag

public abstract HTML.Tag getTag()
Type of tag this iterator represents.

Returns:
the tag.