Module flower.widget.BaseItemRenderer
This is the base class of the item renderer.
Info:
- Release: V3.0.0
- Author: Makoto
Functions
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:
- Red
- Green
- Blue
- Alpha
- BaseItemRenderer:getBottomBorderColor ()
-
Returns the bottom border color.
Returns:
- Red
- Green
- Blue
- 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