public function getButton($name, $need = TRUE)
    {
        return $this->hasButtons()
            ? $this->getComponent(Button::ID)->getComponent($name, $need)
            : NULL;
    }
public function getButton($name, $need = TRUE)
    {
        return $this->hasButtons()
            ? $this->getComponent(Button::ID)->getComponent($name, $need)
            : NULL;
    }
public function getButton ( $ name , $ need = TRUE ) { return $ this -> hasButtons ( ) ? $ this -> getComponent ( Button :: ID ) -> getComponent ( $ name , $ need ) : NULL ; }
Returns toolbar button component.
@param bool $need
@return Button
Returns toolbar button component .