Class TypedListener
- All Implemented Interfaces:
Listener
- Direct Known Subclasses:
DNDListener, StyledTextListener
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EventListenerDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionTypedListener(EventListener listener) Deprecated, for removal: This API element is subject to removal in a future version.TypedListener(SWTEventListener listener) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.voidhandleEvent(Event e) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
eventListener
@Deprecated(forRemoval=true, since="3.129.0 (removal in 2027-03 or later)") protected EventListener eventListenerDeprecated, for removal: This API element is subject to removal in a future version.The receiver's event listener
-
-
Constructor Details
-
TypedListener
Deprecated, for removal: This API element is subject to removal in a future version.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
-
TypedListener
@Deprecated(forRemoval=true, since="3.129.0 (removal in 2027-03 or later)") public TypedListener(EventListener listener) Deprecated, for removal: This API element is subject to removal in a future version.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 Details
-
getEventListener
@Deprecated(forRemoval=true, since="3.129.0 (removal in 2027-03 or later)") public EventListener getEventListener()Deprecated, for removal: This API element is subject to removal in a future version.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
@Deprecated(forRemoval=true, since="3.129.0 (removal in 2027-03 or later)") public void handleEvent(Event e) Deprecated, for removal: This API element is subject to removal in a future version.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
-
Widget.addTypedListener(EventListener, int...),Widget.getTypedListeners(int, Class)orWidget.removeTypedListener(int, EventListener)can probably be used instead.