public class MustMenuItem extends MustMenuNode
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
iconName |
protected int |
keyControlEvent |
protected int |
keyEvent |
boolean |
ownThread |
boolean |
separatorBefore |
actionID, toolTipText, type, TYPE_MENU, TYPE_MENU_ITEM
Constructor and Description |
---|
MustMenuItem(java.lang.String label) |
MustMenuItem(java.lang.String label,
java.lang.String actionID)
Constructs a new menu item with the specified action.
|
MustMenuItem(java.lang.String label,
java.lang.String actionID,
java.lang.String toolTipText)
Constructs a new menu item with the specified action.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener l) |
void |
performAction(java.lang.String command) |
void |
setIconName(java.lang.String iconName) |
void |
setKeyEvent(int keyEvent,
int keyControlEvent) |
getActionID, getDescription, getToolTipText, getType, setDescription
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
protected java.lang.String iconName
protected int keyEvent
protected int keyControlEvent
public boolean separatorBefore
public boolean ownThread
public MustMenuItem(java.lang.String label)
public MustMenuItem(java.lang.String label, java.lang.String actionID)
label
- the item's labelactionId
- the ID of the action to be done - see constants NAME_FOR_???_ACTION in Dialogpublic MustMenuItem(java.lang.String label, java.lang.String actionID, java.lang.String toolTipText)
label
- the item's labelactionID
- the ID of the action to be done - see constants NAME_FOR_???_ACTION in DialogtoolTipText
- the item's tool tip textCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de