Package org.openhab.core.items.events
Class GroupItemStateChangedEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.items.events.ItemEvent
org.openhab.core.items.events.ItemStateChangedEvent
org.openhab.core.items.events.GroupItemStateChangedEvent
- All Implemented Interfaces:
Event
GroupItemStateChangedEvents can be used to deliver group item state changes through the openHAB event bus. In
contrast to the GroupStateUpdatedEvent the GroupItemStateChangedEvent is only sent if the state
changed.
State events must be created with the ItemEventFactory.- Author:
- Christoph Knauf - Initial contribution
-
Field Summary
FieldsFields inherited from class org.openhab.core.items.events.ItemStateChangedEvent
itemState, oldItemState -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openhab.core.items.events.ItemStateChangedEvent
getItemState, getOldItemStateMethods inherited from class org.openhab.core.items.events.ItemEvent
getItemNameMethods inherited from class org.openhab.core.events.AbstractEvent
equals, getPayload, getSource, getTopic, hashCode
-
Field Details
-
TYPE
The group item state changed event type.
-
-
Constructor Details
-
GroupItemStateChangedEvent
-
-
Method Details
-
getMemberName
- Returns:
- the name of the changed group member
-
getType
Description copied from interface:EventGets the event type.- Specified by:
getTypein interfaceEvent- Overrides:
getTypein classItemStateChangedEvent- Returns:
- the event type
-
toString
- Overrides:
toStringin classItemStateChangedEvent
-