public class SeparatorItemModel extends java.lang.Object implements ISeparatorItemModel
| Constructor and Description |
|---|
SeparatorItemModel()
Creates a new separator item model
|
SeparatorItemModel(ISeparatorItemModelBuilder builder)
Creates a new separator item model with help of a builder
|
SeparatorItemModel(java.lang.String id)
Creates a new separator item model
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItemModelListener(IItemModelListener listener)
Adds a item model listener
|
static ISeparatorItemModelBuilder |
builder()
Creates a builder
|
static ISeparatorItemModelBuilder |
builder(java.lang.String id)
Creates a builder
|
ISeparatorItemModel |
createCopy()
Creates a deep copy of the item and its children.
|
boolean |
equals(java.lang.Object obj) |
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
|
protected ISeparatorItemModel |
getItemModel() |
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
|
int |
hashCode() |
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 |
removeItemModelListener(IItemModelListener listener)
removes a item model listener
|
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
|
IItemModel |
unwrap() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAccelerator, getIcon, getId, getMnemonic, getText, getToolTipText, isEnabled, isVisible, setAccelerator, setAccelerator, setEnabled, setIcon, setMnemonic, setMnemonic, setText, setToolTipText, setVisibleaddItemModelListener, removeItemModelListenerpublic SeparatorItemModel()
public SeparatorItemModel(java.lang.String id)
id - The id of the modelpublic SeparatorItemModel(ISeparatorItemModelBuilder builder)
builder - The builder to useprotected ISeparatorItemModel getItemModel()
public ISeparatorItemModel createCopy()
IItemModelcreateCopy in interface IItemModelcreateCopy in interface IMenuItemModelcreateCopy in interface ISeparatorItemModelpublic static ISeparatorItemModelBuilder builder()
public static ISeparatorItemModelBuilder builder(java.lang.String id)
id - The id to set on the builderpublic final java.lang.String getId()
IItemModelgetId in interface IItemModelpublic final java.lang.String getText()
IItemModelgetText in interface IItemModelpublic final java.lang.String getToolTipText()
IItemModelgetToolTipText in interface IItemModelpublic final IImageConstant getIcon()
IItemModelgetIcon in interface IItemModelpublic final Accelerator getAccelerator()
IItemModelgetAccelerator in interface IItemModelpublic final java.lang.Character getMnemonic()
IItemModelgetMnemonic in interface IItemModelpublic final boolean isEnabled()
IItemModelisEnabled in interface IItemModelpublic final void setText(java.lang.String text)
IItemModelsetText in interface IItemModeltext - The label text of the item, may be nullpublic final void setToolTipText(java.lang.String toolTipText)
IItemModelsetToolTipText in interface IItemModeltoolTipText - The tooltip text to set, may be nullpublic final void setIcon(IImageConstant icon)
IItemModelsetIcon in interface IItemModelicon - The icon to set, may be nullpublic final void setAccelerator(Accelerator accelerator)
IItemModelsetAccelerator in interface IItemModelaccelerator - The accelerator to set, may be nullpublic final void setAccelerator(VirtualKey key, Modifier... modifier)
IItemModelsetAccelerator in interface IItemModelkey - The character to usemodifier - The modifier to usepublic final void setMnemonic(java.lang.Character mnemonic)
IItemModelsetMnemonic in interface IItemModelmnemonic - The mnemonic character to set, may be nullpublic final void setMnemonic(char mnemonic)
IItemModelsetMnemonic in interface IItemModelmnemonic - The mnemonic character to setpublic final void setEnabled(boolean enabled)
IItemModelsetEnabled in interface IItemModelenabled - The enabled state to setpublic void setVisible(boolean visible)
IItemModelsetVisible in interface IItemModelvisible - The visible state to setpublic boolean isVisible()
IItemModelisVisible in interface IItemModelpublic final void addItemModelListener(IItemModelListener listener)
IItemModelObservableaddItemModelListener in interface IItemModelObservablelistener - The listener to addpublic final void removeItemModelListener(IItemModelListener listener)
IItemModelObservableremoveItemModelListener in interface IItemModelObservablelistener - The listener to removepublic IItemModel unwrap()
unwrap in interface IWrapper<IItemModel>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectSiehe auch Jowidgets Nutzerhandbuch