@Override
 public void onStateChanged(StateChangeEvent stateChangeEvent) {
   super.onStateChanged(stateChangeEvent);
   if (stateChangeEvent.hasPropertyChanged("open")) {
     refresh();
   }
 }
Beispiel #2
0
 @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;
 }