Package org.openhab.core.items.events
Class ItemCommandEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.items.events.ItemEvent
org.openhab.core.items.events.ItemCommandEvent
- All Implemented Interfaces:
Event
ItemCommandEvent
s can be used to deliver commands through the openHAB event bus.
Command events must be created with the ItemEventFactory
.- Author:
- Stefan Bußweiler - Initial contribution
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.openhab.core.items.events.ItemEvent
getItemName
Methods inherited from class org.openhab.core.events.AbstractEvent
equals, getPayload, getSource, getTopic, hashCode
-
Field Details
-
TYPE
The item command event type.
-
-
Constructor Details
-
ItemCommandEvent
protected ItemCommandEvent(String topic, String payload, String itemName, Command command, @Nullable String source) Constructs a new item command event object.- Parameters:
topic
- the topicpayload
- the payloaditemName
- the item namecommand
- the commandsource
- the source, can be null
-
-
Method Details