Last updated

API / geotoolkit / widgets / SelectionChangeEventArgs / SelectionChangeEventArgs

Class: SelectionChangeEventArgs

widgets.SelectionChangeEventArgs.SelectionChangeEventArgs

This class holds the details of a selection change event. You can access the id of the selected object using this object.

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new SelectionChangeEventArgs(eventName, id, type)

new SelectionChangeEventArgs(eventName, id?, type?)

Parameters

Name Type Description
eventNamestringinformation about the events arguments
Optional idstring
Optional typestringselection type ('line', 'fill', 'axis' or 'legend')

Overrides

BaseEventArgs.constructor

Methods

getEventName

getEventName(): string

Returns event name

Returns

string

Inherited from

BaseEventArgs.getEventName


getId

getId(): string

return selected id

Returns

string


getType

getType(): string

Gets selection type

Returns

string


isCanceled

isCanceled(): boolean

Returns whether event has been cancelled

Returns

boolean

Inherited from

BaseEventArgs.isCanceled


isPreventDefault

isPreventDefault(): boolean

Returns whether event has been prevented default

Returns

boolean

Inherited from

BaseEventArgs.isPreventDefault


preventDefault

preventDefault(): SelectionChangeEventArgs

Prevents default

Returns

SelectionChangeEventArgs

this

Inherited from

BaseEventArgs.preventDefault


stopPropagation

stopPropagation(): SelectionChangeEventArgs

Stops propagation

Returns

SelectionChangeEventArgs

this

Inherited from

BaseEventArgs.stopPropagation