ListUi.ListUiItem Class Reference


Detailed Description

When using the ListUi class you define your list data as a tree using the classes ListUiItem and ListUiGroup.

Essentially, leafs of the tree are ListUiItems and the tree parents are ListUiGroups.

Consider the following data tree

+ Animals + Furry Rabbit Hamster + Cats Tabby Calico + Dogs + Little Wiener Dog Poodle + Big Great Dane Rhodesian Ridgeback + Sports + Winter Hockey Skiing + Summer Football Soccer Baseball Swimming

All of the following are ListUiItems: Rabbit, Hamster, Tabby, Calico, Wiener Dog, Poodle, Great Dane and Rhodesian Ridgeback, Hockey, Skiing, Football, Soccer, Baseball, and Swimming.

All of the following are ListUiGroups: Animals, Furry, Cats, Dogs, Little, Big, Sports, Winter, and Summer.

Every ListUiItem has a parent and a name.

You are free to associate any data with an item using the setData() method.

#include <class_list_ui_1_1_list_ui_item.h>

Inheritance diagram for ListUi.ListUiItem:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  __init__ ()
  setName ()
  Name must be a str.
  name ()
  setParent ()
  Parent must be ListUiGroup or None.
  parent ()
  setData ()
  Associate any data with the item.
  data ()

Member Function Documentation

ListUi.ListUiItem.__init__ ( )
ListUi.ListUiItem.setName ( )

Name must be a str.

ListUi.ListUiItem.name ( )
ListUi.ListUiItem.setParent ( )

Parent must be ListUiGroup or None.

ListUi.ListUiItem.parent ( )
ListUi.ListUiItem.setData ( )

Associate any data with the item.

ListUi.ListUiItem.data ( )

ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem
ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem ListUi.ListUiItem