Top Description Constructors Methods
org.eclipse.swt.custom

public Class CTabFolder2Adapter

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

This adapter class provides default implementations for the methods described by the CTabFolder2Listener interface.

Classes that wish to deal with CTabFolderEvents can extend this class and override only the methods which they are interested in.

An alternative to this class are the static helper methods in CTabFolder2Listener, which accept a lambda expression or a method reference that implements the event consumer.

Since
3.0
See Also
CTabFolder2Listener, CTabFolderEvent, Sample code and further information

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close(CTabFolderEvent
an event indicating the item being closed
event
)

Implements org.eclipse.swt.custom.CTabFolder2Listener.close.

Sent when the user clicks on the close button of an item in the CTabFolder.
public void
maximize(CTabFolderEvent
an event containing information about the maximize
event
)

Implements org.eclipse.swt.custom.CTabFolder2Listener.maximize.

Sent when the user clicks on the maximize button of a CTabFolder.
public void
minimize(CTabFolderEvent
an event containing information about the minimize
event
)

Implements org.eclipse.swt.custom.CTabFolder2Listener.minimize.

Sent when the user clicks on the minimize button of a CTabFolder.
public void
restore(CTabFolderEvent
an event containing information about the restore
event
)

Implements org.eclipse.swt.custom.CTabFolder2Listener.restore.

Sent when the user clicks on the restore button of a CTabFolder.
public void
showList(CTabFolderEvent
an event containing information about the show list
event
)

Implements org.eclipse.swt.custom.CTabFolder2Listener.showList.

Sent when the user clicks on the chevron button of a CTabFolder.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CTabFolder2Adapterback to summary
public CTabFolder2Adapter()

Method Detail

closeback to summary
public void close(CTabFolderEvent event)

Implements org.eclipse.swt.custom.CTabFolder2Listener.close.

Sent when the user clicks on the close button of an item in the CTabFolder. The item being closed is specified in the event.item field. Setting the event.doit field to false will stop the CTabItem from closing. When the CTabItem is closed, it is disposed. The contents of the CTabItem (see CTabItem#setControl) will be made not visible when the CTabItem is closed.

The default behaviour is to close the CTabItem.

Parameters
event:CTabFolderEvent

an event indicating the item being closed

Annotations
@Override
maximizeback to summary
public void maximize(CTabFolderEvent event)

Implements org.eclipse.swt.custom.CTabFolder2Listener.maximize.

Sent when the user clicks on the maximize button of a CTabFolder.

The default behaviour is to do nothing.

Parameters
event:CTabFolderEvent

an event containing information about the maximize

Annotations
@Override
minimizeback to summary
public void minimize(CTabFolderEvent event)

Implements org.eclipse.swt.custom.CTabFolder2Listener.minimize.

Sent when the user clicks on the minimize button of a CTabFolder.

The default behaviour is to do nothing.

Parameters
event:CTabFolderEvent

an event containing information about the minimize

Annotations
@Override
restoreback to summary
public void restore(CTabFolderEvent event)

Implements org.eclipse.swt.custom.CTabFolder2Listener.restore.

Sent when the user clicks on the restore button of a CTabFolder.

The default behaviour is to do nothing.

Parameters
event:CTabFolderEvent

an event containing information about the restore

Annotations
@Override
showListback to summary
public void showList(CTabFolderEvent event)

Implements org.eclipse.swt.custom.CTabFolder2Listener.showList.

Sent when the user clicks on the chevron button of a CTabFolder.

The default behaviour is to show a list of items that are not currently visible and to change the selection based on the item selected from the list.

Parameters
event:CTabFolderEvent

an event containing information about the show list

Annotations
@Override