程序包 weka.gui

接口 MainMenuExtension


public interface MainMenuExtension
Classes implementing this interface will be displayed in the "Extensions" menu in the main GUI of Weka.
版本:
$Revision: 1.1 $
作者:
fracpete (fracpete at waikato dot ac dot nz)
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    Fills the frame with life, like adding components, window listeners, setting size, location, etc.
    If the extension has a custom ActionListener for the menu item, then it must be returned here.
    Returns the name of the menu item.
    Returns the name of the submenu.
  • 方法详细资料

    • getSubmenuTitle

      String getSubmenuTitle()
      Returns the name of the submenu. If there is no submenu necessary then the return value is null.
      返回:
      the title of the submenu or null if no submenu
    • getMenuTitle

      String getMenuTitle()
      Returns the name of the menu item.
      返回:
      the name of the menu item.
    • getActionListener

      ActionListener getActionListener(JFrame owner)
      If the extension has a custom ActionListener for the menu item, then it must be returned here. Having a custom ActionListener also means that the component handles any frame by itself.
      参数:
      owner - the owner of potential dialogs
      返回:
      a custom ActionListener, can be null
      另请参阅:
    • fillFrame

      void fillFrame(Component frame)
      Fills the frame with life, like adding components, window listeners, setting size, location, etc. The frame object can be either derived from JFrame or from JInternalFrame. This method is only called in case getActionListener() returns null.
      参数:
      frame - the frame object to embed components, etc.
      另请参阅: