API / geotoolkit / attributes / IAttributeNode / IStyleListener
attributes.IAttributeNode.IStyleListener
Define an object which can connect to geotoolkit/attributes/Style
Interface
Constructors
Methods
Methods
▸ Abstract connectStyle(style, type, callback): IStyleListener
Connects style.
This convenience method subscribes a listener to given style for the specified type.
And automatically un-subscribes listener if node is disposed to prevent memory leaks
| Name | Type | Description |
|---|---|---|
style | EventDispatcher | connect style |
type | string | type of event or property |
callback | AttributeCallback<EventDispatcher> | function to be called |
this
▸ Abstract disconnectStyle(style, type, callback): IStyleListener
Disconnect style
This convenience method un-subscribes a listener to given style for the specified type.
| Name | Type | Description |
|---|---|---|
style | EventDispatcher | connect style |
type | string | type of event or property |
callback | AttributeCallback<EventDispatcher> | function to be called |
this