Module flower.widget.ListItem
It is the item class ListBox.
Used from the ListBox.
Extends:
Info:
- Release: V3.0.0
- Author: Makoto
Functions
ListItem:_initInternal () | Initialize a variables |
ListItem:_createChildren () | Create the children. |
ListItem:_createIconImage () | Create the iconImage. |
ListItem:updateDisplay () | Update the display. |
ListItem:setData (data, dataIndex) | Set the data and rowIndex. |
ListItem:getData () | Return the data. |
ListItem:getDataIndex () | Return the data index. |
ListItem:getIconIndex () | Return the icon index. |
ListItem:setSelected (selected) | Set the selected. |
ListItem:isSelected () | Returns true if selected. |
ListItem:getText () | Returns the text. |
ListItem:getLabelField () | Returns the labelField. |
ListItem:setIconVisible (iconVisible) | Sets the icon visible. |
Fields
STYLE_ICON_VISIBLE | Style: iconVisible |
STYLE_ICON_TEXTURE | Style: iconTexture |
STYLE_ICON_TILE_SIZE | Style: iconTileSize |
Functions
- ListItem:_initInternal ()
- Initialize a variables
- ListItem:_createChildren ()
- Create the children.
- ListItem:_createIconImage ()
- Create the iconImage.
- ListItem:updateDisplay ()
- Update the display.
- ListItem:setData (data, dataIndex)
-
Set the data and rowIndex.
Parameters:
- data data
- dataIndex index of the data
- ListItem:getData ()
-
Return the data.
Returns:
-
data
- ListItem:getDataIndex ()
-
Return the data index.
Returns:
-
data index
- ListItem:getIconIndex ()
-
Return the icon index.
Returns:
-
icon index
- ListItem:setSelected (selected)
-
Set the selected.
Parameters:
- selected
- ListItem:isSelected ()
-
Returns true if selected.
Returns:
-
true if selected
- ListItem:getText ()
-
Returns the text.
Returns:
-
text
- ListItem:getLabelField ()
-
Returns the labelField.
Returns:
-
labelField
- ListItem:setIconVisible (iconVisible)
-
Sets the icon visible.
Parameters:
- iconVisible