public function addActionItem(SwatActionItem $item)
    {
        $this->action_items[] = $item;
        $item->parent = $this;

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