Configurator
Public Member Functions | List of all members
TreeWidget.TreeItem Class Reference

Abstract base class used to specialize the Tree widget. More...

Inheritance diagram for TreeWidget.TreeItem:
configurator.Shared_Tree_Item TreeWidget.FileTreeItem

Public Member Functions

def __init__
 
def delete
 
def prepend
 
def append
 
def child_append
 
def GetText
 
def GetLabelText
 
def IsExpandable
 
def IsEditable
 
def SetText
 
def GetIconName
 
def GetSelectedIconName
 
def GetSubList
 
def OnSelect
 
def OnDoubleClick
 

Detailed Description

Abstract base class used to specialize the Tree widget.

Abstract class representing tree items.

Methods should typically be overridden, otherwise a default action
is used.

The TreeItem class is used to provide an abstract interface to the tree widget functionality.

Constructor & Destructor Documentation

def TreeWidget.TreeItem.__init__ (   self)
Constructor.  Do whatever you need to do.

Member Function Documentation

def TreeWidget.TreeItem.append (   self,
  new_item,
  root_tree_node 
)
TreeNode: Prepend *new_item* to *self* using *root_tree_node*
as the root of the entire tree.  Do not override this method. 
def TreeWidget.TreeItem.child_append (   self,
  item,
  root_tree_node 
)
TreeNode: Append *new_item* to *self* using *root_tree_node*
as the root of the entire tree.  Do no override this method. 
def TreeWidget.TreeItem.GetIconName (   self)
Return name of icon to be displayed normally.
def TreeWidget.TreeItem.GetLabelText (   self)
Return label text string to display in front of text (if any).
def TreeWidget.TreeItem.GetSelectedIconName (   self)
Return name of icon to be displayed when selected.
def TreeWidget.TreeItem.GetSubList (   self)
Return list of items forming sublist.
def TreeWidget.TreeItem.GetText (   self)
Return text string to display.
def TreeWidget.TreeItem.IsEditable (   self)
Return whether the item's text may be edited.
def TreeWidget.TreeItem.IsExpandable (   self)
Return whether there are subitems.
def TreeWidget.TreeItem.OnDoubleClick (   self)
Called when item is selected.
Called on a double-click on the item.
def TreeWidget.TreeItem.prepend (   self,
  new_item,
  root_tree_node 
)
TreeNode: Delete *self* from the tree rooted at
*root_tree_node*.  Do not ovrerride this mehod. 
def TreeWidget.TreeItem.SetText (   self,
  text 
)
Change the item's text (if it is editable).

Member Data Documentation

TreeWidget.TreeItem.expandable None
static
Do not override!  Called by TreeNode.
tuple TreeWidget.TreeItem.node root_tree_node.node_find(self)
static
TreeNode: Append *item* to the children of *self*.
*root_tree_node* is needed to find the *TreeNode*
associated with *self*. 

The documentation for this class was generated from the following file: