N - the native widgetpublic interface WPopupMenu<N> extends WMenuElement<org.eclipse.e4.ui.model.application.ui.menu.MPopupMenu>
WWidget.WidgetState| Modifier and Type | Method and Description |
|---|---|
void |
addElement(int idx,
WMenuElement<org.eclipse.e4.ui.model.application.ui.menu.MMenuElement> widget)
Insert a widget at the given index
|
void |
addElement(WMenuElement<org.eclipse.e4.ui.model.application.ui.menu.MMenuElement> widget)
Append a widget
|
void |
removeElement(WMenuElement<org.eclipse.e4.ui.model.application.ui.menu.MMenuElement> widget)
Remove a widget
|
void |
setHidingCallback(java.lang.Runnable hidingCallback)
Callback to invoke when the menu is hidden
|
void |
setShowingCallback(java.lang.Runnable showingCallback)
Callback to invoke when the menu is shown
|
activate, addStyleClasses, addStyleClasses, deactivate, getDomElement, getWidget, getWidgetState, isActive, registerActivationCallback, removeStyleClasses, removeStyleClasses, setDomElement, setPropertyChangeHandler, setStyleId, setWidgetStatevoid addElement(WMenuElement<org.eclipse.e4.ui.model.application.ui.menu.MMenuElement> widget)
widget - the widgetvoid addElement(int idx,
WMenuElement<org.eclipse.e4.ui.model.application.ui.menu.MMenuElement> widget)
idx - the indexwidget - the widgetvoid setShowingCallback(java.lang.Runnable showingCallback)
showingCallback - the callbackvoid setHidingCallback(java.lang.Runnable hidingCallback)
hidingCallback - the callbackvoid removeElement(WMenuElement<org.eclipse.e4.ui.model.application.ui.menu.MMenuElement> widget)
widget - the widget