if (this.selectedRecordGroupDisplayType().equals("TOTALS") && !this.showRGAsTable()) {
if (this.selectedRecordGroupDisplayType().equals("TOTALS") && !this.showRecordGroupAsTable()) {
    public boolean showTotalsOnlyAsCells() {        if (this.selectedRecordGroupDisplayType().equals("TOTALS") && !this.showRGAsTable()) {            return true;        }        return false;    }