/** * Do the physical move operation. * @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 moveIt(boolean bDisplayOption, int iMoveMode) { if (m_convCheckMark != null) if (m_convCheckMark.getState() == false) return DBConstants.NORMAL_RETURN; // If check mark is false (or no check mark), don't move return super.moveIt(bDisplayOption, iMoveMode); } }
/** * Do the physical move operation. * @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 moveIt(boolean bDisplayOption, int iMoveMode) { if (m_convCheckMark != null) if (m_convCheckMark.getState() == false) return DBConstants.NORMAL_RETURN; // If check mark is false (or no check mark), don't move return super.moveIt(bDisplayOption, iMoveMode); } }
/** * Do the physical move operation. * @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 moveIt(boolean bDisplayOption, int iMoveMode) { if (m_convCheckMark != null) if (m_convCheckMark.getState() == false) return DBConstants.NORMAL_RETURN; // If check mark is false (or no check mark), don't move return super.moveIt(bDisplayOption, iMoveMode); } }
/** * The Field has Changed. * Move the source field to the destination field. * @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 fieldChanged(boolean bDisplayOption, int iMoveMode) { int iErrorCode = this.moveIt(bDisplayOption, iMoveMode); if (iErrorCode != DBConstants.NORMAL_RETURN) if (this.getOwner() != m_fldSource) if (this.getOwner() != m_fldDest) iErrorCode = DBConstants.NORMAL_RETURN; // If the source and dest are unrelated this this, don't return an error (and revert this field) if (iErrorCode == DBConstants.NORMAL_RETURN) iErrorCode = super.fieldChanged(bDisplayOption, iMoveMode); return iErrorCode; } /**
/** * The Field has Changed. * Move the source field to the destination field. * @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 fieldChanged(boolean bDisplayOption, int iMoveMode) { int iErrorCode = this.moveIt(bDisplayOption, iMoveMode); if (iErrorCode != DBConstants.NORMAL_RETURN) if (this.getOwner() != m_fldSource) if (this.getOwner() != m_fldDest) iErrorCode = DBConstants.NORMAL_RETURN; // If the source and dest are unrelated this this, don't return an error (and revert this field) if (iErrorCode == DBConstants.NORMAL_RETURN) iErrorCode = super.fieldChanged(bDisplayOption, iMoveMode); return iErrorCode; } /**
/** * The Field has Changed. * Move the source field to the destination field. * @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 fieldChanged(boolean bDisplayOption, int iMoveMode) { int iErrorCode = this.moveIt(bDisplayOption, iMoveMode); if (iErrorCode != DBConstants.NORMAL_RETURN) if (this.getOwner() != m_fldSource) if (this.getOwner() != m_fldDest) iErrorCode = DBConstants.NORMAL_RETURN; // If the source and dest are unrelated this this, don't return an error (and revert this field) if (iErrorCode == DBConstants.NORMAL_RETURN) iErrorCode = super.fieldChanged(bDisplayOption, iMoveMode); return iErrorCode; } /**
/** * The Field has Changed. * @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 moveIt(boolean bDisplayOption, int iMoveMode) { ((BaseField)m_fldDest.getField()).setEnabled(!this.getOwner().getState()); if (iMoveMode != DBConstants.SCREEN_MOVE) return DBConstants.NORMAL_RETURN; if (this.getOwner().getState() == false) { if (bDisplayOption) ((BaseField)m_fldDest.getField()).displayField(); // Redisplay return DBConstants.NORMAL_RETURN; } else return super.moveIt(bDisplayOption, iMoveMode); // Move it! } }
/** * The Field has Changed. * @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 moveIt(boolean bDisplayOption, int iMoveMode) { ((BaseField)m_fldDest.getField()).setEnabled(!this.getOwner().getState()); if (iMoveMode != DBConstants.SCREEN_MOVE) return DBConstants.NORMAL_RETURN; if (this.getOwner().getState() == false) { if (bDisplayOption) ((BaseField)m_fldDest.getField()).displayField(); // Redisplay return DBConstants.NORMAL_RETURN; } else return super.moveIt(bDisplayOption, iMoveMode); // Move it! } }
/** * The Field has Changed. * @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 moveIt(boolean bDisplayOption, int iMoveMode) { ((BaseField)m_fldDest.getField()).setEnabled(!this.getOwner().getState()); if (iMoveMode != DBConstants.SCREEN_MOVE) return DBConstants.NORMAL_RETURN; if (this.getOwner().getState() == false) { if (bDisplayOption) ((BaseField)m_fldDest.getField()).displayField(); // Redisplay return DBConstants.NORMAL_RETURN; } else return super.moveIt(bDisplayOption, iMoveMode); // Move it! } }