/** * Sets the numerical value for this cell * * @param val the value */ public void setValue(double val) { super.setValue(val); }
/** * Quick and dirty function to return the contents of this cell as a string. * For more complex manipulation of the contents, it is necessary to cast * this interface to correct subinterface * * @return the contents of this cell as a string */ public String getContents() { if (format == null) { format = ( (XFRecord) getCellFormat()).getNumberFormat(); if (format == null) { format = defaultFormat; } } return format.format(value); }
/** * Quick and dirty function to return the contents of this cell as a string. * For more complex manipulation of the contents, it is necessary to cast * this interface to correct subinterface * * @return the contents of this cell as a string */ public String getContents() { if (format == null) { format = ( (XFRecord) getCellFormat()).getNumberFormat(); if (format == null) { format = defaultFormat; } } return format.format(value); }
/** * Sets the numerical value for this cell * * @param val the value */ public void setValue(double val) { super.setValue(val); }