|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Unsafe:
Method Summary | |
AttributeSet |
getAttributes()
Enabled: Fetches the collection of attributes this element contains. |
Document |
getDocument()
Enabled: Fetches the document associated with this element. |
Element |
getElement(int index)
Enabled: Fetches the child element at the given index. |
int |
getElementCount()
Enabled: Gets the number of child elements contained by this element. |
int |
getElementIndex(int offset)
Enabled: Gets the child element index closest to the given offset. |
int |
getEndOffset()
Enabled: Fetches the offset from the beginning of the document that this element ends at. |
String |
getName()
Enabled: Fetches the name of the element. |
Element |
getParentElement()
Enabled: Fetches the parent element. |
int |
getStartOffset()
Enabled: Fetches the offset from the beginning of the document that this element begins at. |
boolean |
isLeaf()
Enabled: Is this element a leaf element? An element that may have children, even if it currently has no children, would return false . |
Method Detail |
public Document getDocument()
public Element getParentElement()
null
.
public String getName()
public AttributeSet getAttributes()
public int getStartOffset()
Document
,
AbstractDocument
public int getEndOffset()
All the default Document
implementations
descend from AbstractDocument
.
AbstractDocument
models an implied break at the end of
the document. As a result of this, it is possible for this to
return a value greater than the length of the document.
Document
,
AbstractDocument
public int getElementIndex(int offset)
-1
if the
Element
is a leaf, otherwise returns
the index of the Element
that best represents
the given location. Returns 0
if the location
is less than the start offset. Returns
getElementCount() - 1
if the location is
greater than or equal to the end offset.
offset
- the specified offset >= 0
public int getElementCount()
public Element getElement(int index)
index
- the specified index >= 0
public boolean isLeaf()
false
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |