API / geotoolkit / controls / tools / editors / Registry / Registry
Registry that stores node editors
Constructors
Methods
▸ clone(): Registry
Return registry instance clone
▸ getClassName(): string
string
▸ getEditor(options): AbstractEditorBase<Node | Node[]>
Returns editor to edit node with provided options
Throws
if supported editor was not found and default editor was not set
| Name | Type | Description |
|---|---|---|
options | Record<string, any> | editor options |
AbstractEditorBase<Node | Node[]>
▸ register(editor): Registry
Registers editor to apply
| Name | Type | Description |
|---|---|---|
editor | AbstractEditorBase<Node | Node[]> | () => AbstractEditorBase<Node | Node[]> | editor |
this
▸ setDefaultEditor(editor): Registry
Sets default editor
| Name | Type | Description |
|---|---|---|
editor | AbstractEditorBase<Node | Node[]> | the editor |
this
▸ unregister(editorType): Registry
Unregister editors of provided type
| Name | Type | Description |
|---|---|---|
editorType | typeof AbstractEditorBase | the editor type |
▸ Static getClassName(): string
string
▸ Static getInstance(): Registry
Returns editors registry singleton instance