public interface IItemModelBuilder<INSTANCE_TYPE,ITEM_TYPE>
Modifier and Type | Method and Description |
---|---|
ITEM_TYPE |
build()
Creates a new model based on the given setup
|
INSTANCE_TYPE |
setAccelerator(Accelerator accelerator)
Sets the key accelerator
|
INSTANCE_TYPE |
setAccelerator(char key,
Modifier... modifier)
Sets the key accelerator
|
INSTANCE_TYPE |
setAccelerator(VirtualKey key,
Modifier... modifier)
Sets the key accelerator
|
INSTANCE_TYPE |
setEnabled(boolean enabled)
Sets the initial enabled state
The default value is true
|
INSTANCE_TYPE |
setIcon(IImageConstant icon)
Sets the icon
|
INSTANCE_TYPE |
setId(java.lang.String id)
The the id if the item.
|
INSTANCE_TYPE |
setMnemonic(char mnemonic)
Sets the mnemonic
|
INSTANCE_TYPE |
setMnemonic(java.lang.Character mnemonic)
Sets the mnemonic
|
INSTANCE_TYPE |
setText(java.lang.String text)
Sets the label text
|
INSTANCE_TYPE |
setToolTipText(java.lang.String toolTipText)
Sets the tooltip text
|
INSTANCE_TYPE setId(java.lang.String id)
id
- The id to setINSTANCE_TYPE setText(java.lang.String text)
text
- The label text to setINSTANCE_TYPE setToolTipText(java.lang.String toolTipText)
toolTipText
- The tooltip text to setINSTANCE_TYPE setIcon(IImageConstant icon)
icon
- The icon to setINSTANCE_TYPE setAccelerator(Accelerator accelerator)
accelerator
- The accelerator to setINSTANCE_TYPE setAccelerator(VirtualKey key, Modifier... modifier)
key
- The virtual key of the acceleratormodifier
- The modifier of the acceleratorINSTANCE_TYPE setAccelerator(char key, Modifier... modifier)
key
- The key character of the acceleratormodifier
- The modifier of the acceleratorINSTANCE_TYPE setMnemonic(java.lang.Character mnemonic)
mnemonic
- The mnemonic to setINSTANCE_TYPE setMnemonic(char mnemonic)
mnemonic
- The mnemonic to setINSTANCE_TYPE setEnabled(boolean enabled)
enabled
- The enabled state to setITEM_TYPE build()
Siehe auch Jowidgets Nutzerhandbuch