Package org.openhab.core.items.events
Class GroupStateUpdatedEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.items.events.ItemEvent
org.openhab.core.items.events.ItemStateUpdatedEvent
org.openhab.core.items.events.GroupStateUpdatedEvent
- All Implemented Interfaces:
Event
GroupStateUpdatedEvents can be used to deliver group item state updates through the openHAB event bus.
In contrast to the GroupItemStateChangedEvent it is always sent.
State events must be created with the ItemEventFactory.- Author:
- Jan N. Klug - Initial contribution
-
Field Summary
FieldsFields inherited from class org.openhab.core.items.events.ItemStateUpdatedEvent
itemState, lastStateUpdateFields inherited from class org.openhab.core.events.AbstractEvent
ACTOR_SEPARATOR, DELEGATION_SEPARATOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGroupStateUpdatedEvent(String topic, String payload, String itemName, String memberName, State newItemState, @Nullable ZonedDateTime lastStateUpdate, @Nullable String source) -
Method Summary
Methods inherited from class org.openhab.core.items.events.ItemStateUpdatedEvent
getItemState, getLastStateUpdateMethods inherited from class org.openhab.core.items.events.ItemEvent
getItemNameMethods inherited from class org.openhab.core.events.AbstractEvent
buildDelegatedSource, buildDelegatedSource, buildSource, equals, getPayload, getSource, getTopic, hashCode
-
Field Details
-
TYPE
The group item state changed event type.
-
-
Constructor Details
-
GroupStateUpdatedEvent
-
-
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 classItemStateUpdatedEvent- Returns:
- the event type
-
toString
- Overrides:
toStringin classItemStateUpdatedEvent
-