public class DemoMenuFactory extends java.lang.Object implements MenuFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FIRST |
static java.lang.String |
SECOND |
CENTER, LEFT, RIGHT
Constructor and Description |
---|
DemoMenuFactory() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMenuName()
Give the name of this menu.
|
int |
getPreferredAlignment()
Returns the preferred alignment of the menu in the menu bar.
|
void |
populateMenu(javax.swing.JMenu menu,
AbstractFrame frame)
This method should populate the menu with menu items.
|
public static final java.lang.String FIRST
public static final java.lang.String SECOND
public java.lang.String getMenuName()
MenuFactory
getMenuName
in interface MenuFactory
public void populateMenu(javax.swing.JMenu menu, AbstractFrame frame)
MenuFactory
populateMenu
in interface MenuFactory
public int getPreferredAlignment()
MenuFactory
getPreferredAlignment
in interface MenuFactory
http://code.google.com/p/jam-lib/