コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
blockly > イベント > 選択済み > (コンストラクタ)
Events.Selected.(コンストラクタ)
Selected
クラスの新しいインスタンスを作成します。
署名:
constructor(opt_oldElementId?: string | null, opt_newElementId?: string | null, opt_workspaceId?: string);
パラメータ
パラメータ |
型 |
説明 |
opt_oldElementId |
文字列 |null |
(省略可)前に選択した要素の ID。最後に選択された要素がない場合、null。空のイベントの場合は未定義です。 |
opt_newElementId |
文字列 | null |
(省略可)選択した要素の ID。要素が現在選択されていない場合は null(選択解除)。空のイベントの場合は未定義です。 |
opt_workspaceId |
文字列 |
(省略可)このイベントのワークスペース ID。以前に要素が選択されていない場合は null。空のイベントの場合は未定義。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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。"],[],["The `Selected` class constructor creates a new instance, capturing element selection changes. It accepts optional parameters: `opt_oldElementId` (ID of the previously selected element, can be null), `opt_newElementId` (ID of the currently selected element, can be null), and `opt_workspaceId` (the workspace's identifier). Null values indicate no element was previously or is currently selected, while undefined indicates a blank event. These parameters detail the selection change and its context within a specific workspace.\n"]]