public interface DocumentComponent<C extends DocumentComponent> extends Component<C>
Modifier and Type | Field and Description |
---|---|
static String |
TEXT_CONTENT_PROPERTY |
Modifier and Type | Method and Description |
---|---|
int |
findAttributePosition(String attributeName)
Returns position of the attribute by the given name, or -1 if not found.
|
C |
findChildComponent(Element e)
Returns child component backed by given element node.
|
int |
findPosition()
Returns the position of this component in the schema document,
expressed as an offset from the start of the document.
|
String |
getAttribute(Attribute attribute) |
Element |
getPeer()
Returns the DOM element corresponding to this component.
|
boolean |
isInDocumentModel()
Returns true if the component is part of the document model.
|
boolean |
referencesSameNode(Node n)
Returns true if the node referenced by this component is n.
|
void |
setAttribute(String eventPropertyName,
Attribute attribute,
Object value)
Sets the attribute value.
|
canPaste, copy, getChildren, getChildren, getChildren, getModel, getParent
static final String TEXT_CONTENT_PROPERTY
Element getPeer()
String getAttribute(Attribute attribute)
void setAttribute(String eventPropertyName, Attribute attribute, Object value)
eventPropertyName
- name property change event to fire.attribute
- the attribute to set value for.value
- for the attribute.boolean isInDocumentModel()
int findPosition()
boolean referencesSameNode(Node n)
C findChildComponent(Element e)
int findAttributePosition(String attributeName)