| Package | jp.naggg.ui |
| Class | public class TextInputEnd |
| Inheritance | TextInputEnd flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
| delay : uint [read-only] 遅延時間、ミリ秒で指定します. | TextInputEnd | ||
| target : DisplayObject [read-only] 対象となる、TextField TextInput TextArea インスタンス. | TextInputEnd | ||
| Method | Defined By | ||
|---|---|---|---|
TextInputEnd(target:DisplayObject, delay:uint)
コンストラクタ.
| TextInputEnd | ||
init(target:DisplayObject, delay:uint):void
初期化を行います.
| TextInputEnd | ||
reset():void
リセットを行います.
プロパティの開放やリスナーの削除などを行います.
TextInputEnd インスタンスを破棄する場合、事前に必ず呼び出してください.
| TextInputEnd | ||
toString():String [override]
文字列表現を返します.
| TextInputEnd | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| 連続したテキスト入力を終えさらにテキスト変更があったときに配信されるイベントです. | TextInputEnd | |||
| delay | property |
delay:uint [read-only] 遅延時間、ミリ秒で指定します.
public function get delay():uint| target | property |
target:DisplayObject [read-only] 対象となる、TextField TextInput TextArea インスタンス.
public function get target():DisplayObject| TextInputEnd | () | Constructor |
public function TextInputEnd(target:DisplayObject, delay:uint)コンストラクタ.
Parameterstarget:DisplayObject — 対象の TextField TextInput TextArea のインスタンスです.
| |
delay:uint — テキスト入力を終えたとみなすタイミングです.
|
| init | () | method |
public function init(target:DisplayObject, delay:uint):void初期化を行います.
Parameters
target:DisplayObject — 対象の TextField TextInput TextArea のインスタンスです.
| |
delay:uint — テキスト入力を終えたとみなすタイミングです.
|
| reset | () | method |
public function reset():voidリセットを行います. プロパティの開放やリスナーの削除などを行います. TextInputEnd インスタンスを破棄する場合、事前に必ず呼び出してください.
| toString | () | method |
override public function toString():String文字列表現を返します.
ReturnsString |
| complete | Event |
flash.events.Eventflash.events.Event.COMPLETE連続したテキスト入力を終えさらにテキスト変更があったときに配信されるイベントです.
import jp.naggg.ui.TextInputEnd;
var tf:TextField = new TextField();
var tie:TextInputEnd = new TextInputEnd(tf, 500);
tie.addEventListener(Event.COMPLETE, textInputEndCompleteHandler);
// 特定の単語を含むかを確認
function textInputEndCompleteHandler(evt:Event):void{
if(tf.text.indexOf("someword") > -1){
trace("OK");
}else{
trace("NG");
}
}