@Deprecated public class JoActionMenuItem extends java.lang.Object implements IActionMenuItem
| Constructor and Description |
|---|
JoActionMenuItem(IAction action)
Deprecated.
|
JoActionMenuItem(IActionMenuItemDescriptor descriptor)
Deprecated.
|
JoActionMenuItem(java.lang.String text)
Deprecated.
|
JoActionMenuItem(java.lang.String text,
IImageConstant icon)
Deprecated.
|
JoActionMenuItem(java.lang.String text,
java.lang.String tooltipText)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(IActionListener actionListener)
Deprecated.
Adds an action listener
|
void |
addDisposeListener(IDisposeListener listener)
Deprecated.
Adds a dispose listener
|
static IActionMenuItemBluePrint |
bluePrint()
Deprecated.
|
static IActionMenuItemBluePrint |
bluePrint(java.lang.String text)
Deprecated.
|
static IActionMenuItemBluePrint |
bluePrint(java.lang.String text,
IImageConstant icon)
Deprecated.
|
static IActionMenuItemBluePrint |
bluePrint(java.lang.String text,
java.lang.String tooltipText)
Deprecated.
|
void |
dispose()
Deprecated.
Disposes the widgets.
|
IImageConstant |
getIcon()
Deprecated.
Gets the icon of the item
|
IActionItemModel |
getModel()
Deprecated.
Gets the menu items models
|
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.
|
void |
removeActionListener(IActionListener actionListener)
Deprecated.
Removes an action listener
|
void |
removeDisposeListener(IDisposeListener listener)
Deprecated.
Removes a dispose listener
|
void |
setAccelerator(Accelerator accelerator)
Deprecated.
Sets the key combination which should invoke the menu items actions listener.
|
void |
setAction(IAction action)
Deprecated.
Sets the action of the menu
|
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(IActionItemModel model)
Deprecated.
Sets the action with help of an action model
|
void |
setModel(IMenuItemModel 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, waitgetModel, setAction, setModelgetIcon, getText, getToolTipTextdispose, getRoot, isDisposedaddDisposeListener, removeDisposeListenersetAcceleratorsetMnemonicsetIcon, setText, setToolTipTextgetUiReference, isEnabled, setEnabledaddActionListener, removeActionListenerpublic JoActionMenuItem(java.lang.String text,
IImageConstant icon)
public JoActionMenuItem(IAction action)
public JoActionMenuItem(java.lang.String text)
public JoActionMenuItem(java.lang.String text,
java.lang.String tooltipText)
public JoActionMenuItem(IActionMenuItemDescriptor descriptor)
public static IActionMenuItemBluePrint bluePrint()
public static IActionMenuItemBluePrint bluePrint(java.lang.String text)
public static IActionMenuItemBluePrint bluePrint(java.lang.String text, java.lang.String tooltipText)
public static IActionMenuItemBluePrint bluePrint(java.lang.String text, IImageConstant icon)
public void addActionListener(IActionListener actionListener)
IActionObservableaddActionListener in interface IActionObservableactionListener - The listener to addpublic void removeActionListener(IActionListener actionListener)
IActionObservableremoveActionListener in interface IActionObservableactionListener - The listener to removepublic void setAccelerator(Accelerator accelerator)
IActionMenuItemCommonsetAccelerator in interface IActionMenuItemCommonaccelerator - The accelerator to set, may be nullpublic void setAction(IAction action)
IActionMenuItemsetAction in interface IActionMenuItemaction - The action to setpublic void setModel(IActionItemModel model)
IActionMenuItemsetModel in interface IActionMenuItemmodel - The action model to set, never nullpublic IActionItemModel getModel()
IMenuItemgetModel in interface IActionMenuItemgetModel in interface IMenuItempublic void setMnemonic(char mnemonic)
IMenuItemCommonsetMnemonic in interface IMenuItemCommonmnemonic - The mnemonic to setpublic IMenu getParent()
IWidgetpublic void setModel(IMenuItemModel model)
IMenuItempublic void setText(java.lang.String text)
IItemCommonsetText in interface IItemCommontext - The text to set, may be nullpublic void setToolTipText(java.lang.String text)
IItemCommonsetToolTipText in interface IItemCommontext - The text to setpublic void setIcon(IImageConstant icon)
IItemCommonsetIcon in interface IItemCommonicon - The icon to setpublic java.lang.String getText()
IItempublic java.lang.String getToolTipText()
IItemgetToolTipText in interface IItempublic IImageConstant getIcon()
IItempublic 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