/** * @deprecated will be removed in GWT 2.0 along with the listener classes */ @Deprecated public static void add(TabBar source, TabListener listener) { WrappedTabListener t = new WrappedTabListener(listener); source.addBeforeSelectionHandler(t); source.addSelectionHandler(t); }
public void addSelectionHandler(SelectionHandler<Integer> handler) { tabBar.addSelectionHandler(handler); }
/** * @deprecated will be removed in GWT 2.0 along with the listener classes */ @Deprecated public static void add(TabBar source, TabListener listener) { WrappedTabListener t = new WrappedTabListener(listener); source.addBeforeSelectionHandler(t); source.addSelectionHandler(t); }
/** * @deprecated will be removed in GWT 2.0 along with the listener classes */ @Deprecated public static void add(TabBar source, TabListener listener) { WrappedTabListener t = new WrappedTabListener(listener); source.addBeforeSelectionHandler(t); source.addSelectionHandler(t); }
public WSTabPanel() { layoutPanel = new DockPanel(); layoutPanel.setSize("98%", "100%"); tabBar = new TabBar(); deckPanel = new DeckPanel(); deckPanel.setWidth("100%"); deckPanel.addStyleName("gwt-TabPanelBottom"); layoutPanel.add(tabBar, DockPanel.NORTH); layoutPanel.add(deckPanel, DockPanel.CENTER); tabBar.addSelectionHandler(new SelectionHandler<Integer>() { public void onSelection(SelectionEvent<Integer> integerSelectionEvent) { deckPanel.showWidget(integerSelectionEvent.getSelectedItem()); } }); initWidget(layoutPanel); }