ListViewItem - Kirix Documentation

Developer Resources

ListViewItem

Overview

The ListViewItem class represents an item in a list view control.

Constructor

ListViewItem(label : String, bitmap : Bitmap)

Arguments

label
The text that appears on the list item.
bitmap
The image that appears on the list item.

Methods

ListViewItem.getBitmap
Retrieves the bitmap image of a list view item
ListViewItem.getColumnText
Retrieves the subitem text of a list view item
ListViewItem.getIndex
Retrieves the index of a list view item
ListViewItem.getText
Retrieves the label text of a list view item
ListViewItem.setBitmap
Sets the bitmap of a list view item
ListViewItem.setColumnText
Sets the text of a list view subitem.
ListViewItem.setText
Sets the label text of a list view item

ListViewItem.getBitmap

function ListViewItem.getBitmap() : Bitmap

Returns

A bitmap object containing the item's image

Description

Retrieves the bitmap of a list view item

ListViewItem.getColumnText

function ListView.getColumnText(column_index : Integer) : String

Arguments

column_index
The zero-based index of the column to get

Returns

A string containing the text of the item's subitem label

Description

Retrieves the subitem text of a list view item. The subitem text values are only displayed in Detail view mode. column_index parameter is zero-based, meaning that passing zero to this parameter will retrieve the item's normal label text.

ListViewItem.getIndex

function ListView.getIndex() : Integer

Returns

The index of the list view item

Description

Retrieves the zero-based index of an item inside a list view control

ListViewItem.getText

function ListViewItem.getText() : String

Returns

A string containing the text of the item's label

Description

Retrieves the label text of a list view item

ListViewItem.setBitmap

function ListViewItem.setBitmap(bitmap : Bitmap) : Boolean

Arguments

Bitmap
The new bitmap of the list view item

Returns

True if the bitmap was properly set, false otherwise

Description

Sets the bitmap of a list view item

ListViewItem.setColumnText

function ListView.setColumnText(column_index : Integer, text : String) : Boolean

Arguments

column_index
The zero-based index of the column to set

Returns

True if the item text was properly set, false otherwise

Description

Calling setColumnText() sets the text of a list view subitem. Subitem text values are only displayed in Detail view mode. The column_index parameter is zero-based, meaning that passing zero to this parameter will change the item's label text.

ListViewItem.setText

function ListViewItem.setText(text : String) : Boolean

Arguments

text
The new text of the list view item

Returns

True if the item text was properly set, false otherwise

Description

Sets the label text of a list view item