Top Description Constructors Methods
org.eclipse.swt.events

public abstract Class ExpandAdapter

extends Object
implements ExpandListener
Class Inheritance
All Implemented Interfaces
org.eclipse.swt.events.ExpandListener, org.eclipse.swt.internal.SWTEventListener, java.util.EventListener

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
ExpandListener, ExpandEvent, Sample code and further information

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
itemCollapsed(ExpandEvent
an event containing information about the operation
e
)

Implements org.eclipse.swt.events.ExpandListener.itemCollapsed.

Sent when an item is collapsed.
public void
itemExpanded(ExpandEvent
an event containing information about the operation
e
)

Implements org.eclipse.swt.events.ExpandListener.itemExpanded.

Sent when an item is expanded.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ExpandAdapterback to summary
public ExpandAdapter()

Method Detail

itemCollapsedback to summary
public void itemCollapsed(ExpandEvent e)

Implements org.eclipse.swt.events.ExpandListener.itemCollapsed.

Sent when an item is collapsed. The default behavior is to do nothing.

Parameters
e:ExpandEvent

an event containing information about the operation

Annotations
@Override
itemExpandedback to summary
public void itemExpanded(ExpandEvent e)

Implements org.eclipse.swt.events.ExpandListener.itemExpanded.

Sent when an item is expanded. The default behavior is to do nothing.

Parameters
e:ExpandEvent

an event containing information about the operation

Annotations
@Override