[ Previous section | Next section | Table of Contents ]

The Container Item

The ContainerItem class is a non-visual class which represents an item in a list which can be displayed by a DataContainer. Each ContainerItem may contain an image, a string of labeling text, and a set of column data. There may be any number of column data of any object type.

A ContainerItem knows how to be a member of a list of ContainerItems and/or the parent of a list of ContainerItems. All lists are maintained as doubly linked lists.

A method for the ContainerItem, traverse(), is provided for traversing the sibling and child lists for the current ContainerItem.


Required Classes

There are five classes involved with implementing the Notebook control.

ContainerItem This is the class which represents an item in a list or tree for display by the DataContainer class.
ItemProcessor This interface defines the callback method used when traversing a list or tree of ContainerItems.


[ Previous section | Next section | Table of Contents ]