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
alternateBackgroundSkin:DisplayObject
The display object to use as the background skin when the alternate skin is enabled.
The following example passes a bitmap to use as an alternate background skin:
itemRenderer.alternateBackgroundSkin = new Bitmap(bitmapData);
1.0.0
.See also:
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:
showHoverAndDownStates:Bool
Indicates if hover and down states are enabled or not. Can be set to
false
for items that are intended for display only, and should not
appear interactive for mouse and keyboard trigger events or selection.
The ToggleButtonState.UP
state will be used instead of
ToggleButtonState.HOVER
and ToggleButtonState.DOWN
. However, the
item may still render differently when selected versus when it is not
selected.
1.3.0
.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: