- 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.
GenericItem class provides the possibility to register such listeners.
- Kai Kreuzer - Initial contribution
stateChangedThis method is called, if a state has changed.
item- the item whose state has changed
oldState- the previous state
newState- the new state
stateUpdatedThis method is called, if a state was updated, but has not changed
item- the item whose state was updated
state- the current state, same before and after the update