int rr = fromRow;
for ( ; rr < numRows && rr < toRow; rr++ ) {
final int numCols = headerCols.size();
IRow irow = rows.get(rr);
// skip empty line
boolean empty = true;
for ( int c = 0; empty && c < numCols; c++ ) {
String colVal = irow.getColValue(headerCols.get(c));
if ( colVal != null && colVal.trim().length() > 0 ) {
empty = false;
}
}
if ( empty ) {
continue;
}
rowInTermTable++;
termTable.addRow(numCols);
for ( int c = 0; c < numCols; c++ ) {
String colName = headerCols.get(c);
String colVal = irow.getColValue(colName);
colVal = colVal != null ? colVal.trim() : "";
if ( c == 0 && firstColIsUri && colVal.length() > 0 ) {
String link = Orr.getPortalBaseInfo().getOntServiceUrl()+ "?form=html&uri=" +colVal;
String str = "<a target=\"_blank\" href=\"" +link+ "\">" +colVal+ "</a>";
termTable.setCell(rowInTermTable, c, str, true);
}
else {
termTable.setCell(rowInTermTable, c, colVal, irow.isHtml(colName));
}
}
}
return rr >= numRows; // DONE