調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
blockly > [イベント] > [抽象]
Events.Abstract クラス
イベントの抽象クラス。
署名:
export declare abstract class Abstract
コンストラクタ
プロパティ
プロパティ |
修飾子 |
タイプ |
説明 |
グループ |
|
文字列 |
このブロックが関連付けられているイベント グループの ID。 グループは、ユーザーの視点から単一のアクションとして扱われ、一緒に元に戻す必要があるイベントを定義します。 |
isBlank |
abstract |
ブール値 |
イベントが、必要なパラメータ(fromJson によって入力される)なしで作成されたかどうか。 |
isUiEvent |
|
ブール値 |
イベントが UI イベントかどうか。 |
recordUndo |
|
ブール値 |
このイベントを元に戻せるかどうか。 |
type |
|
文字列 |
このイベントのタイプ。 |
workspaceId? |
|
文字列 |
(省略可)このイベントのワークスペース ID。 |
メソッド
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-25 UTC。"],[[["`Events.Abstract` is a base class for all Blockly events, defining common properties and methods."],["It provides properties like `type`, `group`, `recordUndo`, and `isUiEvent` to describe event characteristics."],["Events can be serialized to JSON using `toJson()` and executed with `run()`."],["Subclasses implement specific event logic and data."],["`isBlank` property indicates if the event was created without full information, potentially to be filled by `fromJson()`."]]],["The `Events.Abstract` class serves as a base for event handling. Key properties include a `group` ID for related events, `isBlank` indicating incomplete construction, `isUiEvent` denoting UI-related events, and `recordUndo` determining if the event is undoable. Each event has a `type` and optionally a `workspaceId`. Core methods include `isNull()` to check for state change, `run()` to execute the event, and `toJson()` for JSON encoding.\n"]]