@Deprecated public class JoCheckedMenuItem extends java.lang.Object implements ISelectableMenuItem
Constructor and Description |
---|
JoCheckedMenuItem(ICheckedMenuItemDescriptor descriptor)
Deprecated.
|
JoCheckedMenuItem(java.lang.String text)
Deprecated.
|
JoCheckedMenuItem(java.lang.String text,
IImageConstant icon)
Deprecated.
|
JoCheckedMenuItem(java.lang.String text,
java.lang.String tooltipText)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addDisposeListener(IDisposeListener listener)
Deprecated.
Adds a dispose listener
|
void |
addItemListener(IItemStateListener listener)
Deprecated.
Adds an item state listener
|
static ICheckedMenuItemBluePrint |
bluePrint()
Deprecated.
|
static ICheckedMenuItemBluePrint |
bluePrint(java.lang.String text)
Deprecated.
|
static ICheckedMenuItemBluePrint |
bluePrint(java.lang.String text,
IImageConstant icon)
Deprecated.
|
static ICheckedMenuItemBluePrint |
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
|
ISelectableMenuItemModel |
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.
|
boolean |
isSelected()
Deprecated.
Gets the selection state of the item
|
void |
removeDisposeListener(IDisposeListener listener)
Deprecated.
Removes a dispose listener
|
void |
removeItemListener(IItemStateListener listener)
Deprecated.
Removes an item state listener
|
void |
setAccelerator(Accelerator accelerator)
Deprecated.
Sets the key combination which should invoke the menu items actions 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(ISelectableMenuItemModel model)
Deprecated.
|
void |
setSelected(boolean selected)
Deprecated.
Sets the selection state of the item
|
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
getModel, setModel
getIcon, getText, getToolTipText
dispose, getRoot, isDisposed
addDisposeListener, removeDisposeListener
setAccelerator
isSelected, setSelected
addItemListener, removeItemListener
setMnemonic
setIcon, setText, setToolTipText
getUiReference, isEnabled, setEnabled
public JoCheckedMenuItem(java.lang.String text, IImageConstant icon)
public JoCheckedMenuItem(java.lang.String text)
public JoCheckedMenuItem(java.lang.String text, java.lang.String tooltipText)
public JoCheckedMenuItem(ICheckedMenuItemDescriptor descriptor)
public static ICheckedMenuItemBluePrint bluePrint()
public static ICheckedMenuItemBluePrint bluePrint(java.lang.String text)
public static ICheckedMenuItemBluePrint bluePrint(java.lang.String text, java.lang.String tooltipText)
public static ICheckedMenuItemBluePrint bluePrint(java.lang.String text, IImageConstant icon)
public void addItemListener(IItemStateListener listener)
IItemStateObservable
addItemListener
in interface IItemStateObservable
listener
- The listener to addpublic void removeItemListener(IItemStateListener listener)
IItemStateObservable
removeItemListener
in interface IItemStateObservable
listener
- The listener to removepublic void setAccelerator(Accelerator accelerator)
ISelectableMenuItemCommon
setAccelerator
in interface ISelectableMenuItemCommon
accelerator
- The accelerator to set, may be nullpublic boolean isSelected()
ISelectableItemCommon
isSelected
in interface ISelectableItemCommon
public void setSelected(boolean selected)
ISelectableItemCommon
setSelected
in interface ISelectableItemCommon
selected
- The selection state to setpublic void setModel(ISelectableMenuItemModel model)
setModel
in interface ISelectableMenuItem
public ISelectableMenuItemModel getModel()
IMenuItem
getModel
in interface IMenuItem
getModel
in interface ISelectableMenuItem
public void setMnemonic(char mnemonic)
IMenuItemCommon
setMnemonic
in interface IMenuItemCommon
mnemonic
- The mnemonic to setpublic IMenu getParent()
IWidget
public void setModel(IMenuItemModel model)
IMenuItem
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 java.lang.String getText()
IItem
public java.lang.String getToolTipText()
IItem
getToolTipText
in interface IItem
public IImageConstant getIcon()
IItem
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