Package org.eclipse.swt.events
Class ExpandAdapter
java.lang.Object
org.eclipse.swt.events.ExpandAdapter
- All Implemented Interfaces:
EventListener,ExpandListener
This adapter class provides default implementations for the
methods described by the
ExpandListener interface.
Classes that wish to deal with ExpandEvents can
extend this class and override only the methods which they are
interested in.
An alternative to this class are the static helper methods
ExpandListener.itemCollapsedAdapter(java.util.function.Consumer)
and
ExpandListener.itemExpandedAdapter(java.util.function.Consumer),
which accept a lambda expression or a method reference that implements the event consumer.
- Since:
- 3.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSent when an item is collapsed.voidSent when an item is expanded.
-
Constructor Details
-
ExpandAdapter
public ExpandAdapter()
-
-
Method Details
-
itemCollapsed
Sent when an item is collapsed. The default behavior is to do nothing.- Specified by:
itemCollapsedin interfaceExpandListener- Parameters:
e- an event containing information about the operation
-
itemExpanded
Sent when an item is expanded. The default behavior is to do nothing.- Specified by:
itemExpandedin interfaceExpandListener- Parameters:
e- an event containing information about the operation
-