Package org.openhab.core.items.events
Class ItemStateEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.items.events.ItemEvent
org.openhab.core.items.events.ItemStateEvent
- All Implemented Interfaces:
Event
ItemStateEvent
s can be used to deliver item status updates through the openHAB event bus.
State 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 state event type. -
itemState
-
-
Constructor Details
-
ItemStateEvent
protected ItemStateEvent(String topic, String payload, String itemName, State itemState, @Nullable String source) Constructs a new item state event.- Parameters:
topic
- the topicpayload
- the payloaditemName
- the item nameitemState
- the item statesource
- the source, can be null
-
-
Method Details