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()
MenuFactorygetMenuName in interface MenuFactorypublic void populateMenu(javax.swing.JMenu menu,
AbstractFrame frame)
MenuFactorypopulateMenu in interface MenuFactorypublic int getPreferredAlignment()
MenuFactorygetPreferredAlignment in interface MenuFactoryhttp://code.google.com/p/jam-lib/