Interface SubscriptionManagerUI.SelectionList_NoTemplates

All Superinterfaces:
MenuItemListener
Enclosing class:
SubscriptionManagerUI

private static interface SubscriptionManagerUI.SelectionList_NoTemplates extends MenuItemListener
Moves off SWT Thread, invokes selected(List<Subscription>) with a list of Subscriptions that are not templates.

Use with MenuItem.addMultiListener(MenuItemListener).

Can be used with MenuItem.addListener(MenuItemListener), but for each item, there will be a thread and a call to selected(List<Subscription>) with just one entry.

  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    selected(MenuItem menu, Object target)
    Menu item has been selected by the user.
    void
     
  • Method Details

    • selected

      default void selected(MenuItem menu, Object target)
      Description copied from interface: MenuItemListener
      Menu item has been selected by the user. Note - this method will be called when a "deselection" takes place, like if the MenuItem has STYLE_CHECK or STYLE_RADIO (where a previously selected item has been deselected because another item has been selected instead). Therefore, you should check the state of the MenuItem, rather than assuming that it has been "activated".
      Specified by:
      selected in interface MenuItemListener
      Parameters:
      menu - Which menu item was selected
      target - What this menu item applies to. For the default implementation, target is null. Implementing classes may provide an object related to the menu selection.

      For table context menu items this will be TableRow[] of selected rows
      For MenuManager.MENU_DOWNLOAD_CONTEXT this will be an array of Download

    • selected

      void selected(List<Subscription> subs)