Last updated

API / geotoolkit / controls / tools / editors / Registry / Registry

Class: Registry

editors.Registry.Registry

Registry that stores node editors

Table of contents

Constructors
Methods

Contents

Constructors

new Registry()

new Registry()

Methods

clone

clone(): Registry

Return registry instance clone

Returns

Registry


getClassName

getClassName(): string

Returns

string


getEditor

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

Parameters

Name Type Description
optionsRecord<string, any>editor options

Returns

AbstractEditorBase<Node | Node[]>


register

register(editor): Registry

Registers editor to apply

Parameters

Name Type Description
editorAbstractEditorBase<Node | Node[]> | () => AbstractEditorBase<Node | Node[]>editor

Returns

Registry

this


setDefaultEditor

setDefaultEditor(editor): Registry

Sets default editor

Parameters

Name Type Description
editorAbstractEditorBase<Node | Node[]>the editor

Returns

Registry

this


unregister

unregister(editorType): Registry

Unregister editors of provided type

Parameters

Name Type Description
editorTypetypeof AbstractEditorBasethe editor type

Returns

Registry


getClassName

Static getClassName(): string

Returns

string


getInstance

Static getInstance(): Registry

Returns editors registry singleton instance

Returns

Registry