[Classes] [Prev] [Next] [Methods]

CTreeNodeItem

Methods Index

Heritage
Description
Protected Data Members
Public Methods
Constructor and Destructor Methods
Access Methods
Protected Methods

CTreeNodeItem


Heritage

Superclass: CTreeItem

Subclass: None


Description

See the description for CTreeItem.

See the Usage section for CTreeItem.


Protected Data Members

UNITS itsCompositeHeight; The height of this node plus all its children.
RWSortedVector itsChildren; A collection of children.
BOOLEAN itsIsCollapsed; TRUE is this node is currently collapsed.
const CTreeSorter* itsSorter; A temporary for sorting items


Public Methods

Constructor and Destructor Methods

CTreeNodeItem(CTreeNodeItem* itsParent, 
const CTreeAttributes* theAttributes);
virtual ~CTreeNodeItem();

Access Methods

virtual CTreeItem* GetChild(unsigned long i);
virtual const CTreeItem* GetChild(
unsigned long i) const;
virtual void AddChild(CTreeItem* theItem);
virtual CTreeItem* AddChild(
const CTreeItemInfo& theInfo,
const CStringRW& theString = NULLString);
virtual CTreeNodeItem* AddNodeChild(
const CStringRW& theString = NULLString);
virtual CTreeItem* AddTerminalChild(
const CStringRW& theString = NULLString);
virtual void RemoveChild(unsigned long i);
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);
virtual void Expand(BOOLEAN theRecurse = FALSE, 
BOOLEAN theRefresh = FALSE);
virtual void Collapse(BOOLEAN theRecurse = FALSE);
virtual BOOLEAN IsTerminal() const;
virtual UNITS SetHeight(UNITS theHeight);
UNITS ChildToOffset(const CTreeItem* theChild) const;
const CTreeItem& OffsetToChild(
UNITS theOffset) const;
CTreeItem* OffsetToChild(UNITS theOffset);
const CTreeSorter* GetSorter() const;
BOOLEAN IsCollapsed() const;

Protected Methods

CTreeNodeItem(const CTreeNodeItem& theCopy) : 
CTreeItem(theCopy) { }
CTreeNodeItem& operator=(
const CTreeNodeItem& theCopy) { return *this; }


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.