Package org.eclipse.swt.events
Interface ExpandListener
- All Known Implementing Classes:
ExpandAdapter
public interface ExpandListener
Classes which implement this interface provide methods that deal with the
expanding and collapsing of
ExpandItems.
After creating an instance of a class that implements this interface it can
be added to a ExpandBar control using the
addExpandListener method and removed using the
removeExpandListener method. When a item of the
ExpandBar is expanded or collapsed, the appropriate method
will be invoked.
- Since:
- 1.2
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidSent when an item is collapsed.static ExpandListenerStatic helper method to create aExpandListenerfor theitemCollapsed(ExpandEvent e)) method, given a lambda expression or a method reference.voidSent when an item is expanded.static ExpandListenerStatic helper method to create aExpandListenerfor theitemExpanded(ExpandEvent e)) method, given a lambda expression or a method reference.
-
Method Details
-
itemCollapsed
Sent when an item is collapsed.- Parameters:
e- an event containing information about the operation
-
itemExpanded
Sent when an item is expanded.- Parameters:
e- an event containing information about the operation
-
itemCollapsedAdapter
Static helper method to create aExpandListenerfor theitemCollapsed(ExpandEvent e)) method, given a lambda expression or a method reference.- Parameters:
c- the consumer of the event- Returns:
- ExpandListener
- Since:
- 4.1
-
itemExpandedAdapter
Static helper method to create aExpandListenerfor theitemExpanded(ExpandEvent e)) method, given a lambda expression or a method reference.- Parameters:
c- the consumer of the event- Returns:
- ExpandListener
- Since:
- 4.1
-