Package org.eclipse.swt.events
Interface ExpandListener
-
- All Superinterfaces:
EventListener,SWTEventListener
- All Known Implementing Classes:
ExpandAdapter
public interface ExpandListener extends SWTEventListener
Classes which implement this interface provide methods that deal with the expanding and collapsing ofExpandItems.After creating an instance of a class that implements this interface it can be added to a
ExpandBarcontrol using theaddExpandListenermethod and removed using theremoveExpandListenermethod. When a item of theExpandBaris expanded or collapsed, the appropriate method will be invoked.- Since:
- 3.2
- See Also:
ExpandAdapter,ExpandEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voiditemCollapsed(ExpandEvent e)Sent when an item is collapsed.static ExpandListeneritemCollapsedAdapter(Consumer<ExpandEvent> c)Static helper method to create aExpandListenerfor theitemCollapsed(ExpandEvent e)) method, given a lambda expression or a method reference.voiditemExpanded(ExpandEvent e)Sent when an item is expanded.static ExpandListeneritemExpandedAdapter(Consumer<ExpandEvent> c)Static helper method to create aExpandListenerfor theitemExpanded(ExpandEvent e)) method, given a lambda expression or a method reference.
-
-
-
Method Detail
-
itemCollapsed
void itemCollapsed(ExpandEvent e)
Sent when an item is collapsed.- Parameters:
e- an event containing information about the operation
-
itemExpanded
void itemExpanded(ExpandEvent e)
Sent when an item is expanded.- Parameters:
e- an event containing information about the operation
-
itemCollapsedAdapter
static ExpandListener itemCollapsedAdapter(Consumer<ExpandEvent> c)
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:
- 3.107
-
itemExpandedAdapter
static ExpandListener itemExpandedAdapter(Consumer<ExpandEvent> c)
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:
- 3.107
-
-