protected function createSubLeaves()
    {
        parent::createSubLeaves();

        $this->registerSubLeaf(new Button("Save", "Save", function(){
            $this->model->savePressedEvent->raise();
        }));

        $this->registerSubLeaf(new Button("Delete", "Delete", function(){
            $this->model->deletePressedEvent->raise();
        }));

        $this->registerSubLeaf(new Button("Cancel", "Cancel", function(){
            $this->model->cancelPressedEvent->raise();
        }));
    }