@Override public void onStateChanged(StateChangeEvent stateChangeEvent) { super.onStateChanged(stateChangeEvent); if (stateChangeEvent.hasPropertyChanged("open")) { refresh(); } }
@Override public void onStateChanged(StateChangeEvent event) { super.onStateChanged(event); timer.cancel(); if (isEnabled()) { timer.scheduleRepeating(getState().interval); } }
@Override public void onStateChanged(StateChangeEvent stateChangeEvent) { super.onStateChanged(stateChangeEvent); offlineTimeoutMillis = getState().offlineModeTimeout * 1000; }