scaffold.libs_as.feathers.controls.renderers.IGroupedListItemRenderer.as Maven / Gradle / Ivy
/*
Feathers
Copyright 2012-2015 Bowler Hat LLC. All Rights Reserved.
This program is free software. You can redistribute and/or modify it in
accordance with the terms of the accompanying license agreement.
*/
package feathers.controls.renderers
{
import feathers.controls.*;
import feathers.core.IToggle;
/**
* Dispatched when the the user taps or clicks the item renderer. The touch
* must remain within the bounds of the item renderer on release to register
* as a tap or a click.
*
* The properties of the event object have the following values:
*
* Property Value
* bubbles
false
* currentTarget
The Object that defines the
* event listener that handles the event. For example, if you use
* myButton.addEventListener()
to register an event listener,
* myButton is the value of the currentTarget
.
* data
null
* target
The Object that dispatched the event;
* it is not always the Object listening for the event. Use the
* currentTarget
property to always access the Object
* listening for the event.
*
*
* @eventType starling.events.Event.TRIGGERED
*/
[Event(name="triggered",type="starling.events.Event")]
/**
* Interface to implement a renderer for a grouped list item.
*/
public interface IGroupedListItemRenderer extends IToggle
{
/**
* An item from the grouped list's data provider. The data may change if
* this item renderer is reused for a new item because it's no longer
* needed for the original item.
*
* This property is set by the list, and should not be set manually.
*/
function get data():Object;
/**
* @private
*/
function set data(value:Object):void;
/**
* The index of the item's parent group within the data provider of the
* grouped list.
*
* This property is set by the list, and should not be set manually.
*/
function get groupIndex():int;
/**
* @private
*/
function set groupIndex(value:int):void;
/**
* The index of the item within its parent group.
*
* This property is set by the list, and should not be set manually.
*/
function get itemIndex():int;
/**
* @private
*/
function set itemIndex(value:int):void;
/**
* The index of the item within the layout.
*
* This property is set by the list, and should not be set manually.
*/
function get layoutIndex():int;
/**
* @private
*/
function set layoutIndex(value:int):void;
/**
* The grouped list that contains this item renderer.
*
* This property is set by the list, and should not be set manually.
*/
function get owner():GroupedList;
/**
* @private
*/
function set owner(value:GroupedList):void;
/**
* The ID of the factory used to create this item renderer.
*
* This property is set by the list, and should not be set manually.
*/
function get factoryID():String;
/**
* @private
*/
function set factoryID(value:String):void;
}
}