/** * Move the physical binary data to this field. * If this is an init set, only does it until the first change. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode) { int iErrorCode = DBConstants.NORMAL_RETURN; if ((m_bFirstTime) || (iMoveMode == DBConstants.READ_MOVE) || (iMoveMode == DBConstants.SCREEN_MOVE)) iErrorCode = super.doSetData(objData, bDisplayOption, iMoveMode); m_bFirstTime = false; // No more Inits allowed return iErrorCode; } /**
/** * Move the physical binary data to this field. * If this is an init set, only does it until the first change. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode) { int iErrorCode = DBConstants.NORMAL_RETURN; if ((m_bFirstTime) || (iMoveMode == DBConstants.READ_MOVE) || (iMoveMode == DBConstants.SCREEN_MOVE)) iErrorCode = super.doSetData(objData, bDisplayOption, iMoveMode); m_bFirstTime = false; // No more Inits allowed return iErrorCode; } /**
/** * Move the physical binary data to this field. * If this is an init set, only does it until the first change. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode) { int iErrorCode = DBConstants.NORMAL_RETURN; if ((m_bFirstTime) || (iMoveMode == DBConstants.READ_MOVE) || (iMoveMode == DBConstants.SCREEN_MOVE)) iErrorCode = super.doSetData(objData, bDisplayOption, iMoveMode); m_bFirstTime = false; // No more Inits allowed return iErrorCode; } /**
/** * Move the physical binary data to this field. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode) { if (objData instanceof String) objData = ((String)objData).toUpperCase(); return super.doSetData(objData, bDisplayOption, iMoveMode); } }
/** * Move the physical binary data to this field. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode) { if (objData instanceof String) objData = ((String)objData).toUpperCase(); return super.doSetData(objData, bDisplayOption, iMoveMode); } }
/** * Move the physical binary data to this field. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode) { if (objData instanceof String) objData = ((String)objData).toUpperCase(); return super.doSetData(objData, bDisplayOption, iMoveMode); } }
/** * Move the physical binary data to this field. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object objData, boolean bDisplayOption, int moveMode) { if (objData instanceof String) if (((String)objData).length() > 3) if (((String)objData).substring(0, 4).equalsIgnoreCase("THE ")) { objData = ((String)objData).substring(4); } return super.doSetData(objData, bDisplayOption, moveMode); } }
/** * Move the physical binary data to this field. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object objData, boolean bDisplayOption, int moveMode) { if (objData instanceof String) if (((String)objData).length() > 3) if (((String)objData).substring(0, 4).equalsIgnoreCase("THE ")) { objData = ((String)objData).substring(4); } return super.doSetData(objData, bDisplayOption, moveMode); } }
/** * Move the physical binary data to this field. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object objData, boolean bDisplayOption, int moveMode) { if (objData instanceof String) if (((String)objData).length() > 3) if (((String)objData).substring(0, 4).equalsIgnoreCase("THE ")) { objData = ((String)objData).substring(4); } return super.doSetData(objData, bDisplayOption, moveMode); } }
/** * DoSetData Method. */ public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode) { if (iMoveMode == DBConstants.INIT_MOVE) objData = this.getStatus(); return super.doSetData(objData, bDisplayOption, iMoveMode); } /**
/** * DoSetData Method. */ public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode) { if (iMoveMode == DBConstants.INIT_MOVE) objData = this.getStatus(); return super.doSetData(objData, bDisplayOption, iMoveMode); } /**
/** * Move the physical binary data to this field. * If there is not SubFileFilter, then don't allow the field to be inited. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object fieldPtr, boolean bDisplayOption, int iMoveMode) { int iErrorCode = DBConstants.NORMAL_RETURN; boolean bSubExists = (this.getOwner().getRecord().getListener(SubFileFilter.class.getName()) != null); if (bSubExists) iErrorCode = super.doSetData(fieldPtr, bDisplayOption, iMoveMode); return iErrorCode; } }
/** * Move the physical binary data to this field. * If there is not SubFileFilter, then don't allow the field to be inited. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object fieldPtr, boolean bDisplayOption, int iMoveMode) { int iErrorCode = DBConstants.NORMAL_RETURN; boolean bSubExists = (this.getOwner().getRecord().getListener(SubFileFilter.class.getName()) != null); if (bSubExists) iErrorCode = super.doSetData(fieldPtr, bDisplayOption, iMoveMode); return iErrorCode; } }
/** * Move the physical binary data to this field. * If there is not SubFileFilter, then don't allow the field to be inited. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object fieldPtr, boolean bDisplayOption, int iMoveMode) { int iErrorCode = DBConstants.NORMAL_RETURN; boolean bSubExists = (this.getOwner().getRecord().getListener(SubFileFilter.class.getName()) != null); if (bSubExists) iErrorCode = super.doSetData(fieldPtr, bDisplayOption, iMoveMode); return iErrorCode; } }
/** * Move the physical binary data to this field. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode) { int iErrorCode = DBConstants.NORMAL_RETURN; FieldListener nextListener = (FieldListener)this.getNextValidListener(iMoveMode); if (nextListener != null) { boolean bOldState = nextListener.setEnabledListener(false); // Disable the listener to eliminate echos iErrorCode = nextListener.doSetData(objData, bDisplayOption, iMoveMode); nextListener.setEnabledListener(bOldState); // Reenable } else if (m_owner != null) iErrorCode = this.getOwner().doSetData(objData, bDisplayOption, iMoveMode); return iErrorCode; } /**
/** * Move the physical binary data to this field. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode) { int iErrorCode = DBConstants.NORMAL_RETURN; FieldListener nextListener = (FieldListener)this.getNextValidListener(iMoveMode); if (nextListener != null) { boolean bOldState = nextListener.setEnabledListener(false); // Disable the listener to eliminate echos iErrorCode = nextListener.doSetData(objData, bDisplayOption, iMoveMode); nextListener.setEnabledListener(bOldState); // Reenable } else if (m_owner != null) iErrorCode = this.getOwner().doSetData(objData, bDisplayOption, iMoveMode); return iErrorCode; } /**
/** * Move the physical binary data to this field. * @param objData the raw data to set the basefield to. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode) { int iErrorCode = DBConstants.NORMAL_RETURN; FieldListener nextListener = (FieldListener)this.getNextValidListener(iMoveMode); if (nextListener != null) { boolean bOldState = nextListener.setEnabledListener(false); // Disable the listener to eliminate echos iErrorCode = nextListener.doSetData(objData, bDisplayOption, iMoveMode); nextListener.setEnabledListener(bOldState); // Reenable } else if (m_owner != null) iErrorCode = this.getOwner().doSetData(objData, bDisplayOption, iMoveMode); return iErrorCode; } /**
return super.doSetData(objData, bDisplayOption, iMoveMode);
/** * DoSetData Method. */ public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode) { if (objData instanceof String) { // The user pressed the button. Record recBaseStatus = this.getOwner().getRecord(); BaseField fldStatusID = recBaseStatus.getReferringField(); Record recBookingDetail = fldStatusID.getRecord(); Task task = null; if (recBookingDetail.getRecordOwner() != null) task = recBookingDetail.getRecordOwner().getTask(); else if (recBaseStatus.getRecordOwner() != null) task = recBaseStatus.getRecordOwner().getTask(); String strMessage = this.getDisplayMessage(); if (task != null) task.setStatusText(strMessage); return DBConstants.NORMAL_RETURN; } return super.doSetData(objData, bDisplayOption, iMoveMode); } /**
/** * DoSetData Method. */ public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode) { if (objData instanceof String) { // The user pressed the button. Record recBaseStatus = this.getOwner().getRecord(); BaseField fldStatusID = recBaseStatus.getReferringField(); Record recBookingDetail = fldStatusID.getRecord(); Task task = null; if (recBookingDetail.getRecordOwner() != null) task = recBookingDetail.getRecordOwner().getTask(); else if (recBaseStatus.getRecordOwner() != null) task = recBaseStatus.getRecordOwner().getTask(); String strMessage = this.getDisplayMessage(); if (task != null) task.setStatusText(strMessage); return DBConstants.NORMAL_RETURN; } return super.doSetData(objData, bDisplayOption, iMoveMode); } /**