Class Fox::FXFoldingItem
In: rdoc-sources/FXFoldingList.rb
Parent: FXObject

An FXFoldingItem is an item in an FXFoldingList widget.

Methods

Attributes

above  [R]  Item logically above this item [FXFoldingItem]
below  [R]  Item logically below this item [FXFoldingItem]
closedIcon  [RW]  Closed icon [FXIcon]
data  [RW]  User data [Object]
draggable  [W]  Indicates whether the item is draggable [Boolean]
enabled  [W]  Indicates whether the item is enabled [Boolean]
expanded  [W]  Indicates whether the item is expanded [Boolean]
first  [R]  First child item [FXFoldingItem]
last  [R]  Last child item [FXFoldingItem]
next  [R]  Next sibling item [FXFoldingItem]
numChildren  [R]  Number of child items [Integer]
openIcon  [RW]  Open icon [FXIcon]
opened  [W]  Indicates whether the item is opened [Boolean]
parent  [R]  Parent item [FXFoldingItem]
prev  [R]  Previous sibling item [FXFoldingItem]
selected  [W]  Indicates whether the item is selected [Boolean]
text  [RW]  Item text [String]

Public Class methods

Public Instance methods

Return true if this item is a descendant of item.

Create this folding item

Destroy this folding item

Detach this folding item

Returns true if this item is draggable

Returns true if this item is enabled

Returns true if this item is expanded

Get the height of this item

Get the width of this item

Returns true if this item has the focus

Change has items flag to true or false.

Return true if subitems, real or imagined

Returns true if this item is opened

Return true if this item is an ancestor of item.

Returns true if this item is selected

Change closed icon to icn, deleting old icon if it was owned. If owned is true, mark icn as owned by this folding item.

Set the focus on this folding item (focus is either true or false)

Change open icon to icn, deleting old icon if it was owned. If owned is true, mark icn as owned by this folding item.

Returns the item‘s text

[Validate]