程序包 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.getActionListener
(JFrame owner) 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.
-
方法详细资料
-
getMenuTitle
String getMenuTitle()Returns the name of the menu item.- 返回:
- the name of the menu item.
-
getActionListener
If the extension has a custom ActionListener for the menu item, then it must be returned here. Having a customActionListener
also means that the component handles any frame by itself.- 参数:
owner
- the owner of potential dialogs- 返回:
- a custom ActionListener, can be null
- 另请参阅:
-
fillFrame
Fills the frame with life, like adding components, window listeners, setting size, location, etc. The frame object can be either derived fromJFrame
or fromJInternalFrame
. This method is only called in casegetActionListener()
returns null.- 参数:
frame
- the frame object to embed components, etc.- 另请参阅: