public class JWordDocument.HeaderElement
extends javax.swing.text.AbstractDocument.BranchElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME_HEADER |
static int |
index |
Constructor and Description |
---|
HeaderElement(javax.swing.text.Element parent,
javax.swing.text.AttributeSet attr)
constructor
|
HeaderElement(javax.swing.text.Element parent,
javax.swing.text.AttributeSet attr,
int offset,
int length)
constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the element name.
|
int |
getSectionNo()
returns section no
|
boolean |
isLeaf()
Checks whether the element is a leaf.
|
void |
setSectionNo(int sectionNo)
sets section no
|
children, getAllowsChildren, getElement, getElementCount, getElementIndex, getEndOffset, getStartOffset, positionToElement, replace, toString
addAttribute, addAttributes, containsAttribute, containsAttributes, copyAttributes, dump, getAttribute, getAttributeCount, getAttributeNames, getAttributes, getChildAt, getChildCount, getDocument, getIndex, getParent, getParentElement, getResolveParent, isDefined, isEqual, removeAttribute, removeAttributes, removeAttributes, setResolveParent
public static final int index
public static final java.lang.String ELEMENT_NAME_HEADER
public HeaderElement(javax.swing.text.Element parent, javax.swing.text.AttributeSet attr, int offset, int length)
parent
- attr
- offset
- length
- public HeaderElement(javax.swing.text.Element parent, javax.swing.text.AttributeSet attr)
parent
- attr
- public int getSectionNo()
public void setSectionNo(int sectionNo)
sectionNo
- public java.lang.String getName()
getName
in interface javax.swing.text.Element
getName
in class javax.swing.text.AbstractDocument.BranchElement
public boolean isLeaf()
isLeaf
in interface javax.swing.text.Element
isLeaf
in interface javax.swing.tree.TreeNode
isLeaf
in class javax.swing.text.AbstractDocument.BranchElement