Does someone knows how to get Vaadin TableConnector in Cuba Platform?

Does someone knows how to get Vaadin TableConnector in Cuba Platform?
I want to be able to scroll two table at the same time.
If I scroll the table on the left side I want the table on the right side to be scrolled accordingly.

How can I archive this in CUBA? The example below is copied from Stackoverflow. Here they shows an example working directly with vaadin Table.

@Connect(ScrollTable.class)
public class ScrollTableConnector extends TableConnector implements
        ScrollHandler {

    private VScrollTable dependentPane = null;

    @Override
    public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
        super.updateFromUIDL(uidl, client);
        String tableId = uidl.getStringAttribute("dependentTable");
        if (tableId == null) {
            return;
        }
        if (dependentPane == null) {
            FocusableScrollPanel scrollBody = (FocusableScrollPanel) getWidget()
                    .getWidget(1);
            scrollBody.addScrollHandler(this);
        }
        dependentPane = ((TableConnector) client.getConnector(tableId, 0))
                .getWidget();
    }

    @Override
    public void onScroll(ScrollEvent event) {
        FocusableScrollPanel scrollBody = (FocusableScrollPanel) getWidget()
                .getWidget(1);
        FocusableScrollPanel scrollToBeBody = (FocusableScrollPanel) dependentPane
                .getWidget(1);
        scrollToBeBody.setScrollPosition(scrollBody.getScrollPosition());
    }
}

Hi,

Could you clarify your question?

Hi @kjell1906

I find I’m needing to do the same thing as you and get to either the Connector or the Widget. Did you ever find out how to do it?

Thanks

Hi,

In order to get access to connectors and widgets you neet to create a web-toolkit module in your project. After that you will ba able to extend and replace connectors and widgets in your project.

Regards,
Gleb