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); }
private void announceItemAndListenForChanges(IEquipmentItem refreshedItem) { announce().itemAdded(refreshedItem); refreshedItem.addChangeListener(itemChangePropagator); fireModelChanged(); }