public class MenuItem extends MenuBase
| Constructor and Description |
|---|
MenuItem(String id,
String dialogId,
String title,
String mnemonic,
String accelerator,
String style)
Create a new menu item without an event.
|
MenuItem(String id,
String dialogId,
String title,
String mnemonic,
String accelerator,
String style,
ImageInfo image,
ImageInfo disabledImage,
String event,
String method)
Create a new menu item with the given event and method.
|
MenuItem(String id,
String dialogId,
String title,
String mnemonic,
String accelerator,
String style,
String event,
String method)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMethod(String event,
String method)
Add a new method for the given event.
|
Map<String,List<String>> |
getMethods() |
void |
setMethods(Map<String,List<String>> methods) |
String |
toString() |
getAccelerator, getApplicationId, getDialogId, getDisabledImage, getId, getImage, getMnemonic, getParent, getStyle, getTitle, setAccelerator, setApplicationId, setDialogId, setDisabledImage, setId, setImage, setMnemonic, setParent, setStyle, setTitlepublic MenuItem(String id, String dialogId, String title, String mnemonic, String accelerator, String style)
id - the ID of the menu itemdialogId - the ID of the dialog which owns the menu itemtitle - the title of the menu or menu itemmnemonic - the mnemonic for the menu or menu itemaccelerator - the accelerator for the menu or menu itemstyle - the style from the dialog model@Deprecated public MenuItem(String id, String dialogId, String title, String mnemonic, String accelerator, String style, String event, String method)
id - the ID of the menu itemdialogId - the ID of the dialog which owns the menu itemtitle - the title of the menu or menu itemmnemonic - the mnemonic for the menu or menu itemaccelerator - the accelerator for the menu or menu itemstyle - the style from the dialog modelevent - an event triggered by this menu itemmethod - the method triggered by the given eventpublic MenuItem(String id, String dialogId, String title, String mnemonic, String accelerator, String style, ImageInfo image, ImageInfo disabledImage, String event, String method)
id - the ID of the menu itemdialogId - the ID of the dialog which owns the menu itemtitle - the title of the menu or menu itemmnemonic - the mnemonic for the menu or menu itemaccelerator - the accelerator for the menu or menu itemstyle - the style from the dialog modelimage - the image from the dialog modeldisabledImage - the disabled image from the dialog modelevent - an event triggered by this menu itemmethod - the method triggered by the given eventpublic void addMethod(String event, String method)
event - the event which triggers the methodmethod - the method to triggerpublic void setMethods(Map<String,List<String>> methods)
methods - the methods to setCopyright © 2006–2020 Esito AS. All rights reserved.