Using code add to a GroupTable a ButtonsPanel with an Excel Button and its action

Hello, I have created by code a groupTable with ValueGroupDatasource, now what I would like to add to this table by code is a buttonspanel with the Excel button and its corresponding action, any example to do this by code?
Thank you and greetings.

you can add Buttons Panel to the Group Table using the setButtondPanel() method. Here is the simple example

    public void init(Map<String, Object> params) {
        ButtonsPanel buttonsPanel = componentsFactory.createComponent(ButtonsPanel.class);
        Button button = componentsFactory.createComponent(Button.class);

Thanks Natalia.