if (policy.getID() == highlightID)
row = table.addRow(null, null, "highlight");
else
row = table.addRow();
Cell cell;
if (objectType == Constants.BUNDLE)
cell = row.addCell(null, null, "indent");
else if (objectType == Constants.BITSTREAM)
cell = row.addCell(null, null, "doubleIndent");
else
cell = row.addCell();
CheckBox select = cell.addCheckBox("select_policy");
select.setLabel(String.valueOf(policy.getID()));
select.addOption(String.valueOf(policy.getID()));
// Accounting for the funky case of an empty policy
Group policyGroup = policy.getGroup();
row.addCell().addXref(baseURL + "&submit_edit&policy_id=" + policy.getID() +
"&object_id=" + objectID + "&object_type=" + objectType, String.valueOf(policy.getID()));
row.addCell().addXref(baseURL + "&submit_edit&policy_id=" + policy.getID() +
"&object_id=" + objectID + "&object_type=" + objectType, policy.getActionText());
if (policyGroup != null) {
Cell groupCell = row.addCell(1,2);
groupCell.addContent(policyGroup.getName());
Highlight groupHigh = groupCell.addHighlight("fade");
groupHigh.addContent(" [");
groupHigh.addXref(baseURL + "&submit_edit_group&group_id=" + policyGroup.getID(), T_group_edit);
groupHigh.addContent("]");
}
else {