public function appendGroup(SwatTableViewGroup $group)
    {
        $this->validateGroup($group);

        $this->groups[] = $group;

        if ($group->id !== null) {
            $this->groups_by_id[$group->id] = $group;
        }

        $group->view = $this;
        $group->parent = $this;
    }