Top Description Constructors Methods
org.eclipse.swt.events

public abstract Class ControlAdapter

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

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

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

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

See Also
ControlListener, ControlEvent, Sample code and further information

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
controlMoved(ControlEvent
an event containing information about the move
e
)

Implements org.eclipse.swt.events.ControlListener.controlMoved.

Sent when the location (x, y) of a control changes relative to its parent (or relative to the display, for Shells).
public void
controlResized(ControlEvent
an event containing information about the resize
e
)

Implements org.eclipse.swt.events.ControlListener.controlResized.

Sent when the size (width, height) of a control changes.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ControlAdapterback to summary
public ControlAdapter()

Method Detail

controlMovedback to summary
public void controlMoved(ControlEvent e)

Implements org.eclipse.swt.events.ControlListener.controlMoved.

Sent when the location (x, y) of a control changes relative to its parent (or relative to the display, for Shells). The default behavior is to do nothing.

Parameters
e:ControlEvent

an event containing information about the move

Annotations
@Override
controlResizedback to summary
public void controlResized(ControlEvent e)

Implements org.eclipse.swt.events.ControlListener.controlResized.

Sent when the size (width, height) of a control changes. The default behavior is to do nothing.

Parameters
e:ControlEvent

an event containing information about the resize

Annotations
@Override