Implements an element that directly represents content of
some kind.
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.
public AbstractDocument.LeafElement
(Element parent, AttributeSet a, int offs0, int offs1)
Constructs an element that represents content within the
document (has no children).
Constructs an element that represents content within the document (has no children).
Parameters: - parent - The parent element
- a - The element attributes
- offs0 - The start offset >= 0
- offs1 - The end offset >= offs0
Since:
1.4
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),