11 #include "AbstractLeafItem.h"
13 #include "IException.h"
18 AbstractLeafItem::AbstractLeafItem(AbstractTreeItem *parent) :
19 AbstractTreeItem(parent) {
23 AbstractLeafItem::~AbstractLeafItem() {
27 AbstractTreeItem *AbstractLeafItem::childAt(
int row)
const {
28 IString msg =
"childAt() called on an AbstractLeafItem!";
34 IString msg =
"getChildren() called on an AbstractLeafItem!";
39 int AbstractLeafItem::indexOf(AbstractTreeItem *child)
const {
40 IString msg =
"indexOf() called on an AbstractLeafItem!";
45 int AbstractLeafItem::childCount()
const {
50 void AbstractLeafItem::addChild(AbstractTreeItem *child) {
51 IString msg =
"addChild() called on an AbstractLeafItem!";
56 AbstractTreeItem *AbstractLeafItem::getFirstVisibleChild()
const {
61 AbstractTreeItem *AbstractLeafItem::getLastVisibleChild()
const {
66 void AbstractLeafItem::setFirstVisibleChild(AbstractTreeItem *) {
67 IString msg =
"setFirstVisibleChild() called on an AbstractLeafItem!";
72 void AbstractLeafItem::setLastVisibleChild(AbstractTreeItem *) {
73 IString msg =
"setLastVisibleChild() called on an AbstractLeafItem!";