public class CustomMenuBar
extends java.lang.Object
implements java.awt.event.ActionListener
Constructor and Description |
---|
CustomMenuBar(ScenarioGenerator sgGUI)
Constructor of menu bar.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent object)
Method to handle item selection in menu bar.
|
javax.swing.JMenuBar |
getMenuBar()
Method to get the menu bar.
|
javax.swing.JMenuItem |
getStartSim()
Method to get the start simulation sub-menu item.
|
void |
setMenuBar(javax.swing.JMenuBar menuBar)
Method to overwrite the menu bar.
|
void |
setStartSim(javax.swing.JMenuItem startSim)
Method to set the start simulation sub-menu item.
|
public CustomMenuBar(ScenarioGenerator sgGUI) throws java.net.MalformedURLException
sgGUI
- Parental ScenarioGenerator instance.java.net.MalformedURLException
public javax.swing.JMenuBar getMenuBar()
public void setMenuBar(javax.swing.JMenuBar menuBar)
menuBar
- A menu bar instance.public void actionPerformed(java.awt.event.ActionEvent object)
actionPerformed
in interface java.awt.event.ActionListener
public javax.swing.JMenuItem getStartSim()
public void setStartSim(javax.swing.JMenuItem startSim)
startSim
- StartSim sub-menu item instance