431 |
{ |
{ |
432 |
return Collections.enumeration(tree_children); |
return Collections.enumeration(tree_children); |
433 |
} |
} |
434 |
|
|
435 |
public boolean getAllowsChildren() |
public boolean getAllowsChildren() |
436 |
{ |
{ |
437 |
return true; |
return true; |
438 |
} |
} |
439 |
|
|
440 |
public TreeNode getChildAt(int index) |
public TreeNode getChildAt(int index) |
441 |
{ |
{ |
442 |
return (TreeNode) tree_children.get(index); |
return (TreeNode) tree_children.get(index); |
443 |
} |
} |
444 |
|
|
445 |
public int getChildCount() |
public int getChildCount() |
446 |
{ |
{ |
447 |
return tree_children.size(); |
return tree_children.size(); |
448 |
} |
} |
449 |
|
|
450 |
public int getIndex(TreeNode node) |
public int getIndex(TreeNode node) |
451 |
{ |
{ |
452 |
return tree_children.indexOf(node); |
return tree_children.indexOf(node); |
551 |
{ |
{ |
552 |
return AbstractDocument.this; |
return AbstractDocument.this; |
553 |
} |
} |
554 |
|
|
555 |
public Element getElement(int index) |
public Element getElement(int index) |
556 |
{ |
{ |
557 |
return (Element) element_children.get(index); |
return (Element) element_children.get(index); |
558 |
} |
} |
559 |
|
|
560 |
public String getName() |
public String getName() |
561 |
{ |
{ |
562 |
return (String) getAttribute(NameAttribute); |
return (String) getAttribute(NameAttribute); |
563 |
} |
} |
564 |
|
|
565 |
public Element getParentElement() |
public Element getParentElement() |
566 |
{ |
{ |
567 |
return element_parent; |
return element_parent; |
568 |
} |
} |
569 |
|
|
570 |
public abstract int getEndOffset(); |
public abstract int getEndOffset(); |
571 |
|
|
572 |
public abstract int getElementCount(); |
public abstract int getElementCount(); |
573 |
|
|
574 |
public abstract int getElementIndex(int offset); |
public abstract int getElementIndex(int offset); |
575 |
|
|
576 |
public abstract int getStartOffset(); |
public abstract int getStartOffset(); |
577 |
} |
} |
578 |
|
|