API Docs for: 最后更新日期:2014年8月25日
Google搜索   
Show:

File: events/LFocusEvent.js

/** @language japanese
 * <p>LFocusEvent オブジェクトは、ユーザーが表示リストの 1 つのオブジェクトから別のオブジェクトにフォーカスを変更したときに、オブジェクトによって送出されます。</p>
 * @class LFocusEvent
 * @constructor
 * @since 1.9.0
 * @example
 * 	LInit(50, "legend", 800, 480, main);
 * 	function main () {
 * 		LGlobal.setDebug(true);
 * 		var theTextField1 = new LTextField();
 * 		theTextField1.x = 20;
 * 		theTextField1.y = 20;
 * 		theTextField1.setType(LTextFieldType.INPUT);
 * 		addChild(theTextField1);
 * 		theTextField1.addEventListener(LFocusEvent.FOCUS_IN, onfocus);
 * 		theTextField1.addEventListener(LFocusEvent.FOCUS_OUT, outfocus);
 * 		var theTextField2 = new LTextField();
 * 		theTextField2.x = 20;
 * 		theTextField2.y = 100;
 * 		theTextField2.setType(LTextFieldType.INPUT);
 * 		addChild(theTextField2);
 * 		theTextField2.addEventListener(LFocusEvent.FOCUS_IN, onfocus);
 * 		theTextField2.addEventListener(LFocusEvent.FOCUS_OUT, outfocus);
 * 	}
 * 	function onfocus(e){
 * 		trace(e.currentTarget + "(" + e.currentTarget.objectIndex + ") FOCUS_IN");
 * 	}
 * 	function outfocus(e){
 * 		trace(e.currentTarget + "(" + e.currentTarget.objectIndex + ") FOCUS_OUT");
 * 	}
 * @examplelink <p><a href="../../../api/LFocusEvent/index.html" target="_blank">実際のサンプルを見る</a></p>
 * @public
 */
var LFocusEvent = function (){throw "LFocusEvent cannot be instantiated";};
/** @language japanese
 * [静的] focusIn イベントオブジェクトの type プロパティ値を定義します。(今LTextField オブジェクトでしかサポートされていません)
 * <p>このイベントには、次のプロパティがあります。</p>
 * <table>
 * <tr><th>属性</th><th>值</th></tr>
 * <tr><td>currentTarget</td><td>イベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。</td></tr>
 * <tr><td>target</td><td>このイベントにcurrentTargetと同じです.</td></tr>
 * </table>
 * @property FOCUS_IN
 * @type String
 * @static
 * @since 1.9.0
 * @public
 */
LFocusEvent.FOCUS_IN = "focusIn";
/** @language japanese
 * [静的] focusOut イベントオブジェクトの type プロパティ値を定義します。(今LTextField オブジェクトでしかサポートされていません)
 * <p>このイベントには、次のプロパティがあります。</p>
 * <table>
 * <tr><th>属性</th><th>值</th></tr>
 * <tr><td>currentTarget</td><td>イベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。</td></tr>
 * <tr><td>target</td><td>このイベントにcurrentTargetと同じです.</td></tr>
 * </table>
 * @property FOCUS_OUT
 * @type String
 * @static
 * @since 1.9.0
 * @public
 */
LFocusEvent.FOCUS_OUT = "focusOut";