/**
* ...
* @author Default
* @version 0.1
*/

package classes.matuto.ui.combobox.classic {
	
	import flash.display.Sprite;
	
	public class ItemCombobox extends Sprite{
		
		public var value	:Object;
		public var label	:String;
		
		
		public function ItemCombobox() {
			
			
			
		}
		
		
		
		public override function set width(valor :Number) :void
		{
			
			
			//this.width = valor;
			/*_fundo.width = valor;
			_txt.width = _fundo.width - _txt.x;*/
			
		}
		
		
		public function setItem(obj :Object) :void
		{
			
			/*try{
				_txt.text 	= obj.label;
				//_txt.scrollRect = new Rectangle(0, 0, _fundo.width, _txt.height );
			}catch (e :Error)
			{
				
			}*/
			
			value = obj.value;
			label = obj.label;
			
		}
		
	}
	
}
