java.lang.Object | ||
↳ | javax.swing.text.AbstractDocument.AbstractElement | |
↳ | javax.swing.text.AbstractDocument.LeafElement |
![]() |
Implements an element that directly represents content of some kind.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an element that represents content within the
document (has no children).
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the children of the receiver as an
Enumeration . | |||||||||||
Returns true if the receiver allows children.
| |||||||||||
Gets a child element.
| |||||||||||
Returns the number of child elements.
| |||||||||||
Gets the child element index closest to the given model offset.
| |||||||||||
Gets the ending offset in the model for the element.
| |||||||||||
Gets the element name.
| |||||||||||
Gets the starting offset in the model for the element.
| |||||||||||
Checks whether the element is a leaf.
| |||||||||||
Converts the element to a string.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructs an element that represents content within the document (has no children).
parent | The parent element |
---|---|
a | The element attributes |
offs0 | The start offset >= 0 |
offs1 | The end offset >= offs0 |
Returns the children of the receiver as an
Enumeration
.
Returns true if the receiver allows children.
Gets a child element.
index | the child index, >= 0 && < getElementCount() |
---|
Returns the number of child elements.
Gets the child element index closest to the given model offset.
pos | the offset >= 0 |
---|
Gets the ending offset in the model for the element.
Gets the starting offset in the model for the element.
Checks whether the element is a leaf.