Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Prosedürler > ObservableProcedureMap
Procedures.ObservableProcedureMap sınıfı
İmza:
export declare class ObservableProcedureMap extends Map<string, IProcedureModel> implements IProcedureMap
Genişletir: Map<string, IProcedureModel>
Uygulandığı yer: IProcedureMap
Bu sınıfın oluşturucusu dahili olarak işaretlendi. Üçüncü taraf kodu, oluşturucuyu doğrudan çağırmamalı veya ObservableProcedureMap
sınıfını genişleten alt sınıflar oluşturmamalıdır.
Yöntemler
Yöntem |
Değiştiriciler |
Açıklama |
add(proc) |
|
Blokların bulabilmesi için, verilen ProcedureModel'i prosedür modelleri haritasına ekler. |
clear() |
|
ProcedureModel'leri prosedür haritasından kaldırır. |
delete(id) |
|
Belirtilen kimliğe sahip ProcedureModel'i prosedür haritasından (varsa) siler. |
getProcedures() |
|
Bu haritada depolanan tüm prosedürleri döndürür. |
set(id; proc) |
|
Belirtilen prosedür modelini prosedür haritasına ekler. |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-08-22 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2024-08-22 UTC."],[[["`ObservableProcedureMap` is a class that manages a collection of `ProcedureModel` objects, allowing for efficient retrieval and manipulation of procedures within Blockly."],["This class extends the standard JavaScript `Map` and implements the `IProcedureMap` interface, providing methods for adding, deleting, and accessing procedures."],["`ObservableProcedureMap`'s constructor is internal, meaning it is not intended for direct use by external code; instead, developers should interact with it through its public methods."],["Key methods include `add`, `clear`, `delete`, `getProcedures`, and `set`, which enable the management of procedures within the map."]]],["The `ObservableProcedureMap` class, extending `Map`, manages a collection of `IProcedureModel` objects. Key actions include adding procedures via `add` or `set`, removing them with `delete` or `clear` for all, and retrieving all stored procedures using `getProcedures`. This class implements the `IProcedureMap` interface. The constructor is internal, preventing direct instantiation by third-party code.\n"]]