Module java.desktop

Interface PopupMenuListener

所有超接口:
EventListener

public interface PopupMenuListener extends EventListener
弹出菜单监听器
  • Method Details

    • popupMenuWillBecomeVisible

      void popupMenuWillBecomeVisible(PopupMenuEvent e)
      在弹出菜单变为可见之前调用此方法
      参数:
      e - 包含事件源的PopupMenuEvent
    • popupMenuWillBecomeInvisible

      void popupMenuWillBecomeInvisible(PopupMenuEvent e)
      在弹出菜单变为不可见之前调用此方法。请注意,JPopupMenu可以随时变为不可见状态
      参数:
      e - 包含事件源的PopupMenuEvent
    • popupMenuCanceled

      void popupMenuCanceled(PopupMenuEvent e)
      当弹出菜单被取消时调用此方法
      参数:
      e - 包含事件源的PopupMenuEvent