<?xml version="1.0" encoding="UTF-8"?>
<application-components>
	<!--
		JSProf 2 Version:
	-->
	
	<application-component id="wideselect">
		<![CDATA[
		component_init:function(){
			// Create a contex-sensitive handler
			//
			this.createHandler("result_click",0,0,1);
			this.getStatus().local_result_click = this.getContainer().getAttribute("localresultclick");

			var fp = this._prehandle_result_click;//(sHandler && typeof eval(sHandler) == "function" ? eval(sHandler) : this._prehandle_result_click);
			this.getPointers().wide_select = org.cote.js.ui.wideselect.newInstance(this.getContainer(), fp);

			// default wideselect style is to hide an absolutely positioned container, so
			// change the style to accomodate a fixed location
			//
			this.getPointers().wide_select.getContainer().style.position = "relative";
			this.getPointers().wide_select.getContainer().style.display = "block";
			this.getPointers().wide_select.getContainer().style.height = "100px";
			
			this.getPointers().wide_select.setMaximumItems(0);
			/*
			for(var i = 0; i < 150; i++){
				this.getPointers().wide_select.addItem("Test " + i,"Test");
			}
			*/
		},
		component_destroy : function(){
			this._prehandle_result_click = 0;
		},
		_handle_result_click : function(v,b){
			if(this.getStatus().local_result_click){
				eval(this.getStatus().local_result_click)();
			}
			else{
				//alert('default result click: ' + this.getObjectId());
			}
		},
		GetWideSelect : function(){
			return this.getPointers().wide_select;
		}
		]]>
	</application-component>
</application-components>