blockly > イベント > CommentChange

Events.CommentChange クラス

ワークスペースのコメントの内容が変更されたことをリスナーに通知します。

署名:

export declare class CommentChange extends CommentBase 

拡張: CommentBase

コンストラクタ

コンストラクタ 修飾子 説明
(constructor)(opt_comment, opt_oldContents, opt_newContents) CommentChange クラスの新しいインスタンスを作成します。

プロパティ

プロパティ 修飾子 タイプ 説明
newContents_? 文字列 (省略可)コメントの新しい内容。
oldContents_? 文字列 (省略可)コメントの以前のコンテンツ。
type EventType

メソッド

メソッド 修飾子 説明
isNull() このイベントは状態の変化を記録しますか?
run(forward) 変更イベントを実行します。
toJson() イベントを JSON としてエンコードします。