Class TypedListener
- java.lang.Object
-
- org.eclipse.swt.widgets.TypedListener
-
- All Implemented Interfaces:
Listener
public class TypedListener extends java.lang.Object implements Listener
Instances of this class are internal SWT implementation objects which provide a mapping between the typed and untyped listener mechanisms that SWT supports.IMPORTANT: This class is not part of the SWT public API. It is marked public only so that it can be shared within the packages provided by SWT. It should never be referenced from application code.
- See Also:
Listener
-
-
Field Summary
Fields Modifier and Type Field Description protected SWTEventListenereventListenerThe receiver's event listener
-
Constructor Summary
Constructors Constructor Description TypedListener(SWTEventListener listener)Constructs a new instance of this class for the given event listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SWTEventListenergetEventListener()Returns the receiver's event listener.voidhandleEvent(Event e)Handles the given event.
-
-
-
Constructor Detail
-
TypedListener
public TypedListener(SWTEventListener listener)
Constructs a new instance of this class for the given event listener.IMPORTANT: This method is not part of the SWT public API. It is marked public only so that it can be shared within the packages provided by SWT. It should never be referenced from application code.
- Parameters:
listener- the event listener to store in the receiver
-
-
Method Detail
-
getEventListener
public SWTEventListener getEventListener()
Returns the receiver's event listener.IMPORTANT: This method is not part of the SWT public API. It is marked public only so that it can be shared within the packages provided by SWT. It should never be referenced from application code.
- Returns:
- the receiver's event listener
-
handleEvent
public void handleEvent(Event e)
Handles the given event.IMPORTANT: This method is not part of the SWT public API. It is marked public only so that it can be shared within the packages provided by SWT. It should never be referenced from application code.
- Specified by:
handleEventin interfaceListener- Parameters:
e- the event to handle
-
-