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.
and
ControlListener#controlResizedAdapter(java.,
which accept a lambda expression or a method reference that implements the event consumer.
ControlListener, ControlEvent, Sample code and further information
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | controlMoved(ControlEvent
an event containing information about the move e)Implements org. Shells).
|
| public void | controlResized(ControlEvent
an event containing information about the resize e)Implements org. |
| ControlAdapter | back to summary |
|---|---|
| public ControlAdapter() | |
| controlMoved | back to summary |
|---|---|
| public void controlMoved(ControlEvent e) Implements org. Sent when the location (x, y) of a control changes relative
to its parent (or relative to the display, for
| |
| controlResized | back to summary |
|---|---|
| public void controlResized(ControlEvent e) Implements org. Sent when the size (width, height) of a control changes. The default behavior is to do nothing.
| |