API / geotoolkit / controls / toolbar / ButtonRegistry / ButtonRegistry
toolbar.ButtonRegistry.ButtonRegistry
This class provides registry of toolbar buttons
Constructors
Constructors
• new ButtonRegistry()
Methods
▸ getButton(id): Button
Returns button clone by its string identifier or null, if no such button registered
| Name | Type | Description |
|---|---|---|
id | string | button string identifier |
▸ getClassName(): string
string
▸ getIds(): string[]
Returns registered button identifiers list
string[]
▸ register(id, button): ButtonRegistry
Registers button with the provided id. When registered, it can be used in toolbar by a single string identifier.
| Name | Type | Description |
|---|---|---|
id | string | string button identifier for later use in toolbar |
button | Button | Options | button to register or its options object |
▸ Static getClassName(): string
string
▸ Static getInstance(): ButtonRegistry
Returns singleton instance of the button registry