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
GroupItemStateChangedEvent
s 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
Fields inherited from class org.openhab.core.items.events.ItemStateChangedEvent
itemState, oldItemState
-
Constructor Summary
-
Method Summary
Methods inherited from class org.openhab.core.items.events.ItemStateChangedEvent
getItemState, getOldItemState
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 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:Event
Gets the event type.- Specified by:
getType
in interfaceEvent
- Overrides:
getType
in classItemStateChangedEvent
- Returns:
- the event type
-
toString
- Overrides:
toString
in classItemStateChangedEvent
-