public interface IItemModel extends IItemModelObservable
Modifier and Type | Method and Description |
---|---|
IItemModel |
createCopy()
Creates a deep copy of the item and its children.
|
Accelerator |
getAccelerator()
Gets the key accelerator that should be used for the item
|
IImageConstant |
getIcon()
Gets the items icon
|
java.lang.String |
getId()
Gets the id of the item
|
java.lang.Character |
getMnemonic()
Gets the mnemonic character
|
java.lang.String |
getText()
Gets the items label text
|
java.lang.String |
getToolTipText()
Gets the tooltip text of the item
|
boolean |
isEnabled()
Gets the enabled state of the item
Remark: Not all bound items may support to become disabled
|
boolean |
isVisible()
Gets the visible state of the item
|
void |
setAccelerator(Accelerator accelerator)
Sets the key accelerator that should be used for the item
|
void |
setAccelerator(VirtualKey key,
Modifier... modifier)
Sets the key accelerator that should be used for the item
|
void |
setEnabled(boolean enabled)
Sets the enabled state of the item.
|
void |
setIcon(IImageConstant icon)
Sets the items icon
|
void |
setMnemonic(char mnemonic)
Sets the mnemonic character
|
void |
setMnemonic(java.lang.Character mnemonic)
Sets the mnemonic character
|
void |
setText(java.lang.String text)
Sets the items label text
|
void |
setToolTipText(java.lang.String toolTipText)
Sets the tooltip text for the item
|
void |
setVisible(boolean visible)
Sets the visible state of an item
Items that was set invisible will be hidden in their container
|
addItemModelListener, removeItemModelListener
java.lang.String getId()
void setText(java.lang.String text)
text
- The label text of the item, may be nulljava.lang.String getText()
void setToolTipText(java.lang.String toolTipText)
toolTipText
- The tooltip text to set, may be nulljava.lang.String getToolTipText()
void setIcon(IImageConstant icon)
icon
- The icon to set, may be nullIImageConstant getIcon()
void setAccelerator(Accelerator accelerator)
accelerator
- The accelerator to set, may be nullvoid setAccelerator(VirtualKey key, Modifier... modifier)
key
- The character to usemodifier
- The modifier to useAccelerator getAccelerator()
void setMnemonic(java.lang.Character mnemonic)
mnemonic
- The mnemonic character to set, may be nullvoid setMnemonic(char mnemonic)
mnemonic
- The mnemonic character to setjava.lang.Character getMnemonic()
void setEnabled(boolean enabled)
enabled
- The enabled state to setboolean isEnabled()
void setVisible(boolean visible)
visible
- The visible state to setboolean isVisible()
IItemModel createCopy()
Siehe auch Jowidgets Nutzerhandbuch