Java 类com.google.gwt.user.client.ui.SourcesTabEvents 实例源码

项目:BikeBingle    文件:TabListenerCanViewTab.java   
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;
    }

}
项目:BikeBingle    文件:TabListenerMapManagerModeSetter.java   
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");
    }

}
项目:onecmdb    文件:TemplateViewScreen.java   
public boolean onBeforeTabSelected(SourcesTabEvents sender, int tabIndex) {
    return true;
}
项目:onecmdb    文件:TemplateViewScreen.java   
public void onTabSelected(SourcesTabEvents sender, int tabIndex) {
    Widget selected = tab.getWidget(tabIndex);
    if (selected instanceof BaseScreen) {
        ((BaseScreen)selected).load(objectType, objectId);
    }
}
项目:OneCMDBwithMaven    文件:TemplateViewScreen.java   
public boolean onBeforeTabSelected(SourcesTabEvents sender, int tabIndex) {
    return true;
}
项目:OneCMDBwithMaven    文件:TemplateViewScreen.java   
public void onTabSelected(SourcesTabEvents sender, int tabIndex) {
    Widget selected = tab.getWidget(tabIndex);
    if (selected instanceof BaseScreen) {
        ((BaseScreen)selected).load(objectType, objectId);
    }
}
项目:BikeBingle    文件:TabListenerCanViewTab.java   
public void onTabSelected(SourcesTabEvents sender, int tabIndex) 
{
    //dont do anything here, yet

}
项目:BikeBingle    文件:TabListenerMapManagerModeSetter.java   
public boolean onBeforeTabSelected(SourcesTabEvents sender, int tabIndex) 
{
    //if true isn't returned the tab cannot be selected
    return true;
}