private void listAvailableStatuses(DocumentStatus currentStatus) { form.cmbNewStatus().clear(); DocumentStatusCollection lkpCollStatus = ims.core.vo.lookups.LookupHelper.getDocumentStatus(domain.getLookupService()); boolean bHide = false; for (int i=0; i < lkpCollStatus.size(); i++) { if (StatusHelper.canUpdateStatus(currentStatus,lkpCollStatus.get(i))) { form.cmbNewStatus().newRow(lkpCollStatus.get(i), lkpCollStatus.get(i).toString()); bHide = true; } } form.lblChangeTo().setVisible(bHide); form.cmbNewStatus().setVisible(bHide); form.btnChange().setVisible(bHide); }