Class FbMenue

java.lang.Object
  extended byFbMenue

public class FbMenue
extends java.lang.Object

Die Menüs fuer das Springerspiel.


Field Summary
(package private)  java.awt.event.ActionListener actionListener
           
(package private) static java.lang.String[] fileItems
           
(package private) static java.lang.String[] helpItems
           
(package private)  javax.swing.JMenuBar menuBar
           
 
Constructor Summary
FbMenue(java.awt.event.ActionListener aL)
           
 
Method Summary
(package private)  void addMenu(java.lang.String title, java.lang.String[] items, java.lang.String header)
          Add a new menu.
 javax.swing.JMenuBar getMenuBar()
           
private  javax.swing.JMenuItem myAddItem(java.lang.String lab, java.lang.String msg, java.awt.event.ActionListener li)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

menuBar

javax.swing.JMenuBar menuBar

actionListener

java.awt.event.ActionListener actionListener

fileItems

static java.lang.String[] fileItems

helpItems

static java.lang.String[] helpItems
Constructor Detail

FbMenue

public FbMenue(java.awt.event.ActionListener aL)
Method Detail

getMenuBar

public javax.swing.JMenuBar getMenuBar()

addMenu

void addMenu(java.lang.String title,
             java.lang.String[] items,
             java.lang.String header)
Add a new menu. The title and the items define the layout of the menu. For example
addMenu( "Help", {"About", "Version"}, "H_")
creates a help menu with two items. The header is the prefix of the action command. In the example the two action commands are H_About and H_Version.


myAddItem

private javax.swing.JMenuItem myAddItem(java.lang.String lab,
                                        java.lang.String msg,
                                        java.awt.event.ActionListener li)