|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.text.html.HTMLDocument.Iterator
javax.swing.text.html.HTMLDocument.LeafIterator
An iterator to iterate over a particular type of tag.
| Field Summary | |
private int |
endOffset
|
private ElementIterator |
pos
|
private HTML.Tag |
tag
|
| Constructor Summary | |
(package private) |
HTMLDocument.LeafIterator(HTML.Tag t,
Document doc)
|
| Method Summary | |
AttributeSet |
getAttributes()
Returns the attributes for this tag. |
int |
getEndOffset()
Returns the end of the range for which the current occurrence of the tag is defined and has the same attributes. |
int |
getStartOffset()
Returns the start of the range for which the current occurrence of the tag is defined and has the same attributes. |
HTML.Tag |
getTag()
Returns the type of tag this iterator represents. |
boolean |
isValid()
Returns true if the current position is not null. |
void |
next()
Moves the iterator forward to the next occurrence of the tag it represents. |
(package private) void |
nextLeaf(ElementIterator iter)
Moves the given iterator to the next leaf element. |
(package private) void |
setEndOffset()
Marches a cloned iterator forward to locate the end of the run. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int endOffset
private HTML.Tag tag
private ElementIterator pos
| Constructor Detail |
HTMLDocument.LeafIterator(HTML.Tag t,
Document doc)
| Method Detail |
public AttributeSet getAttributes()
getAttributes in class HTMLDocument.IteratorAttributeSet for this tag,
or null if none can be foundpublic int getStartOffset()
getStartOffset in class HTMLDocument.Iteratorpublic int getEndOffset()
getEndOffset in class HTMLDocument.Iteratorpublic void next()
next in class HTMLDocument.Iteratorpublic HTML.Tag getTag()
getTag in class HTMLDocument.IteratorHTML.Tag that this iterator represents.HTML.Tagpublic boolean isValid()
null.
isValid in class HTMLDocument.Iteratornull,
otherwise returns falsevoid nextLeaf(ElementIterator iter)
iter - the iterator to be scannedvoid setEndOffset()
endOffset.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||