protected class DefaultStyledDocument.SectionElement
Default root element for a document...
Default root element for a document... maps out the
paragraphs/lines contained.
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.
Returns the index of node in the receivers children.
Returns the index of node in the receivers children. If the receiver does not contain node, -1 will be returned.
Returns:
the index of node in the receiver's
children, or -1 if absent
Parameters: - node - the location of interest
Gets the resolving parent. If not overridden, the resolving parent defaults to the parent element.
Returns:
the attributes from the parent, null if none
See Also:AttributeSet.getResolveParent(),
Checks whether a given attribute is defined.
Returns:
true if the attribute is defined
Parameters: - attrName - the non-null attribute name
See Also:AttributeSet.isDefined(java.lang.Object),
Replaces content with a new set of elements.
Parameters: - offset - the starting offset >= 0
- length - the length to replace >= 0
- elems - the new elements