java.lang.Object | |
↳ | javax.swing.text.DefaultStyledDocument.ElementBuffer |
Class to manage changes to the element hierarchy.
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
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new ElementBuffer.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Changes content.
| |||||||||||
Creates a copy of this element, with a different
parent.
| |||||||||||
Gets the root element.
| |||||||||||
Inserts new content.
| |||||||||||
Removes content.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Updates the element structure in response to a change in the
document.
| |||||||||||
Inserts an update into the document.
| |||||||||||
Updates the element structure in response to a removal from the
associated sequence in the document.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new ElementBuffer.
root | the root element |
---|
Changes content.
offset | the starting offset >= 0 |
---|---|
length | the length >= 0 |
de | the event capturing this edit |
Creates a copy of this element, with a different parent.
parent | the parent element |
---|---|
clonee | the element to be cloned |
Inserts new content.
offset | the starting offset >= 0 |
---|---|
length | the length >= 0 |
data | the data to insert |
de | the event capturing this edit |
Removes content.
offset | the starting offset >= 0 |
---|---|
length | the length >= 0 |
de | the event capturing this edit |
Updates the element structure in response to a change in the document.
Inserts an update into the document.
data | the elements to insert |
---|
Updates the element structure in response to a removal from the associated sequence in the document. Any elements consumed by the span of the removal are removed.