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();
        }));
    }
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();
        }));
    }
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 ( ) ; } ) ) ; }
The place where extending classes should create and register new Views
The place where extending classes should create and register new Views