|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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.Iterator
AttributeSet
for this tag,
or null
if none can be foundpublic int getStartOffset()
getStartOffset
in class HTMLDocument.Iterator
public int getEndOffset()
getEndOffset
in class HTMLDocument.Iterator
public void next()
next
in class HTMLDocument.Iterator
public HTML.Tag getTag()
getTag
in class HTMLDocument.Iterator
HTML.Tag
that this iterator represents.HTML.Tag
public boolean isValid()
null
.
isValid
in class HTMLDocument.Iterator
null
,
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 |