private Table getHtmlTable() {
HtmlTable htmlTable = new HtmlTable().width("700px");
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yy-HH:mm:ss");
htmlTable.caption("Harvest Batches <br/> As of: " + sdf.format(new java.util.Date())).setStyle("font-family:Arial;font-size: 12pt;font-style: normal;");
sdf = null;
HtmlRow htmlRow = new HtmlRow();
htmlRow.setUniqueProperty("id");
htmlTable.setRow(htmlRow);
HtmlColumn id = new HtmlColumn("id").title("Id");
id.setStyle("text-align:left");
id.editable(Boolean.FALSE);
htmlRow.addColumn(id);
HtmlColumn lvlt = new HtmlColumn("date").title("Date");
lvlt.setStyle("text-align:left");
lvlt.setCellEditor(new DateCellEditor("MM-dd-yy"));
htmlRow.addColumn(lvlt);
HtmlColumn accountnbr = new HtmlColumn("batch").title("Batch");
//accountnbr.setStyle("text-align:left");
//accountnbr.setCellRenderer(new AccountNbrRenderer());
accountnbr.filterEditor(new DroplistFilterEditor());
htmlRow.addColumn(accountnbr);
HtmlColumn firstName = new HtmlColumn("colorGrade").title("Grade").filterEditor(new HtmlFilterEditor());
firstName.setStyle("text-align:left");
htmlRow.addColumn(firstName);
HtmlColumn lastName = new HtmlColumn("item").title("Item");
lastName.setStyle("text-align:left");
lastName.filterEditor(new DroplistFilterEditor());
htmlRow.addColumn(lastName);
HtmlColumn titlecd = new HtmlColumn("loadnumber").title("Load Number");
titlecd.setStyle("text-align:right");
titlecd.filterEditor(new DroplistFilterEditor());
htmlRow.addColumn(titlecd);
HtmlColumn phone = new HtmlColumn("toteLotBox").title("Tot");
phone.setStyle("text-align:right");
htmlRow.addColumn(phone);
HtmlColumn prv = new HtmlColumn("microcystin").title("Microcystin");
prv.setStyle("text-align:right");
//prv.setCellEditor(new NumberCellEditor("0.00"));
//prv.getCellRenderer().setCellEditor();
htmlRow.addColumn(prv);
HtmlColumn aspv = new HtmlColumn("gallons").title("Gallons");
aspv.setStyle("text-align:right");
//aspv.setCellEditor(new NumberCellEditor("0.00"));
htmlRow.addColumn(aspv);
HtmlColumn pbv = new HtmlColumn("qcHold").title("QC");
pbv.cellRenderer(new QCRenderer());
//pbv.setStyle("text-align:right");
//pbv.setCellEditor(new NumberCellEditor("0.00"));
htmlRow.addColumn(pbv);
HtmlColumn com = new HtmlColumn().title("Comments");
com.cellRenderer(new ComRenderer());
//pbv.setStyle("text-align:right");
//pbv.setCellEditor(new NumberCellEditor("0.00"));
htmlRow.addColumn(com);
HtmlColumn action = new HtmlColumn().title("Action");
action.cellRenderer(new ActionRenderer());
htmlRow.addColumn(action);
return htmlTable;
}