Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.util.IndexedEventListenerList< T extends EventListener > Class Template Reference
+ Inheritance diagram for com.realtime.crossfire.jxclient.util.IndexedEventListenerList< T extends EventListener >:
+ Collaboration diagram for com.realtime.crossfire.jxclient.util.IndexedEventListenerList< T extends EventListener >:

Public Member Functions

void add (final int index, @NotNull final T listener)
 Adds a listener. More...
 
Iterable< T > getListeners (final int index)
 Returns all the listeners by index. More...
 
void remove (final int index, @NotNull final T listener)
 Removes a listener. More...
 

Private Member Functions

EventListenerList2< T > getLocationListeners (final int index)
 

Private Attributes

final List< EventListenerList2< T > > locationListeners = new ArrayList<>()
 The registered listeners to be notified about changes. More...
 

Detailed Description

Definition at line 29 of file IndexedEventListenerList.java.

Member Function Documentation

◆ add()

void com.realtime.crossfire.jxclient.util.IndexedEventListenerList< T extends EventListener >.add ( final int  index,
@NotNull final T  listener 
)

Adds a listener.

Parameters
indexthe listener's index
listenerthe listener

Definition at line 42 of file IndexedEventListenerList.java.

Referenced by com.realtime.crossfire.jxclient.items.AbstractItemView.addLocationListener().

+ Here is the caller graph for this function:

◆ getListeners()

Iterable<T> com.realtime.crossfire.jxclient.util.IndexedEventListenerList< T extends EventListener >.getListeners ( final int  index)

Returns all the listeners by index.

Parameters
indexthe listener's index
Returns
all the listeners

Definition at line 61 of file IndexedEventListenerList.java.

Referenced by com.realtime.crossfire.jxclient.items.AbstractItemView.deliverEvents().

+ Here is the caller graph for this function:

◆ getLocationListeners()

◆ remove()

void com.realtime.crossfire.jxclient.util.IndexedEventListenerList< T extends EventListener >.remove ( final int  index,
@NotNull final T  listener 
)

Removes a listener.

Parameters
indexthe listener's index
listenerthe listener

Definition at line 51 of file IndexedEventListenerList.java.

Referenced by com.realtime.crossfire.jxclient.items.AbstractItemView.removeLocationListener().

+ Here is the caller graph for this function:

Member Data Documentation

◆ locationListeners

final List<EventListenerList2<T> > com.realtime.crossfire.jxclient.util.IndexedEventListenerList< T extends EventListener >.locationListeners = new ArrayList<>()
private

The documentation for this class was generated from the following file: