class LayoutGroupItemRenderer
package feathers.controls.dataRenderers
extends LayoutGroup › FeathersControl › MeasureSprite › ValidatingSprite
implements IPointerDelegate, IToggle, IDataRenderer, ILayoutIndexObject, IStateContext<ToggleButtonState>
A generic renderer with support for layout that may support any number of
children. Designed to be used by UI components that display data
collections, such as ListView
.
1.0.0
.See also:
Constructor
Variables
read onlycurrentState:ToggleButtonState
The current state of the item renderer.
When the value of the currentState
property changes, the item renderer
will dispatch an event of type FeathersEvent.STATE_CHANGE
.
1.0.0
.See also:
selectedBackgroundSkin:DisplayObject
The default background skin to display behind all content added to the group. The background skin is resized to fill the complete width and height of the group.
The following example gives the group a selected background skin:
group.selectedBackgroundSkin = new Bitmap(bitmapData);
group.selected = true;
1.0.0
.See also:
Methods
getSkinForState(state:ToggleButtonState):DisplayObject
Gets the skin to be used by the itenm renderer when its currentState
property matches the specified state value.
If a skin is not defined for a specific state, returns null
.
1.0.0
.See also:
setSkinForState(state:ToggleButtonState, skin:DisplayObject):Void
Set the skin to be used by the item renderer when its currentState
property matches the specified state value.
If a skin is not defined for a specific state, the value of the
backgroundSkin
property will be used instead.
1.0.0
.See also: