An element that represents a chunk of text that has
a set of HTML character level attributes assigned to
it.
See also:
Constructors
public HTMLDocument.RunElement
(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 (must be at least 0)
- offs1 - the end offset (must be at least 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. HTML attributes are not inherited at the model level so we override this to return null.
Returns:
null, there are 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),