Represents an item with various properties and actions.
Indicates whether the item is enabled. Defaults to true.
The icon to be displayed for the item. Defaults to null.
The mnemonic character for the item. Defaults to null.
The action to be performed when the item is clicked. Defaults to an empty action.
The keyboard shortcut for the item. Defaults to null.
The text to be displayed for the item. Defaults to "Empty Item".
Composes the item with the specified properties.
Sets the onClick action for the item.