| Class | Fox::FXTreeItem |
| In: |
rdoc-sources/FXTreeList.rb
lib/fox12/core.rb lib/fox12/iterators.rb |
| Parent: | FXObject |
Each item in an FXTreeList is an instance of FXTreeItem.
A tree item can contain zero or more child items, and those items are arranged as a linked list. The FXTreeItem#first method returns the a reference to the first child item, if any, and the FXTreeItem#last method returns a reference to the last child item.
Return a new FXTreeItem instance, initialized with the specified text, open-state icon, closed-state icon and user data.
Return a reference to the closed-state icon (an FXIcon instance) for this tree item, or nil if none was specified.
Set the closed-state icon (an FXIcon instance) for this tree item, or nil if no icon should be used.
Return a reference to the user data for this tree item, or nil if no user data has been associated with this tree item.
Set the user data (a reference to any kind of object) for this tree item, or nil if no user data needs to be associated with this item.
Calls block once for each child of this tree item, passing a reference to that child item as a parameter.
Return a reference to the first child item for this tree item, or nil if this tree item has no child items.
Return a reference to the last child item for this tree item, or nil if this tree item has no child items.
Return a reference to the next sibling item for this tree item, or nil if this is the last item in the parent item’s list of child items.
Return a reference to the opened-state icon (an FXIcon instance) for this tree item, or nil if none was specified.
Set the opened-state icon (an FXIcon instance) for this tree item, or nil if no icon should be used.