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
ItemStateEvents 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 SummaryFieldsModifier and TypeFieldDescriptionprotected final Statestatic final StringThe item state event type.Fields inherited from class org.openhab.core.events.AbstractEventACTOR_SEPARATOR, DELEGATION_SEPARATOR
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.openhab.core.items.events.ItemEventgetItemNameMethods inherited from class org.openhab.core.events.AbstractEventbuildDelegatedSource, buildDelegatedSource, buildSource, equals, getPayload, getSource, getTopic, hashCode
- 
Field Details- 
TYPEThe item state event type.
- 
itemState
 
- 
- 
Constructor Details- 
ItemStateEventprotected ItemStateEvent(String topic, String payload, String itemName, State itemState, @Nullable String source) Constructs a new item state event.- Parameters:
- topic- the topic
- payload- the payload
- itemName- the item name
- itemState- the item state
- source- the source, can be null
 
 
- 
- 
Method Details