|
org.netbeans.modules.xml.xam/1 1.18.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentComponent<C extends DocumentComponent>
A component in model.
| Field Summary | |
|---|---|
static String |
TEXT_CONTENT_PROPERTY
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.netbeans.modules.xml.xam.Component |
|---|
canPaste, copy, getChildren, getChildren, getChildren, getModel, getParent |
| Field Detail |
|---|
static final String TEXT_CONTENT_PROPERTY
| Method Detail |
|---|
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)
|
org.netbeans.modules.xml.xam/1 1.18.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||