public boolean onBeforeTabSelected(SourcesTabEvents sender, int tabIndex) { if (tabIndex == TabIndexes.VIEW) { //if (_uiStateManager.) return true; } else { //if true isn't returned the tab cannot be selected return true; } }
public void onTabSelected(SourcesTabEvents sender, int tabIndex) { if (tabIndex == TabIndexes.VIEW) { _tabPanelBackGround.addStyleName("mainBackground"); _mapManager.setMode(MapManager.MODE_SETTING_VIEW); } else if (tabIndex == TabIndexes.ADD) { _tabPanelBackGround.removeStyleName("mainBackground"); _mapManager.setMode(MapManager.MODE_SETTING_ADD); } else if (tabIndex == TabIndexes.HELP) { _tabPanelBackGround.addStyleName("mainBackground"); _mapManager.setMode(MapManager.MODE_SETTING_HELP); } else if (tabIndex == TabIndexes.MY_BINGLES) { _tabPanelBackGround.removeStyleName("mainBackground"); _mapManager.setMode(MapManager.MODE_SETTING_MY_BINGLES); } else { throw new RuntimeException("didn't know about this tab"); } }
public boolean onBeforeTabSelected(SourcesTabEvents sender, int tabIndex) { return true; }
public void onTabSelected(SourcesTabEvents sender, int tabIndex) { Widget selected = tab.getWidget(tabIndex); if (selected instanceof BaseScreen) { ((BaseScreen)selected).load(objectType, objectId); } }
public void onTabSelected(SourcesTabEvents sender, int tabIndex) { //dont do anything here, yet }
public boolean onBeforeTabSelected(SourcesTabEvents sender, int tabIndex) { //if true isn't returned the tab cannot be selected return true; }