@Deprecated public class JoSubMenu extends java.lang.Object implements ISubMenu
Constructor and Description |
---|
JoSubMenu(ISubMenuDescriptor descriptor)
Deprecated.
|
JoSubMenu(java.lang.String text)
Deprecated.
|
JoSubMenu(java.lang.String text,
IImageConstant icon)
Deprecated.
|
JoSubMenu(java.lang.String text,
java.lang.String tooltipText)
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
|
static ISubMenuBluePrint |
bluePrint()
Deprecated.
|
static ISubMenuBluePrint |
bluePrint(java.lang.String text)
Deprecated.
|
static ISubMenuBluePrint |
bluePrint(java.lang.String text,
IImageConstant icon)
Deprecated.
|
static ISubMenuBluePrint |
bluePrint(java.lang.String text,
java.lang.String tooltipText)
Deprecated.
|
void |
dispose()
Deprecated.
Disposes the widgets.
|
java.util.List<IMenuItem> |
getChildren()
Deprecated.
Gets the menu items of the menu as a unmodifieable copy
|
IImageConstant |
getIcon()
Deprecated.
Gets the icon of the item
|
IMenuModel |
getModel()
Deprecated.
Gets the model of the menu
|
IMenu |
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.String |
getText()
Deprecated.
Gets the text of the item
|
java.lang.String |
getToolTipText()
Deprecated.
Gets the tooltip text of the item
|
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 |
setIcon(IImageConstant icon)
Deprecated.
Sets a icon for the item
|
void |
setMnemonic(char mnemonic)
Deprecated.
Sets the keyboard mnemonic
The mnemonic is the key that will activate the item when combined
with (usually) ALT key.
|
void |
setModel(IMenuItemModel model)
Deprecated.
Sets the model of the menu
|
void |
setModel(IMenuModel model)
Deprecated.
Sets the model of the menu
|
void |
setText(java.lang.String text)
Deprecated.
Sets the items text
|
void |
setToolTipText(java.lang.String text)
Deprecated.
Sets the items tooltip text
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAction, addAction, addItem, addItem, addSeparator, addSeparator, getChildren, getModel, remove, removeAll, setModel
getIcon, getText, getToolTipText
dispose, getRoot, isDisposed
addDisposeListener, removeDisposeListener
addMenuListener, removeMenuListener
setMnemonic
setIcon, setText, setToolTipText
public JoSubMenu(java.lang.String text, IImageConstant icon)
public JoSubMenu(java.lang.String text)
public JoSubMenu(java.lang.String text, java.lang.String tooltipText)
public JoSubMenu(ISubMenuDescriptor descriptor)
public static ISubMenuBluePrint bluePrint()
public static ISubMenuBluePrint bluePrint(java.lang.String text)
public static ISubMenuBluePrint bluePrint(java.lang.String text, java.lang.String tooltipText)
public static ISubMenuBluePrint bluePrint(java.lang.String text, IImageConstant icon)
public void setText(java.lang.String text)
IItemCommon
setText
in interface IItemCommon
text
- The text to set, may be nullpublic void setToolTipText(java.lang.String text)
IItemCommon
setToolTipText
in interface IItemCommon
text
- The text to setpublic void setIcon(IImageConstant icon)
IItemCommon
setIcon
in interface IItemCommon
icon
- The icon to setpublic void setMnemonic(char mnemonic)
IMenuItemCommon
setMnemonic
in interface IMenuItemCommon
mnemonic
- The mnemonic to setpublic IMenu getParent()
IWidget
public java.lang.String getText()
IItem
public java.lang.String getToolTipText()
IItem
getToolTipText
in interface IItem
public IImageConstant getIcon()
IItem
public void setModel(IMenuItemModel model)
IMenuItem
public 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)
IMenuObservable
addMenuListener
in interface IMenuObservable
listener
- The listener to addpublic void removeMenuListener(IMenuListener listener)
IMenuObservable
removeMenuListener
in interface IMenuObservable
listener
- The listener to removepublic java.util.List<IMenuItem> getChildren()
IMenu
getChildren
in interface IMenu
public boolean remove(IMenuItem item)
IMenu
public void removeAll()
IMenu
public <RESULT_WIDGET_TYPE extends IMenuItem> RESULT_WIDGET_TYPE addItem(IWidgetDescriptor<? extends RESULT_WIDGET_TYPE> descriptor)
IMenu
public <RESULT_WIDGET_TYPE extends IMenuItem> RESULT_WIDGET_TYPE addItem(int index, IWidgetDescriptor<? extends RESULT_WIDGET_TYPE> descriptor)
IMenu
public IMenuItem addSeparator()
IMenu
addSeparator
in interface IMenu
public IMenuItem addSeparator(int index)
IMenu
addSeparator
in interface IMenu
index
- The index where to add the separarot itempublic IActionMenuItem addAction(IAction action)
IMenu
public IActionMenuItem addAction(int index, IAction action)
IMenu
public IMenuModel getModel()
IMenu
public void setModel(IMenuModel model)
IMenu
public final boolean isInitialized()
public IWidget getRoot()
IWidget
public void addDisposeListener(IDisposeListener listener)
IDisposeObservable
addDisposeListener
in interface IDisposeObservable
listener
- The listener to addpublic void removeDisposeListener(IDisposeListener listener)
IDisposeObservable
removeDisposeListener
in interface IDisposeObservable
listener
- The listener to removepublic void dispose()
IWidget
public boolean isDisposed()
IWidget
isDisposed
in interface IWidget
public void setEnabled(boolean enabled)
IWidgetCommon
setEnabled
in interface IWidgetCommon
enabled
- The enabled state to setpublic boolean isEnabled()
IWidgetCommon
isEnabled
in interface IWidgetCommon
public final java.lang.Object getUiReference()
IWidgetCommon
getUiReference
in interface IWidgetCommon
Siehe auch Jowidgets Nutzerhandbuch