Module flower.widget.BaseItemRenderer

This is the base class of the item renderer.

Info:

  • Release: V3.0.0
  • Author: Makoto

Functions

BaseItemRenderer:_initInternal () Initialize a variables
BaseItemRenderer:_createChildren () Create the children.
BaseItemRenderer:_createBackground () Create the background objects.
BaseItemRenderer:_createRenderers () Create the renderer objects.
BaseItemRenderer:_updateBackground () Update the background objects.
BaseItemRenderer:updateDisplay () Update the display objects.
BaseItemRenderer:setData (data) Set the data.
BaseItemRenderer:getData () Return the data.
BaseItemRenderer:setDataIndex (index) Set the data index.
BaseItemRenderer:setHostComponent (component) Set the host component with the renderer.
BaseItemRenderer:getHostComponent () Return the host component.
BaseItemRenderer:getBackgroundColor () Returns the background color.
BaseItemRenderer:getBottomBorderColor () Returns the bottom border color.
BaseItemRenderer:isBackgroundVisible () Returns the background visible.
BaseItemRenderer:isBottomBorderVisible () Returns the bottom border visible.
BaseItemRenderer:setPressed (pressed) Sets the pressed.
BaseItemRenderer:setSelected (selected) Sets the selected.

Fields

STYLE_BACKGROUND_COLOR Style: backgroundColor
STYLE_BACKGROUND_PRESSED_COLOR Style: backgroundPressedColor
STYLE_BACKGROUND_SELECTED_COLOR Style: backgroundSelectedColor
STYLE_BOTTOM_BORDER_COLOR Style: bottomBorderColor


Functions

BaseItemRenderer:_initInternal ()
Initialize a variables
BaseItemRenderer:_createChildren ()
Create the children.
BaseItemRenderer:_createBackground ()
Create the background objects.
BaseItemRenderer:_createRenderers ()
Create the renderer objects.
BaseItemRenderer:_updateBackground ()
Update the background objects.
BaseItemRenderer:updateDisplay ()
Update the display objects.
BaseItemRenderer:setData (data)
Set the data.

Parameters:

  • data data
BaseItemRenderer:getData ()
Return the data.

Returns:

    data
BaseItemRenderer:setDataIndex (index)
Set the data index.

Parameters:

  • index index of data.
BaseItemRenderer:setHostComponent (component)
Set the host component with the renderer.

Parameters:

  • component component.
BaseItemRenderer:getHostComponent ()
Return the host component.

Returns:

    host component
BaseItemRenderer:getBackgroundColor ()
Returns the background color.

Returns:

  1. Red
  2. Green
  3. Blue
  4. Alpha
BaseItemRenderer:getBottomBorderColor ()
Returns the bottom border color.

Returns:

  1. Red
  2. Green
  3. Blue
  4. Alpha
BaseItemRenderer:isBackgroundVisible ()
Returns the background visible.

Returns:

    True if display the background
BaseItemRenderer:isBottomBorderVisible ()
Returns the bottom border visible.

Returns:

    True if display the bottom border.
BaseItemRenderer:setPressed (pressed)
Sets the pressed.

Parameters:

  • pressed pressed
BaseItemRenderer:setSelected (selected)
Sets the selected.

Parameters:

  • selected selected

Fields

STYLE_BACKGROUND_COLOR
Style: backgroundColor
STYLE_BACKGROUND_PRESSED_COLOR
Style: backgroundPressedColor
STYLE_BACKGROUND_SELECTED_COLOR
Style: backgroundSelectedColor
STYLE_BOTTOM_BORDER_COLOR
Style: bottomBorderColor
generated by LDoc 1.3