Top Description Fields Constructors Methods
org.eclipse.swt.widgets

pack-priv Class EventTable

extends Object
Class Inheritance
Imports
org.eclipse.swt.*, org.eclipse.swt.internal.*

Instances of this class implement a simple look up mechanism that maps an event type to a listener. Multiple listeners for the same event type are supported.

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv int
pack-priv Listener[]
pack-priv int[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Listener[]
getListeners(int eventType)

public void
hook(int eventType, Listener listener)

public boolean
hooks(int eventType)

pack-priv void
remove(int index)

public void
public int
size()

public void
unhook(int eventType, Listener listener)

public void
unhook(int eventType, SWTEventListener listener)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GROW_SIZEback to summary
pack-priv static final int GROW_SIZE
levelback to summary
pack-priv int level
listenersback to summary
pack-priv Listener[] listeners
typesback to summary
pack-priv int[] types

Constructor Detail

EventTableback to summary
pack-priv EventTable()

Method Detail

getListenersback to summary
public Listener[] getListeners(int eventType)
hookback to summary
public void hook(int eventType, Listener listener)
hooksback to summary
public boolean hooks(int eventType)
removeback to summary
pack-priv void remove(int index)
sendEventback to summary
public void sendEvent(Event event)
sizeback to summary
public int size()
unhookback to summary
public void unhook(int eventType, Listener listener)
unhookback to summary
public void unhook(int eventType, SWTEventListener listener)