public void register ( final ItemManager itemManager ) { if ( this.itemManager == itemManager ) { return; } unregister (); this.itemManager = itemManager; this.itemManager.addItemUpdateListener ( this.itemId, this.listener ); }
public void register ( final ItemManager itemManager ) { if ( this.itemManager == itemManager ) { return; } unregister (); this.itemManager = itemManager; this.itemManager.addItemUpdateListener ( this.itemId, this.listener ); }
private void disconnect () { if ( this.connectionService != null ) { this.connectionService = null; } if ( this.dataItem != null ) { this.dataItem.deleteObservers (); this.dataItem.unregister (); this.dataItem = null; } }
protected synchronized void unbind () { this.observer = null; if ( this.dataItem != null ) { this.dataItem.unregister (); this.dataItem.deleteObservers (); handleUpdate ( null, DataItemValue.DISCONNECTED ); } }
protected synchronized void unbind () { this.observer = null; if ( this.dataItem != null ) { this.dataItem.unregister (); this.dataItem.deleteObservers (); handleUpdate ( null, DataItemValue.DISCONNECTED ); } }
@Override protected synchronized void unbindConnection () { super.unbindConnection (); if ( this.dataItem != null ) { if ( this.listener != null ) { this.dataItem.deleteObserver ( this.observer ); this.dataItem.unregister (); } this.dataItem = null; } fireListenerChange ( null ); }