Implements a composite element that contains other elements.
Implements a composite element that contains other elements.
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.
Constructs a composite element that initially contains
no children.
Constructs a composite element that initially contains no children.
Parameters: - parent - The parent element
- a - the attributes for the element
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),
public void
replace
(int offset, int length, Element elems)
Replaces content with a new set of elements.
Replaces content with a new set of elements.
Parameters: - offset - the starting offset >= 0
- length - the length to replace >= 0
- elems - the new elements