public class CommandToCode extends Object implements weka.gui.MainMenuExtension
| Constructor and Description |
|---|
CommandToCode() |
| Modifier and Type | Method and Description |
|---|---|
void |
fillFrame(Component frame)
Fills the frame with life, like adding components, window listeners,
setting size, location, etc.
|
ActionListener |
getActionListener(JFrame jFrame)
If the extension has a custom ActionListener for the menu item, then it
must be returned here.
|
String |
getMenuTitle()
Returns the name of the menu item.
|
String |
getSubmenuTitle()
Returns the name of the submenu.
|
public String getSubmenuTitle()
getSubmenuTitle in interface weka.gui.MainMenuExtensionpublic String getMenuTitle()
getMenuTitle in interface weka.gui.MainMenuExtensionpublic ActionListener getActionListener(JFrame jFrame)
ActionListener also
means that the component handles any frame by itself.getActionListener in interface weka.gui.MainMenuExtensionjFrame - the owner of potential dialogsfillFrame(Component)public void fillFrame(Component frame)
JFrame or from JInternalFrame. This method is
only called in case getActionListener() returns null.fillFrame in interface weka.gui.MainMenuExtensionframe - the frame object to embed components, etc.getActionListener(JFrame),
JFrame,
JInternalFrameCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.