Beispiel #1
0
 public void bind() {
   if (!bound) {
     bound = true;
     for (BindingUpdatable binding : bindings) {
       binding.bind();
     }
   }
 }
Beispiel #2
0
 public void unbind() {
   if (bound) {
     for (BindingUpdatable binding : bindings) {
       binding.unbind();
     }
     bound = false;
   }
 }
Beispiel #3
0
 public void reverseUpdate() {
   for (BindingUpdatable binding : bindings) {
     binding.reverseUpdate();
   }
 }
Beispiel #4
0
 public void update() {
   for (BindingUpdatable binding : bindings) {
     binding.update();
   }
 }
Beispiel #5
0
 public void addBinding(BindingUpdatable binding) {
   if (bound) binding.bind(); // bind is idempotent, so no state checking
   bindings.add(binding);
 }