1 19 20 package org.netbeans.modules.xml.xam.dom; 21 22 import org.netbeans.modules.xml.xam.*; 23 import org.w3c.dom.Element ; 24 import org.w3c.dom.Node ; 25 26 30 public interface DocumentComponent<C extends DocumentComponent> extends Component<C> { 31 public static final String TEXT_CONTENT_PROPERTY = "textContent"; 32 33 36 Element getPeer(); 37 38 41 String getAttribute(Attribute attribute); 42 43 49 void setAttribute(String eventPropertyName, Attribute attribute, Object value); 50 51 54 boolean isInDocumentModel(); 55 56 61 int findPosition(); 62 63 66 boolean referencesSameNode(Node n); 67 68 71 public C findChildComponent(Element e); 72 73 76 public int findAttributePosition(String attributeName); 77 } 78 | Popular Tags |