Interface CTabFolderListener

All Superinterfaces:
EventListener, SWTEventListener
All Known Implementing Classes:
CTabFolderAdapter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CTabFolderListener extends SWTEventListener
Classes which implement this interface provide a method that deals with events generated in the CTabFolder.

After creating an instance of a class that implements this interface it can be added to a CTabFolder using the addCTabFolderListener method and removed using the removeCTabFolderListener method. When a tab item is closed, the itemClosed method will be invoked.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sent when the user clicks on the close button of an item in the CTabFolder.
  • Method Details

    • itemClosed

      void itemClosed(CTabFolderEvent event)
      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.
      Parameters:
      event - an event indicating the item being closed
      See Also: