private void reloadUi() { int itemIndex = projectItemGrid.getIndex(projectItemGrid.getSelected()); int detailIndex = projectItemDetailGrid.getIndex(projectItemDetailGrid.getSelected()); int paymentIndex = projectPaymentGrid.getIndex(projectPaymentGrid.getSelected()); projectItemGrid.reloadEntities(); projectItemGrid.setSelected(itemIndex); projectItemDetailGrid.itemSelected(projectItemGrid.getSelected(), detailIndex); projectPaymentGrid.itemSelected(projectItemGrid.getSelected(), paymentIndex); }
public void deleteProjectPayment() { EzeeProjectPayment payment = projectPaymentGrid.getSelected(); if (payment != null) { new EzeeCreateUpdateDeleteProjectItemPayment( cache, projectPaymentHandler, payment, delete, PROJECT_PAYMENT_CRUD_HEADERS) .show(); } }