|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
be.lassi.ui.util
Class MacMenuBuilder
java.lang.Objectbe.lassi.ui.util.MacMenuBuilder
public class MacMenuBuilder
- extends java.lang.Object
Helps building menus for the Mac platform. Mac menus do not have icons, so any icons provided by the actions are nulled out.
| Constructor Summary | |
|---|---|
MacMenuBuilder(java.lang.String text)
Constructs a new instance. |
|
| Method Summary | |
|---|---|
void |
add(javax.swing.JMenuItem item)
Adds a menu item, nulls out any icon provided in the menu item. |
void |
add(LassiAction action)
Adds a menu item, nulls out any icon provided by the action. |
void |
add(LassiAction action,
Holder<java.lang.Boolean> selected)
Adds a menu item with a checkbox that indicates whether the item is selected or not selected, nulls out any icon provided by the action. |
void |
addSeparator()
Adds a separator between menu items. |
javax.swing.JMenu |
getMenu()
Gets the menu that was build so far. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
MacMenuBuilder
public MacMenuBuilder(java.lang.String text)
- Constructs a new instance.
- Parameters:
text- the menu name
| Method Detail |
|---|
add
public void add(javax.swing.JMenuItem item)
- Adds a menu item, nulls out any icon provided in the menu item.
- Parameters:
item- the menu item to be added
add
public void add(LassiAction action)
- Adds a menu item, nulls out any icon provided by the action.
- Parameters:
action- the action for the menu item to be added
add
public void add(LassiAction action, Holder<java.lang.Boolean> selected)
- Adds a menu item with a checkbox that indicates whether the item
is selected or not selected, nulls out any icon provided by the action.
- Parameters:
action- the action for the menu item to be addedselected- indicates whether the item is selected
addSeparator
public void addSeparator()
- Adds a separator between menu items.
getMenu
public javax.swing.JMenu getMenu()
- Gets the menu that was build so far.
- Returns:
- the menu
|
Lighting Assistant 1.2 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
be.lassi.ui.util.MacMenuBuilder