Package org.eclipse.ui.forms.events
Interface IExpansionListener
- All Known Implementing Classes:
ExpansionAdapter
public interface IExpansionListener
Classes that implement this interface will be notified before and after the
expandable control's expansion state changes.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies the listener after the expandable control has changed its expansion state.static IExpansionListenerexpansionStateChangedAdapter(Consumer<ExpansionEvent> consumer) Static helper method to create aIExpansionListenerfor theexpansionStateChanged(ExpansionEvent)method, given a lambda expression or a method reference.voidNotifies the listener that the expandable control is about to change its expansion state.static IExpansionListenerexpansionStateChangingAdapter(Consumer<ExpansionEvent> consumer) Static helper method to create aIExpansionListenerfor theexpansionStateChanging(ExpansionEvent)method, given a lambda expression or a method reference.
-
Method Details
-
expansionStateChanging
Notifies the listener that the expandable control is about to change its expansion state. The state provided by the event is the new state.- Parameters:
e- the expansion event
-
expansionStateChanged
Notifies the listener after the expandable control has changed its expansion state. The state provided by the event is the new state.- Parameters:
e- the expansion event
-
expansionStateChangingAdapter
Static helper method to create aIExpansionListenerfor theexpansionStateChanging(ExpansionEvent)method, given a lambda expression or a method reference.- Parameters:
consumer- the consumer of the event- Returns:
- IExpansionListener
- Since:
- 3.9
-
expansionStateChangedAdapter
Static helper method to create aIExpansionListenerfor theexpansionStateChanged(ExpansionEvent)method, given a lambda expression or a method reference.- Parameters:
consumer- the consumer of the event- Returns:
- IExpansionListener
- Since:
- 3.9
-