/** * Constructor. * @param sourceField The source field to initialize the field owner to. */ public InitFieldHandler(BaseField sourceField, boolean bInitIfSourceNull, boolean bOnlyInitIfDestNull) { this(); this.init(null, sourceField, null, bInitIfSourceNull, bOnlyInitIfDestNull); } /**
/** * Constructor. * @param objSource The source string to initialize the field owner to. */ public InitFieldHandler(Object objSource) { this(); this.init(null, null, objSource, true, false); } /**
/** * Constructor. * @param sourceField The source field to initialize the field owner to. */ public InitFieldHandler(BaseField sourceField, boolean bInitIfSourceNull) { this(); this.init(null, sourceField, null, bInitIfSourceNull, false); } /**
/** * Constructor. * @param objSource The source string to initialize the field owner to. */ public InitFieldHandler(Object objSource) { this(); this.init(null, null, objSource, true, false); } /**
/** * Constructor. * @param sourceField The source field to initialize the field owner to. */ public InitFieldHandler(BaseField sourceField) { this(); this.init(null, sourceField, null, true, false); } /**
/** * Constructor. * @param sourceField The source field to initialize the field owner to. */ public InitFieldHandler(BaseField sourceField) { this(); this.init(null, sourceField, null, true, false); } /**
/** * Constructor. * @param sourceField The source field to initialize the field owner to. */ public InitFieldHandler(Field sourceField) { this(); this.init(null, sourceField, null, true, false); } /**
/** * Constructor. * @param sourceField The source field to initialize the field owner to. */ public InitFieldHandler(BaseField sourceField, boolean bInitIfSourceNull) { this(); this.init(null, sourceField, null, bInitIfSourceNull, false); } /**
/** * Constructor. * @param sourceField The source field to initialize the field owner to. */ public InitFieldHandler(BaseField sourceField, boolean bInitIfSourceNull, boolean bOnlyInitIfDestNull) { this(); this.init(null, sourceField, null, bInitIfSourceNull, bOnlyInitIfDestNull); } /**
/** * Constructor. * @param objSource The source string to initialize the field owner to. */ public InitFieldHandler(Object objSource) { this(); this.init(null, null, objSource, true, false); } /**
/** * Constructor. * @param sourceField The source field to initialize the field owner to. */ public InitFieldHandler(BaseField sourceField, boolean bInitIfSourceNull) { this(); this.init(null, sourceField, null, bInitIfSourceNull, false); } /**
/** * Constructor. * @param sourceField The source field to initialize the field owner to. */ public InitFieldHandler(BaseField sourceField, boolean bInitIfSourceNull, boolean bOnlyInitIfDestNull) { this(); this.init(null, sourceField, null, bInitIfSourceNull, bOnlyInitIfDestNull); } /**
/** * Constructor. * @param field The basefield owner of this listener (usually null and set on setOwner()). * @param fldSource The field with the source number of days to use as an offset. * @param lYears Offset by this number of years. * @param lMonths Offset by this number of months. * @param lDays Offset by this number of days. */ public void init(BaseField field, BaseField fldSource, DateTimeField fldStartDate, int lYears, int lMonths, int lDays, boolean bCalcIfNull) { super.init(field, fldSource, null, true, false); m_lYears = lYears; m_lMonths = lMonths; m_lDays = lDays; m_fldStartDate = fldStartDate; m_bCalcIfNull = bCalcIfNull; } /**
/** * Constructor. * @param field The basefield owner of this listener (usually null and set on setOwner()). * @param fldSource The field with the source number of days to use as an offset. * @param lYears Offset by this number of years. * @param lMonths Offset by this number of months. * @param lDays Offset by this number of days. */ public void init(BaseField field, BaseField fldSource, DateTimeField fldStartDate, int lYears, int lMonths, int lDays, boolean bCalcIfNull) { super.init(field, fldSource, null, true, false); m_lYears = lYears; m_lMonths = lMonths; m_lDays = lDays; m_fldStartDate = fldStartDate; m_bCalcIfNull = bCalcIfNull; } /**
/** * Constructor. * @param field The basefield owner of this listener (usually null and set on setOwner()). * @param fldSource The field with the source number of days to use as an offset. * @param lYears Offset by this number of years. * @param lMonths Offset by this number of months. * @param lDays Offset by this number of days. */ public void init(BaseField field, BaseField fldSource, DateTimeField fldStartDate, int lYears, int lMonths, int lDays, boolean bCalcIfNull) { super.init(field, fldSource, null, true, false); m_lYears = lYears; m_lMonths = lMonths; m_lDays = lDays; m_fldStartDate = fldStartDate; m_bCalcIfNull = bCalcIfNull; } /**
/** * 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 fldSource = this.getSyncedListenersField(m_fldSource, listener); ((InitFieldHandler)listener).init(null, fldSource, m_objSource, m_bInitIfSourceNull, m_bOnlyInitIfDestNull); } 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 fldSource = this.getSyncedListenersField(m_fldSource, listener); ((InitFieldHandler)listener).init(null, fldSource, m_objSource, m_bInitIfSourceNull, m_bOnlyInitIfDestNull); } 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 fldSource = this.getSyncedListenersField(m_fldSource, listener); ((InitFieldHandler)listener).init(null, fldSource, m_objSource, m_bInitIfSourceNull, m_bOnlyInitIfDestNull); } return super.syncClonedListener(field, listener, true); } /**