Package org.eclipse.swt.events
Class ExpandAdapter
- java.lang.Object
-
- org.eclipse.swt.events.ExpandAdapter
-
- All Implemented Interfaces:
EventListener
,ExpandListener
,SWTEventListener
public abstract class ExpandAdapter extends Object implements ExpandListener
This adapter class provides default implementations for the methods described by theExpandListener
interface.Classes that wish to deal with
ExpandEvent
s 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)
andExpandListener.itemExpandedAdapter(java.util.function.Consumer)
, which accept a lambda expression or a method reference that implements the event consumer.- Since:
- 3.2
- See Also:
ExpandListener
,ExpandEvent
, Sample code and further information
-
-
Constructor Summary
Constructors Constructor Description ExpandAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
itemCollapsed(ExpandEvent e)
Sent when an item is collapsed.void
itemExpanded(ExpandEvent e)
Sent when an item is expanded.
-
-
-
Method Detail
-
itemCollapsed
public void itemCollapsed(ExpandEvent e)
Sent when an item is collapsed. The default behavior is to do nothing.- Specified by:
itemCollapsed
in interfaceExpandListener
- Parameters:
e
- an event containing information about the operation
-
itemExpanded
public void itemExpanded(ExpandEvent e)
Sent when an item is expanded. The default behavior is to do nothing.- Specified by:
itemExpanded
in interfaceExpandListener
- Parameters:
e
- an event containing information about the operation
-
-