class ListItemData extends IScriptable
{
	var label : String;
}

import class ListItemController extends inkButtonController
{
	public import function GetIndex() : Int32;
	public import function GetData() : weak< IScriptable >;
	public import function IsSelected() : Bool;
	public import function IsToggled() : Bool;

	editable var m_labelPathRef : inkTextRef;

	protected event OnInitialize() {}

	protected event OnDataChanged( value : IScriptable )
	{
		var data : ListItemData;
		data = ( ( ListItemData )( value ) );
		if( inkTextRef.IsValid( m_labelPathRef ) )
		{
			inkTextRef.SetText( m_labelPathRef, data.label );
		}
	}

	protected event OnSetCursorOver()
	{
		SetCursorOverWidget( GetRootWidget() );
	}

}

