javax.swing.text
public class AbstractDocument.LeafElement extends AbstractDocument.AbstractElement
Constructor Summary | |
---|---|
LeafElement(Element parent, AttributeSet attributes, int start, int end)
Creates a new LeafElement .
|
Method Summary | |
---|---|
Enumeration | children()
Returns null since LeafElement s cannot have
children.
|
boolean | getAllowsChildren()
Returns false since LeafElement s cannot have
children.
|
Element | getElement(int index)
Returns null since LeafElement s cannot have
children.
|
int | getElementCount()
Returns 0 since LeafElement s cannot have
children.
|
int | getElementIndex(int offset)
Returns -1 since LeafElement s cannot have
children.
|
int | getEndOffset()
Returns the end offset of this Element inside the
document.
|
String | getName()
Returns the name of this Element . |
int | getStartOffset()
Returns the start offset of this Element inside the
document.
|
boolean | isLeaf()
Returns true .
|
String | toString()
Returns a string representation of this Element .
|
LeafElement
.
Parameters: parent the parent of this LeafElement
attributes the attributes to be set start the start index of this element inside the document model end the end index of this element inside the document model
null
since LeafElement
s cannot have
children.
Returns: null
since LeafElement
s cannot have
children
false
since LeafElement
s cannot have
children.
Returns: false
since LeafElement
s cannot have
children
null
since LeafElement
s cannot have
children.
Returns: null
since LeafElement
s cannot have
children
0
since LeafElement
s cannot have
children.
Returns: 0
since LeafElement
s cannot have
children
-1
since LeafElement
s cannot have
children.
Returns: -1
since LeafElement
s cannot have
children
Element
inside the
document.
Returns: the end offset of this Element
inside the
document
Element
. This is
{@link #ContentElementName} in this case.
Returns: the name of this Element
Element
inside the
document.
Returns: the start offset of this Element
inside the
document
true
.
Returns: true
Element
.
Returns: a string representation of this Element