| Methods Index |
Heritage
Superclass: CTreeItem
Description
See the description for CTreeItem.CTreeItem.
Protected Data Members
Public Methods
Constructor and Destructor Methods
CTreeNodeItem(CTreeNodeItem* itsParent,
const CTreeAttributes* theAttributes);
virtual ~CTreeNodeItem();
virtual CTreeItem* GetChild(unsigned long i); virtual const CTreeItem* GetChild(
unsigned long i) const;
i-th child of this node. Ordering is not guaranteed.
virtual void AddChild(CTreeItem* theItem);
virtual CTreeItem* AddChild(
const CTreeItemInfo& theInfo,
const CStringRW& theString = NULLString);
CTreeItemInfo obect to this node.
virtual CTreeNodeItem* AddNodeChild(
const CStringRW& theString = NULLString);
virtual CTreeItem* AddTerminalChild(
const CStringRW& theString = NULLString);
virtual void RemoveChild(unsigned long i);
i-th child from this node.
virtual const CImage* GetExpandedImage() const;
virtual const CImage* GetCollapsedImage() const;
virtual UNITS GetCompositeHeight() const;
virtual unsigned long GetNChildren() const;
virtual unsigned long GetNVisibleChildren() const;
virtual void SortChildren(
const CTreeSorter* theSorter,
BOOLEAN theRecursive = TRUE);
theRecursive is TRUE, the method descends the tree to any child nodes.
virtual void Expand(BOOLEAN theRecurse = FALSE,
BOOLEAN theRefresh = FALSE);
theRecurse is TRUE, the method expands any children that are also nodes. If theRefresh is TRUE, the method redraws the view.
virtual void Collapse(BOOLEAN theRecurse = FALSE);
theRecurse is TRUE, the method collapses any children that are also nodes.
virtual BOOLEAN IsTerminal() const;
TRUE if this item is not a node.
virtual UNITS SetHeight(UNITS theHeight);
CTreeItem::kBestHeight to let the item calculate its own height.
UNITS ChildToOffset(const CTreeItem* theChild) const;
const CTreeItem& OffsetToChild(
UNITS theOffset) const; CTreeItem* OffsetToChild(UNITS theOffset);
const CTreeSorter* GetSorter() const;
BOOLEAN IsCollapsed() const;
TRUE if this node is currently collapsed.
CTreeNodeItem(const CTreeNodeItem& theCopy) :
CTreeItem(theCopy) { } CTreeNodeItem& operator=(
const CTreeNodeItem& theCopy) { return *this; }