Swat/SwatActions.php
public function process()
    {
        parent::process();

        $flydown = $this->getCompositeWidget('action_flydown');
        $selected_id = $flydown->value;

        if (isset($this->action_items_by_id[$selected_id])) {
            $this->selected = $this->action_items_by_id[$selected_id];

            if ($this->selected->widget !== null) {
                $this->selected->widget->process();
            }
        } else {
            $this->selected = null;
        }
    }
public function process()
    {
        parent::process();

        $flydown = $this->getCompositeWidget('action_flydown');
        $selected_id = $flydown->value;

        if (isset($this->action_items_by_id[$selected_id])) {
            $this->selected = $this->action_items_by_id[$selected_id];

            if ($this->selected->widget !== null) {
                $this->selected->widget->process();
            }
        } else {
            $this->selected = null;
        }
    }
public function process ( ) { parent :: process ( ) ; $ flydown = $ this -> getCompositeWidget ( 'action_flydown' ) ; $ selected_id = $ flydown -> value ; if ( isset ( $ this -> action_items_by_id [ $ selected_id ] ) ) { $ this -> selected = $ this -> action_items_by_id [ $ selected_id ] ; if ( $ this -> selected -> widget !== null ) { $ this -> selected -> widget -> process ( ) ; } } else { $ this -> selected = null ; } }
Figures out what action item is selected

This method creates internal widgets if they do not exist, and then
determines what SwatActionItem was selected by the user by calling
the process methods of the internal widgets.
Figures out what action item is selected