Last updated

API / geotoolkit / attributes / IAttributeNode / IStyleListener

Class: IStyleListener

attributes.IAttributeNode.IStyleListener

Define an object which can connect to geotoolkit/attributes/Style

Interface

Implemented by

Table of contents

Constructors
Methods

Contents

Constructors

new IStyleListener()

new IStyleListener()

Methods

connectStyle

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

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher>function to be called

Returns

IStyleListener

this


disconnectStyle

Abstract disconnectStyle(style, type, callback): IStyleListener

Disconnect style
This convenience method un-subscribes a listener to given style for the specified type.

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher>function to be called

Returns

IStyleListener

this