- All Known Implementing Classes:
@NonNullByDefault public interface StateChangeListener
This interface must be implemented by all classes that want to be notified about changes in the state of an item.
GenericItemclass provides the possibility to register such listeners.
- Kai Kreuzer - Initial contribution
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
stateChanged(Item item, State oldState, State newState)This method is called, if a state has changed.
stateUpdated(Item item, State state)This method is called, if a state was updated, but has not changed
stateChangedThis method is called, if a state has changed.
item- the item whose state has changed
oldState- the previous state
newState- the new state