Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2016-0-4 21:24

Class enchant.widget.ConfirmScene

Class Summary
Constructor Attributes Constructor Name and Description
 
enchant.widget.ConfirmScene(content, acceptName, cancelName)
コンファームシーン.
Field Summary
Field Attributes Field Name and Description
<static>  
enchant.widget.ConfirmScene.onaccept
<static>  
enchant.widget.ConfirmScene.oncancel
Fields borrowed from class enchant.Group:
childNodes, firstChild, lastChild, originX, originY, rotation, scaleX, scaleY
Fields borrowed from class enchant.Node:
age, parentNode, scene, x, y

Method Summary

Methods borrowed from class enchant.Group:
addChild
insertBefore
removeChild
Methods borrowed from class enchant.Node:
moveBy
moveTo
Methods borrowed from class enchant.EventTarget:
addEventListener
clearEventListener
dispatchEvent
on
removeEventListener

Class Detail

enchant.widget.ConfirmScene(content, acceptName, cancelName)
コンファームシーン. 他の入力を遮り, 選択画面を表示する.
    var confirm = new ConfirmScene('よろしいですか', 'OK', 'NO');
    confirm.callback = function(bool) {
        // acceptならtrue, cancelならfalseが返ってってくる.
    };
    // cancel, accept個別に処理を設定することも可能.
    confirm.oncancel = function() {
    };
    confirm.onaccept = function() {
    };
Parameters:
{*} content
表示するコンテンツ.
{String} acceptName
了承ボタンのラベル.
{String} cancelName
キャンセルボタンのラベル.

Field Detail

<static> enchant.widget.ConfirmScene.onaccept
<static> enchant.widget.ConfirmScene.oncancel