private void initItem(final IEquipmentItem item) {
   equipmentItemControl.forAllDo(
       new IClosure<ICollectionListener<IEquipmentItem>>() {
         @Override
         public void execute(ICollectionListener<IEquipmentItem> input) {
           input.itemAdded(item);
         }
       });
   modelChangeControl.fireChangedEvent();
   item.addChangeListener(itemChangePropagator);
 }
예제 #2
0
 private void announceItemAndListenForChanges(IEquipmentItem refreshedItem) {
   announce().itemAdded(refreshedItem);
   refreshedItem.addChangeListener(itemChangePropagator);
   fireModelChanged();
 }