|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.editor.BaseElement
Element implementation. It serves as parent class for both leaf and branch elements.
| Field Summary | |
|---|---|
protected AttributeSet |
attrs
Atributes of this element |
protected BaseDocument |
doc
Reference to document this element is part of |
static String |
ElementNameAttribute
Element name attribute |
protected BaseElement |
parent
Parent element |
| Constructor Summary | |
|---|---|
BaseElement(BaseDocument doc,
BaseElement parent,
AttributeSet attrs)
|
|
| Method Summary | |
|---|---|
AttributeSet |
getAttributes()
Get attributes of this element |
Document |
getDocument()
Get document this element is part of |
abstract Element |
getElement(int index)
Get child of this element at specified index |
abstract int |
getElementCount()
Get number of children of this element |
abstract int |
getElementIndex(int offset)
Gets the child element index closest to the given offset. |
abstract Mark |
getEndMark()
Get end mark of this element |
abstract int |
getEndOffset()
Get end offset of this element |
String |
getName()
Get element name if defined |
Element |
getParentElement()
Get parent element |
abstract Mark |
getStartMark()
Get start mark of this element |
abstract int |
getStartOffset()
Get start offset of this element |
abstract boolean |
isLeaf()
Does this element have any children? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ElementNameAttribute
protected BaseDocument doc
protected BaseElement parent
protected AttributeSet attrs
| Constructor Detail |
|---|
public BaseElement(BaseDocument doc, BaseElement parent, AttributeSet attrs)
| Method Detail |
|---|
public Document getDocument()
getDocument in interface Elementpublic Element getParentElement()
getParentElement in interface Elementpublic String getName()
public AttributeSet getAttributes()
getAttributes in interface Elementpublic abstract int getStartOffset()
getStartOffset in interface Elementpublic abstract Mark getStartMark()
public abstract int getEndOffset()
getEndOffset in interface Elementpublic abstract Mark getEndMark()
public abstract Element getElement(int index)
getElement in interface Elementpublic abstract int getElementIndex(int offset)
getElementIndex in interface Elementpublic abstract int getElementCount()
getElementCount in interface Elementpublic abstract boolean isLeaf()
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||