Пример #1
0
 /** Removes listeners from the container so no events are processed */
 private void ignoreContainerEvents() {
   if (container instanceof ItemSetChangeNotifier) {
     ((ItemSetChangeNotifier) container).removeItemSetChangeListener(this);
   }
   if (container instanceof ValueChangeNotifier) {
     ((ValueChangeNotifier) container).removeValueChangeListener(this);
   }
 }
Пример #2
0
 /** Attaches listeners to the container so container events can be processed */
 private void listenToContainerEvents() {
   if (container instanceof ItemSetChangeNotifier) {
     ((ItemSetChangeNotifier) container).addItemSetChangeListener(this);
   }
   if (container instanceof ValueChangeNotifier) {
     ((ValueChangeNotifier) container).addValueChangeListener(this);
   }
 }