/** * Should I pass the alternate field (or the main field)? * Pass the alternate field if the checkmark is true. * @return index (-1)= next converter, 0 - n = List of converters */ public int getIndexOfConverterToPass(boolean bSetData) { if (m_convCheckmark != null) if (m_convCheckmark.getState() == true) return 0; // Retrieve the alternate field return -1; // Else, Retrieve this info } }
/** * Should I pass the alternate field (or the main field)? * Pass the alternate field if the checkmark is true. * @return index (-1)= next converter, 0 - n = List of converters */ public int getIndexOfConverterToPass(boolean bSetData) { if (m_convCheckmark != null) if (m_convCheckmark.getState() == true) return 0; // Retrieve the alternate field return -1; // Else, Retrieve this info } }
/** * Should I pass the alternate field (or the main field)? * Pass the alternate field if the checkmark is true. * @return index (-1)= next converter, 0 - n = List of converters */ public int getIndexOfConverterToPass(boolean bSetData) { if (m_convCheckmark != null) if (m_convCheckmark.getState() == true) return 0; // Retrieve the alternate field return -1; // Else, Retrieve this info } }
/** * 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); } }
/** * Convert and move string to this field. * Toggle the field value. * Override this method to convert the String to the actual Physical Data Type. * @param strString the state to set the data to. * @param bDisplayOption Display the data on the screen if true. * @param iMoveMode INIT, SCREEN, or READ move mode. * @return The error code (or NORMAL_RETURN). */ public int setString(String string, boolean bDisplayOption, int moveMode) { boolean bNewState = !this.getNextConverter().getState(); return this.getNextConverter().setState(bNewState, bDisplayOption, moveMode); // Toggle the state } }
/** * Convert and move string to this field. * Toggle the field value. * Override this method to convert the String to the actual Physical Data Type. * @param strString the state to set the data to. * @param bDisplayOption Display the data on the screen if true. * @param iMoveMode INIT, SCREEN, or READ move mode. * @return The error code (or NORMAL_RETURN). */ public int setString(String string, boolean bDisplayOption, int moveMode) { boolean bNewState = !this.getNextConverter().getState(); return this.getNextConverter().setState(bNewState, bDisplayOption, moveMode); // Toggle the state } }
/** * Convert and move string to this field. * Toggle the field value. * Override this method to convert the String to the actual Physical Data Type. * @param strString the state to set the data to. * @param bDisplayOption Display the data on the screen if true. * @param iMoveMode INIT, SCREEN, or READ move mode. * @return The error code (or NORMAL_RETURN). */ public int setString(String string, boolean bDisplayOption, int moveMode) { boolean bNewState = !this.getNextConverter().getState(); return this.getNextConverter().setState(bNewState, bDisplayOption, moveMode); // Toggle the state } }
/** * The Field has Changed. * If the flag is true, do inherited (read secondary), otherwise do initRecord. * @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) { if (m_convFlag.getState()) return super.fieldChanged(bDisplayOption, iMoveMode); else { try { m_record.initRecord(bDisplayOption); // Clear the fields m_record.addNew(); } catch(DBException ex) { ex.printStackTrace(); // Never } } return DBConstants.NORMAL_RETURN; } }
/** * The Field has Changed. * If the flag is true, do inherited (read secondary), otherwise do initRecord. * @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) { if (m_convFlag.getState()) return super.fieldChanged(bDisplayOption, iMoveMode); else { try { m_record.initRecord(bDisplayOption); // Clear the fields m_record.addNew(); } catch(DBException ex) { ex.printStackTrace(); // Never } } return DBConstants.NORMAL_RETURN; } }
/** * The Field has Changed. * If the flag is true, do inherited (read secondary), otherwise do initRecord. * @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) { if (m_convFlag.getState()) return super.fieldChanged(bDisplayOption, iMoveMode); else { try { m_record.initRecord(bDisplayOption); // Clear the fields m_record.addNew(); } catch(DBException ex) { ex.printStackTrace(); // Never } } return DBConstants.NORMAL_RETURN; } }
/** * Actually move the data. * @param bDisplayOption If true, display any changes. */ public void moveTheData(boolean bDisplayOption, int iMoveType) { if (m_convCheckMark != null) if (m_bDisableOnMove) m_fldDest.setEnabled(!m_convCheckMark.getState()); if ((m_convCheckMark == null) || (m_convCheckMark.getState())) { if ((this.getSourceField() != null) && ((!this.getSourceField().isNull()) || (!m_bDontMoveNullSource))) m_fldDest.moveFieldToThis(this.getSourceField(), bDisplayOption, iMoveType); // Move dependent field to here else if (m_strSource != null) m_fldDest.setString(m_strSource, bDisplayOption, iMoveType); // Move dependent field to here else if (m_fldDest instanceof ReferenceField) ((ReferenceField)m_fldDest).setReference(this.getOwner(), bDisplayOption, iMoveType); } else { if (bDisplayOption) m_fldDest.displayField(); // Redisplay based on this check mark } } /**
/** * Actually move the data. * @param bDisplayOption If true, display any changes. */ public void moveTheData(boolean bDisplayOption, int iMoveType) { if (m_convCheckMark != null) if (m_bDisableOnMove) m_fldDest.setEnabled(!m_convCheckMark.getState()); if ((m_convCheckMark == null) || (m_convCheckMark.getState())) { if ((this.getSourceField() != null) && ((!this.getSourceField().isNull()) || (!m_bDontMoveNullSource))) m_fldDest.moveFieldToThis(this.getSourceField(), bDisplayOption, iMoveType); // Move dependent field to here else if (m_strSource != null) m_fldDest.setString(m_strSource, bDisplayOption, iMoveType); // Move dependent field to here else if (m_fldDest instanceof ReferenceField) ((ReferenceField)m_fldDest).setReference(this.getOwner(), bDisplayOption, iMoveType); } else { if (bDisplayOption) m_fldDest.displayField(); // Redisplay based on this check mark } } /**
/** * Actually move the data. * @param bDisplayOption If true, display any changes. */ public void moveTheData(boolean bDisplayOption, int iMoveType) { if (m_convCheckMark != null) if (m_bDisableOnMove) m_fldDest.setEnabled(!m_convCheckMark.getState()); if ((m_convCheckMark == null) || (m_convCheckMark.getState())) { if ((this.getSourceField() != null) && ((!this.getSourceField().isNull()) || (!m_bDontMoveNullSource))) m_fldDest.moveFieldToThis(this.getSourceField(), bDisplayOption, iMoveType); // Move dependent field to here else if (m_strSource != null) m_fldDest.setString(m_strSource, bDisplayOption, iMoveType); // Move dependent field to here else if (m_fldDest instanceof ReferenceField) ((ReferenceField)m_fldDest).setReference(this.getOwner(), bDisplayOption, iMoveType); } else { if (bDisplayOption) m_fldDest.displayField(); // Redisplay based on this check mark } } /**
if (m_convFlag != null) if (!m_convFlag.getState()) return super.doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); // Flag not set, don't process it BaseField recordField = m_fldToCheck;
if (m_convFlag != null) if (!m_convFlag.getState()) return super.doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); // Flag not set, don't process it BaseField recordField = m_fldToCheck;
if (m_convFlag != null) if (!m_convFlag.getState()) return super.doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); // Flag not set, don't process it BaseField recordField = m_fldToCheck;