public interface ControlListener extends SWTEventListener
After creating an instance of a class that implements
this interface it can be added to a control using the
addControlListener method and removed using
the removeControlListener method. When a
control is moved or resized, the appropriate method will
be invoked.
ControlAdapter,
ControlEvent| Modifier and Type | Method and Description |
|---|---|
void |
controlMoved(ControlEvent e)
Sent when the location (x, y) of a control changes relative
to its parent (or relative to the display, for
Shells). |
static ControlListener |
controlMovedAdapter(Consumer<ControlEvent> c)
Static helper method to create a
ControlListener for the
controlMoved(ControlEvent e)) method, given a lambda expression or a method reference. |
void |
controlResized(ControlEvent e)
Sent when the size (width, height) of a control changes.
|
static ControlListener |
controlResizedAdapter(Consumer<ControlEvent> c)
Static helper method to create a
ControlListener for the
controlResized(ControlEvent e)) method, given a lambda expression or a method reference. |
void controlMoved(ControlEvent e)
Shells).e - an event containing information about the movevoid controlResized(ControlEvent e)
e - an event containing information about the resizestatic ControlListener controlMovedAdapter(Consumer<ControlEvent> c)
ControlListener for the
controlMoved(ControlEvent e)) method, given a lambda expression or a method reference.c - the consumer of the eventstatic ControlListener controlResizedAdapter(Consumer<ControlEvent> c)
ControlListener for the
controlResized(ControlEvent e)) method, given a lambda expression or a method reference.c - the consumer of the event
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.