Class: EventCallbackList

olympe.ui.events. EventCallbackList

Head of linked list that contains events callbacks


new EventCallbackList()

Creates an instance of EventCallbackList.

Members


<nullable> first :olympe.ui.events.EventCallback

private

Type:

Methods


clear()

Removes all callbacks from this list.


contains(eventCallback)

Checks whether this list contains one specific callback.

Parameters:
Name Type Description
eventCallback olympe.ui.events.EventCallback

The callback to check for.

Returns:

true if the callback is present in the list.

Type
boolean

getFirst()

Returns the first element of the list. Null if the list is empty.

Returns:

the first element of the list

Type
olympe.ui.events.EventCallback

hasFirst()

Checks whether the list contains at least one element (i.e. is not empty).

Returns:

true is the list is not empty

Type
boolean

removeFirst()

Removes the first element if it exists.


setFirst(eventCallback)

Set the first element of the list.

Parameters:
Name Type Description
eventCallback olympe.ui.events.EventCallback

the callback to set as first of the list


toString()

Gets a string representation of the list.

Returns:

the string representation

Type
string