TabPanel panel = new TabPanel(); panel.setTabScroll(true); panel.setAnimScroll(true); panel.add(new Label("Tab 1 Content"), new TabItemConfig("Tab 1", true)); panel.add(new Label("Tab 2 Content"), new TabItemConfig("Tab 2", true));
3738394041424344454647
private final PlatformContext context; public WordViewImpl(final PlatformContext context, final WordPresenter presenter) { this.presenter = presenter; this.context = context; tabPanel = new TabPanel(); tabPanel.setTabScroll(true); tabPanel.setCloseContextMenu(true); tabPanel.getElement().setMargins(3); tabPanel.addCloseHandler(new CloseHandler<Widget>() {