Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > fieldRegistry > RegistrableField
FieldRegistry.RegistrableField arayüzü
Kayıtlı herhangi bir alanda (ör. oluşturucu ve fromJson yöntemleri) tanımlanması gereken statik yöntemleri temsil eder.
Hangi Alan alt sınıfının kaydedileceğini bilmediğimiz için kurucunun parametrelerini yazım denetimi yapamıyoruz.
İmza:
export interface RegistrableField
Yöntemler
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: 2025-07-25 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: 2025-07-25 UTC."],[],["The `RegistrableField` interface defines the required static methods for any registered field in the Blockly `fieldRegistry`. It mandates the presence of a constructor (`new`) and a `fromJson` method. Due to the dynamic nature of field registration, the constructor's parameter types cannot be checked. These methods are essential for creating new field instances and loading fields from JSON configurations, respectively. This interface ensures all fields can be registered and utilized.\n"]]