@Deprecated public class JoPopupMenu extends java.lang.Object implements IPopupMenu
| Constructor and Description |
|---|
JoPopupMenu()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
IActionMenuItem |
addAction(IAction action)
Deprecated.
Adds an action item to the menu that will be bound to the given action
|
IActionMenuItem |
addAction(int index,
IAction action)
Deprecated.
Adds an action item to the menu at a specific that will be bound to the given action
|
void |
addDisposeListener(IDisposeListener listener)
Deprecated.
Adds a dispose listener
|
<RESULT_WIDGET_TYPE extends IMenuItem> |
addItem(int index,
IWidgetDescriptor<? extends RESULT_WIDGET_TYPE> descriptor)
Deprecated.
Adds a menu item to the menu at a specific index
|
void |
addItem(int index,
org.jowidgets.tools.powo.MenuItem<? extends IMenuItem,?> item)
Deprecated.
|
void |
addItem(int index,
org.jowidgets.tools.powo.SubMenu<? extends ISubMenu,?> item)
Deprecated.
|
<RESULT_WIDGET_TYPE extends IMenuItem> |
addItem(IWidgetDescriptor<? extends RESULT_WIDGET_TYPE> descriptor)
Deprecated.
Adds a menu item to the menu
|
void |
addItem(org.jowidgets.tools.powo.MenuItem<? extends IMenuItem,?> item)
Deprecated.
|
void |
addItem(org.jowidgets.tools.powo.SubMenu<? extends ISubMenu,?> item)
Deprecated.
|
void |
addMenuListener(IMenuListener listener)
Deprecated.
Adds a menu listener
|
IMenuItem |
addSeparator()
Deprecated.
Adds a separator item to the menu
|
IMenuItem |
addSeparator(int index)
Deprecated.
Adds a separator item to the menu at a specific index
|
void |
dispose()
Deprecated.
Disposes the widgets.
|
java.util.List<IMenuItem> |
getChildren()
Deprecated.
Gets the menu items of the menu as a unmodifieable copy
|
IMenuModel |
getModel()
Deprecated.
Gets the model of the menu
|
IComponent |
getParent()
Deprecated.
Gets the parent of the widget
|
IWidget |
getRoot()
Deprecated.
Gets the root widget of the widget
If the widget is a composed widget, the root widget
of the composed widget will be returned.
|
java.lang.Object |
getUiReference()
Deprecated.
Gets the reference to the ui implementation of this widget.
|
boolean |
isDisposed()
Deprecated.
Checks if a widget is disposed
|
boolean |
isEnabled()
Deprecated.
Gets the enabled state
|
boolean |
isInitialized()
Deprecated.
|
boolean |
remove(IMenuItem item)
Deprecated.
Removes a menu item form the menu
|
void |
removeAll()
Deprecated.
Removes all items from the menu
|
void |
removeDisposeListener(IDisposeListener listener)
Deprecated.
Removes a dispose listener
|
void |
removeMenuListener(IMenuListener listener)
Deprecated.
Removes a menu listener
|
void |
setEnabled(boolean enabled)
Deprecated.
Sets the widget enabled
|
void |
setModel(IMenuModel model)
Deprecated.
Sets the model of the menu
|
void |
show(Position position)
Deprecated.
Opens the popup menu at the given position.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAction, addAction, addItem, addItem, addSeparator, addSeparator, getChildren, getModel, remove, removeAll, setModeldispose, getRoot, isDisposedaddDisposeListener, removeDisposeListenergetUiReference, isEnabled, setEnabledaddMenuListener, removeMenuListenerpublic void show(Position position)
IPopupMenuCommonshow in interface IPopupMenuCommonposition - The position to open the popup menu at, must not be nullpublic IComponent getParent()
IWidgetgetParent in interface IPopupMenugetParent in interface IWidgetpublic void addItem(org.jowidgets.tools.powo.MenuItem<? extends IMenuItem,?> item)
public void addItem(int index,
org.jowidgets.tools.powo.MenuItem<? extends IMenuItem,?> item)
public void addItem(org.jowidgets.tools.powo.SubMenu<? extends ISubMenu,?> item)
public void addItem(int index,
org.jowidgets.tools.powo.SubMenu<? extends ISubMenu,?> item)
public void addMenuListener(IMenuListener listener)
IMenuObservableaddMenuListener in interface IMenuObservablelistener - The listener to addpublic void removeMenuListener(IMenuListener listener)
IMenuObservableremoveMenuListener in interface IMenuObservablelistener - The listener to removepublic java.util.List<IMenuItem> getChildren()
IMenugetChildren in interface IMenupublic boolean remove(IMenuItem item)
IMenupublic void removeAll()
IMenupublic <RESULT_WIDGET_TYPE extends IMenuItem> RESULT_WIDGET_TYPE addItem(IWidgetDescriptor<? extends RESULT_WIDGET_TYPE> descriptor)
IMenupublic <RESULT_WIDGET_TYPE extends IMenuItem> RESULT_WIDGET_TYPE addItem(int index, IWidgetDescriptor<? extends RESULT_WIDGET_TYPE> descriptor)
IMenupublic IMenuItem addSeparator()
IMenuaddSeparator in interface IMenupublic IMenuItem addSeparator(int index)
IMenuaddSeparator in interface IMenuindex - The index where to add the separarot itempublic IActionMenuItem addAction(IAction action)
IMenupublic IActionMenuItem addAction(int index, IAction action)
IMenupublic IMenuModel getModel()
IMenupublic void setModel(IMenuModel model)
IMenupublic final boolean isInitialized()
public IWidget getRoot()
IWidgetpublic void addDisposeListener(IDisposeListener listener)
IDisposeObservableaddDisposeListener in interface IDisposeObservablelistener - The listener to addpublic void removeDisposeListener(IDisposeListener listener)
IDisposeObservableremoveDisposeListener in interface IDisposeObservablelistener - The listener to removepublic void dispose()
IWidgetpublic boolean isDisposed()
IWidgetisDisposed in interface IWidgetpublic void setEnabled(boolean enabled)
IWidgetCommonsetEnabled in interface IWidgetCommonenabled - The enabled state to setpublic boolean isEnabled()
IWidgetCommonisEnabled in interface IWidgetCommonpublic final java.lang.Object getUiReference()
IWidgetCommongetUiReference in interface IWidgetCommonSiehe auch Jowidgets Nutzerhandbuch