|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.action.swing.AbstractMenuBuilder
net.sf.doolin.gui.action.swing.AbstractJMenuBuilder
net.sf.doolin.gui.action.swing.JMenuBarBuilder
public class JMenuBarBuilder
MenuBuilder for a JMenuBar.
| Constructor Summary | |
|---|---|
JMenuBarBuilder(JMenuBar menuBar)
Constructor |
|
| Method Summary | |
|---|---|
void |
add(SubscriberValidator subscriberValidator,
Action swingAction)
Adds a single action to the builder |
void |
clear()
Removes all entries from the underlying component |
protected void |
createSeparator()
This method is called when a sub-class must create a separator. |
MenuBuilder |
createSubMenu(String name,
String label)
Creates a sub-menu builder from this builder |
protected JMenu |
getMenuByName(String name)
Utility method that looks for a sub-menu using the name of the menu as an identifier. |
| Methods inherited from class net.sf.doolin.gui.action.swing.AbstractJMenuBuilder |
|---|
createMenu, createMenuItem |
| Methods inherited from class net.sf.doolin.gui.action.swing.AbstractMenuBuilder |
|---|
add, addSeparator, noSeparator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMenuBarBuilder(JMenuBar menuBar)
menuBar - Menu bar to build| Method Detail |
|---|
public MenuBuilder createSubMenu(String name,
String label)
MenuBuilder
name - Identifier for the sub-menulabel - Label for the sub-menu
protected JMenu getMenuByName(String name)
name of the menu as an identifier.
name - Name to find
JMenu or nullpublic void clear()
MenuBuilder
protected void createSeparator()
AbstractMenuBuilder
createSeparator in class AbstractMenuBuilder
public void add(SubscriberValidator subscriberValidator,
Action swingAction)
MenuBuilder
subscriberValidator - Validator for any subscription on the Bus *swingAction - Action to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||