private void toggleSplit() { isSplit = !isSplit; if (isSplit) { splitPurchaseGrid = new SplitPurchaseGrid(billTypeManager); splitPurchaseGrid.setTotalCost(getCost()); costField.setFieldLabel("Total Cost"); fieldPanel.removeRow(3); fieldPanel.removeRow(3); matchingField.addDisplayableReportWidget(splitPurchaseGrid); } else { costField.setFieldLabel("Cost"); fieldPanel.insertRow(3); fieldPanel.setText(2, 0, "Bill Type:"); fieldPanel.setWidget(2, 1, billTypeComboBox); fieldPanel.insertRow(4); fieldPanel.setText(3, 0, "Note:"); fieldPanel.setWidget(3, 1, noteField); matchingField.addDisplayableReportWidget(null); } }