/** * Retrieve (in string format) from this field. * @return The string. */ public String getString() { String string = super.getString(); // By default, get the data as-is if (this.getField() instanceof NumberField) { double dValue = this.getField().getValue(); if (m_bDebit) { if (dValue < 0) string = Constants.BLANK; // For debit/negative, return a null } else { // Credit if (dValue >= 0) string = Constants.BLANK; // For credit/positive, return a null else string = ((NumberField)this.getField()).binaryToString(new Double(-dValue)); // Positive representation } } return string; } /**
/** * Retrieve (in string format) from this field. * @return The string. */ public String getString() { String string = super.getString(); // By default, get the data as-is if (this.getField() instanceof NumberField) { double dValue = this.getField().getValue(); if (m_bDebit) { if (dValue < 0) string = Constants.BLANK; // For debit/negative, return a null } else { // Credit if (dValue >= 0) string = Constants.BLANK; // For credit/positive, return a null else string = ((NumberField)this.getField()).binaryToString(new Double(-dValue)); // Positive representation } } return string; } /**
/** * Retrieve (in string format) from this field. * @return The string. */ public String getString() { String string = super.getString(); // By default, get the data as-is if (this.getField() instanceof NumberField) { double dValue = this.getField().getValue(); if (m_bDebit) { if (dValue < 0) string = Constants.BLANK; // For debit/negative, return a null } else { // Credit if (dValue >= 0) string = Constants.BLANK; // For credit/positive, return a null else string = ((NumberField)this.getField()).binaryToString(new Double(-dValue)); // Positive representation } } return string; } /**
if (this.getField() != null) if (this.getField() instanceof NumberField) field = (NumberField)this.getField(); if (field == null) return super.setString(string, bDisplayOption, moveMode); // Convert to internal rep and return strError = ex.getClass().getName(); Task task = null; if (this.getField() != null) if (((BaseField)this.getField()).getRecord() != null) if (((BaseField)this.getField()).getRecord().getRecordOwner() != null) task = ((BaseField)this.getField()).getRecord().getRecordOwner().getTask();
if (this.getField() != null) if (this.getField() instanceof NumberField) field = (NumberField)this.getField(); if (field == null) return super.setString(string, bDisplayOption, moveMode); // Convert to internal rep and return strError = ex.getClass().getName(); Task task = null; if (this.getField() != null) if (((BaseField)this.getField()).getRecord() != null) if (((BaseField)this.getField()).getRecord().getRecordOwner() != null) task = ((BaseField)this.getField()).getRecord().getRecordOwner().getTask(); if (task == null) task = BaseApplet.getSharedInstance();
if (this.getField() != null) if (this.getField() instanceof NumberField) field = (NumberField)this.getField(); if (field == null) return super.setString(string, bDisplayOption, moveMode); // Convert to internal rep and return strError = ex.getClass().getName(); Task task = null; if (this.getField() != null) if (((BaseField)this.getField()).getRecord() != null) if (((BaseField)this.getField()).getRecord().getRecordOwner() != null) task = ((BaseField)this.getField()).getRecord().getRecordOwner().getTask(); if (task == null) task = BaseApplet.getSharedInstance();