private void generateDivHtml(PrintWriter p, int rowNo) throws DataStoreException { if (!_showDescription) return; if (_editDescription) return; p.print(_fontStartTag); p.print("<span id=\"div"); p.print(getFullName()); if (rowNo != -1) p.print("_" + rowNo); p.print("\">"); if (_descriptionEval != null) { if (rowNo == -1) rowNo = _descriptionEval.getDataStore().getRow(); Object o = _descriptionEval.evaluateRow(rowNo); if (o != null) { p.print(o); _hiddenDescriptionHandle.setValue(o.toString()); } else { _hiddenDescriptionHandle.setValue(null); } } else { // Take the description from the hidden field value p.print( _hiddenDescriptionHandle.getValue() == null ? "" : _hiddenDescriptionHandle.getValue()); } p.print("</span>"); p.print(_fontEndTag); }