public class PopupBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
rawmenu
The menu-items and actions.
|
Constructor and Description |
---|
PopupBuilder()
Create the popup builder.
|
PopupBuilder(java.util.List rawmenu)
Create the popup builder.
|
PopupBuilder(java.lang.Object[] rawmenu)
Create the popup builder.
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(java.lang.Object item)
Add an item.
|
javax.swing.JPopupMenu |
buildPopupMenu()
Build the popup menu.
|
void |
removeItem(java.lang.Object item)
Remove an item.
|
public PopupBuilder()
rawmenu
- The raw menu.public PopupBuilder(java.util.List rawmenu)
rawmenu
- The raw menu.public PopupBuilder(java.lang.Object[] rawmenu)
rawmenu
- The raw menu.public javax.swing.JPopupMenu buildPopupMenu()
public void addItem(java.lang.Object item)
item
- The item (Action or IMenuItemConstructor).public void removeItem(java.lang.Object item)
item
- The item (Action or IMenuItemConstructor).