INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Parent of all TreeView elements"
project: "Visual Eiffel"
revision: "$Revision: 1.2 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: dm
deferred class DM_TREE_ITEM
feature

text: STRING
-- item label
ensure
item_label_not_void: Result /= void

count: INTEGER
-- children count
ensure
positive_count: Result >= 0

item (i: INTEGER): DM_TREE_ITEM
-- child item access
require
valid_index: i > 0 and then i <= count
ensure
consistent_item: count > 0 implies Result /= void

is_expanded: BOOLEAN

set_expanded
-- on next redraw all children will be shown

set_collapsed
-- on next redraw all children will be hidden

tree_item_bitmap: DM_BITMAP
-- bitmap for a item
-- if you do not want assosiate a bitmap with the item
-- this function should return zero

tree_item_bitmap_selected: DM_BITMAP
-- bitmap for a selected item
-- if you do not want assosiate a bitmap with the item
-- this function should return zero

bitmap_handle: INTEGER

bitmap_selected_handle: INTEGER
end -- class DM_TREE_ITEM

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES