protected void addTabContent(final PTabPanel tabPanel) { final PSimplePanel tabContent = new PSimplePanel(); final int tabIndex = tabCount; final PLabel label = new PLabel("content-" + tabIndex); tabContent.setWidget(label); tabPanel.add(tabContent, "Tab-" + tabIndex); tabCount++; }
protected void addCustomTabContent(final PTabPanel tabPanel) { final PSimplePanel tabContent = new PSimplePanel(); final int tabIndex = tabCount; final PLabel tabLabel = new PLabel("CustomTab-" + tabIndex); tabLabel.setStyleProperty("color", "blue"); tabLabel.setStyleProperty("whiteSpace", "nowrap"); final PLabel label = new PLabel("content-" + tabIndex); tabContent.setWidget(label); tabPanel.add(tabContent, tabLabel); tabCount++; }