Stay organized with collections
Save and categorize content based on your preferences.
blockly > fieldRegistry
fieldRegistry namespace
Functions
Function |
Description |
register(type, fieldClass) |
Registers a field type. fieldRegistry.fromJson uses this registry to find the appropriate field type. |
unregister(type) |
Unregisters the field registered with the given type. |
Interfaces
Interface |
Description |
RegistrableField |
Represents the static methods that must be defined on any field that is registered, i.e. the constructor and fromJson methods. Because we don't know which Field subclass will be registered, we are unable to typecheck the parameters of the constructor. |
Variables
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[],[]]