|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MenuBuilder
Defines a builder for a menu-like component. It can be menu bars, tool bars, etc.
| Method Summary | |
|---|---|
void |
add(JComponent component)
Adds a direct component in this menu |
void |
add(SubscriberValidator subscriberValidator,
Action swingAction)
Adds a single action to the builder |
void |
addSeparator()
Adds a separator for this menu |
void |
clear()
Removes all entries from the underlying component |
MenuBuilder |
createSubMenu(String name,
String label)
Creates a sub-menu builder from this builder |
| Method Detail |
|---|
MenuBuilder createSubMenu(String name,
String label)
name - Identifier for the sub-menulabel - Label for the sub-menu
void addSeparator()
void add(JComponent component)
component - Component to add
void add(SubscriberValidator subscriberValidator,
Action swingAction)
subscriberValidator - Validator for any subscription on the Bus *swingAction - Action to addvoid clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||