java.awt.MenuItem.removeActionListener()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(136)

本文整理了Java中java.awt.MenuItem.removeActionListener()方法的一些代码示例,展示了MenuItem.removeActionListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MenuItem.removeActionListener()方法的具体详情如下:
包路径:java.awt.MenuItem
类名称:MenuItem
方法名:removeActionListener

暂无

代码示例

代码示例来源:origin: org.codeartisans.swing-on-steroids/sos-ui-swing

@Override
public void removeHandler()
{
  menuItem.removeActionListener( listener );
}

代码示例来源:origin: com.dorkbox/SystemTray

@Override
  public
  void run() {
    _native.deleteShortcut();
    _native.setEnabled(false);
    if (callback != null) {
      _native.removeActionListener(callback);
      callback = null;
    }
    parent._native.remove(_native);
    _native.removeNotify();
  }
});

代码示例来源:origin: com.dorkbox/SystemTray

void setCallback(final dorkbox.systemTray.MenuItem menuItem) {
  if (callback != null) {
    _native.removeActionListener(callback);

代码示例来源:origin: blurpy/kouchat

/**
 * Removes the system tray icon and cleans up the listeners.
 */
public void deactivate() {
  if (systemTraySupported) {
    systemTraySupported = false;
    quitMI.removeActionListener(this);
    trayIcon.removeMouseListener(this);
    final SystemTray sysTray = uiTools.getSystemTray();
    sysTray.removePropertyChangeListener(TRAY_ICONS, this);
    sysTray.remove(trayIcon);
    quitMI = null;
    statusIcons = null;
    trayIcon = null;
  }
}

相关文章