/** * Constructor. * @param fldTarget Field to initialize on change (to the owner's field). */ public InitOnChangeHandler(BaseField fldTarget) { this(); this.init(null, fldTarget); } /**
/** * Constructor. * @param fldTarget Field to initialize on change (to the owner's field). */ public InitOnChangeHandler(BaseField fldTarget) { this(); this.init(null, fldTarget); } /**
/** * Constructor. * @param fldTarget Field to initialize on change (to the owner's field). */ public InitOnChangeHandler(BaseField fldTarget) { this(); this.init(null, fldTarget); } /**
/** * Set this cloned listener to the same state at this listener. * @param field The field this new listener will be added to. * @param The new listener to sync to this. * @param Has the init method been called? * @return True if I called init. */ public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled) { if (!bInitCalled) { BaseField fldTarget = this.getSyncedListenersField(m_fldTarget, listener); ((InitOnChangeHandler)listener).init(null, fldTarget); } return super.syncClonedListener(field, listener, true); } /**
/** * Set this cloned listener to the same state at this listener. * @param field The field this new listener will be added to. * @param The new listener to sync to this. * @param Has the init method been called? * @return True if I called init. */ public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled) { if (!bInitCalled) { BaseField fldTarget = this.getSyncedListenersField(m_fldTarget, listener); ((InitOnChangeHandler)listener).init(null, fldTarget); } return super.syncClonedListener(field, listener, true); } /**
/** * Set this cloned listener to the same state at this listener. * @param field The field this new listener will be added to. * @param The new listener to sync to this. * @param Has the init method been called? * @return True if I called init. */ public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled) { if (!bInitCalled) { BaseField fldTarget = this.getSyncedListenersField(m_fldTarget, listener); ((InitOnChangeHandler)listener).init(null, fldTarget); } return super.syncClonedListener(field, listener, true); } /**