Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Prosedürler > IParameterModel
Procedures.IparameterModel arayüzü
Prosedür için veri modeli.
İmza:
export interface IParameterModel
Yöntemler
Yöntem |
Açıklama |
getId() |
Parametrenin dilden bağımsız olarak benzersiz kimliğini döndürür. Bu, zaman içinde değişmeyen değişken modelinin kimliğini gösterir. |
getName() |
Bu parametrenin adını döndürür. |
getTypes() |
Bu parametrenin türlerini döndürür. |
saveState() |
Parametrenin durumunu JSON biçiminde serileştirir. |
setName(name) |
Bu parametrenin adını verilen ad olarak ayarlar. |
setProcedureModel(model) |
Bu parametrenin ilişkilendirildiği prosedür modelini ayarlar. |
setTypes(types) |
Bu parametrenin türlerini verilen türe ayarlar. |
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-09-12 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-09-12 UTC."],[[["The `Procedures.IParameterModel` interface defines a data model for procedure parameters in Blockly."],["It includes methods to manage a parameter's ID, name, and types, as well as its association with a procedure model."],["`IParameterModel` provides functionality to save and load the parameter's state using JSON serialization."],["Developers can use this interface to interact with and manipulate procedure parameter data within Blockly applications."]]],["The `Procedures.IParameterModel` interface defines a data model for a procedure parameter. Key actions include retrieving parameter information via `getId()`, `getName()`, and `getTypes()`, which return the unique ID, name, and types of the parameter, respectively. `saveState()` serializes the parameter's state to JSON. Modification actions include `setName()`, `setProcedureModel()`, and `setTypes()`, which allow updating the parameter's name, its associated procedure model, and its type.\n"]]