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]
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 background 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

Create input control for editing this item. Should return a new instance of some subclass of FXWindow.

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 is selected

Set item value from input control (an instance of some subclass of FXWindow).

Change item icon, deleting the previous item icon if it was owned by this table item.

Return the text for this table item

[Validate]