Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This Class inherits methods and properties from the Widget Base Class. See  Widget Base Class  for more information about setting your Object's x, y, w, and h properties or adding children to it.

Methods

Name 

Description 

clear

Removes all child elements from the group or removes all content from the list.

get

Retrieves contents of a specific cell in the list.

select

Selects the specified row.

set

Sets the contents of the given cell in the List.

setColumnWidths

Sets the widths of each column in pixels. If the last value is set to 0, it will use all remaining space to fill the list's width.

Properties

Name 

Description 

cellFunc

Function that takes row and column numbers as parameters and returns the text for a cell. When this property is set, the function is immediately executed.

cols 

Number of columns. Columns are numbered from 0, starting on the left.

onchange

Callback function called when the selection changes.

rowHeight 

Number of pixels high each row should be. Defaults to Text.LINE_HEIGHT in D40, D50, and D70, but defaults to Text.ROW_HEIGHT for D6X models.

rows 

Number of rows the list contains. Rows are numbered from 0, starting at the top of the list.

selected

Returns the currently selected row number or set the row you wish to be selected.