Class Fox::FXTableItem
In: rdoc-sources/FXTable.rb
Parent: FXObject

Represents a particular cell in an FXTable.

Methods

Attributes

borders  [RW]  Which borders will be drawn for this cell (some combination of LBORDER, RBORDER, TBORDER and BBORDER) [Integer]
data  [RW]  User data associated with this cell [Object]
draggable  [W]  Indicates whether this item is draggable [Boolean]
enabled  [W]  Indicates whether this item is enabled [Boolean]
focus  [W]  Indicates whether this item has the focus [Boolean]
icon  [RW]  Icon associated with this cell [FXIcon]
iconOwned  [W]  Indicates whether the table item "owns" its icon, i.e. whether the icon associated with this table item will be destroyed when the item is destroyed [Boolean]
iconPosition  [RW]  The icon’s position in the cell, relative to the text (one of BEFORE, AFTER, ABOVE or BELOW) [Integer]
justify  [RW]  Indicates how the text in the cell will be justified. This value is some combination of the horizontal justification flags LEFT, CENTER_X and RIGHT, and the vertical justification flags TOP, CENTER_Y and BOTTOM.
selected  [W]  Indicates whether this item is selected [Boolean]
stipple  [RW]  The stipple pattern for this cell [Integer]
text  [RW]  Text associated with this cell [String]

Public Class methods

Return an initialized FXTableItem instance.

Parameters:

text:the text for this table item [String]
icon:the icon, if any, for this table item [FXIcon]
data:the user data for this table item [Object]

Public Instance methods

Create the server-side resources associated with this table item

Destroy the server-side resources associated with this table item

Detach the server-side resources associated with this table item

Return true if this item is draggable

Draw this table item

Draw background behind the cell

Return true if this item is enabled

Return the height of this item (in pixels)

Return the width of this item (in pixels)

Return true if this item has the focus

Return true if this item owns its icon, i.e. if the icon associated with this table item will be destroyed when the table item is destroyed.

Return true if this item is selected

Return the text for this table item

[Validate]