Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
blockly > Prosedur > IParameterModel
Antarmuka Procedures.IParameterModel
Model data untuk prosedur.
Tanda Tangan:
export interface IParameterModel
Metode
Metode |
Deskripsi |
getId() |
Menampilkan ID unik bahasa netral untuk parameter. Ini mewakili identifikasi model variabel yang tidak berubah dari waktu ke waktu. |
getName() |
Menampilkan nama parameter ini. |
getTypes() |
Menampilkan jenis parameter ini. |
saveState() |
Menserialisasikan status parameter ke JSON. |
setName(name) |
Menetapkan nama parameter ini ke nama yang diberikan. |
setProcedureModel(model) |
Menetapkan model prosedur yang dikaitkan dengan parameter ini. |
setTypes(types) |
Menetapkan jenis parameter ini ke jenis yang diberikan. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-12 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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"]]