import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
import com.vaadin.ui.TabSheet;
-import com.vaadin.ui.TabSheet.SelectedTabChangeEvent;
-import com.vaadin.ui.TabSheet.SelectedTabChangeListener;
import com.vaadin.ui.TabSheet.Tab;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
protected void setup() {
ts.setWidth("500px");
ts.setHeight("500px");
- // ts.setTabIndex(0);
ts.addListener(new FocusListener() {
public void focus(FocusEvent event) {
}
});
- ts.addListener(new SelectedTabChangeListener() {
-
- public void selectedTabChange(SelectedTabChangeEvent event) {
- // ts.setSelectedTab(tabs.get(Math.max(0,
- // tabs.indexOf(ts.getSelectedTab()) - 1)));
- }
- });
-
for (int i = 0; i < 5; ++i) {
addTab();
}