Top Description Constructors Methods
org.eclipse.swt.events

public abstract Class SelectionAdapter

extends Object
implements SelectionListener
Class Inheritance
All Implemented Interfaces
org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener, java.util.EventListener

This adapter class provides default implementations for the methods described by the SelectionListener interface.

Classes that wish to deal with SelectionEvents can extend this class and override only the methods which they are interested in.

An alternative to this class are the static helper methods SelectionListener#widgetSelectedAdapter(java.util.function.Consumer) and SelectionListener#widgetDefaultSelectedAdapter(java.util.function.Consumer), which accept a lambda expression or a method reference that implements the event consumer.

See Also
SelectionListener, SelectionEvent, Sample code and further information

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
widgetDefaultSelected(SelectionEvent
an event containing information about the default selection
e
)

Implements org.eclipse.swt.events.SelectionListener.widgetDefaultSelected.

Sent when default selection occurs in the control.
public void
widgetSelected(SelectionEvent
an event containing information about the selection
e
)

Implements org.eclipse.swt.events.SelectionListener.widgetSelected.

Sent when selection occurs in the control.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SelectionAdapterback to summary
public SelectionAdapter()

Method Detail

widgetDefaultSelectedback to summary
public void widgetDefaultSelected(SelectionEvent e)

Implements org.eclipse.swt.events.SelectionListener.widgetDefaultSelected.

Sent when default selection occurs in the control. The default behavior is to do nothing.

Parameters
e:SelectionEvent

an event containing information about the default selection

Annotations
@Override
widgetSelectedback to summary
public void widgetSelected(SelectionEvent e)

Implements org.eclipse.swt.events.SelectionListener.widgetSelected.

Sent when selection occurs in the control. The default behavior is to do nothing.

Parameters
e:SelectionEvent

an event containing information about the selection

Annotations
@Override